Uses of Class java.awt.Rectangle

Uses in package javax.imageio

Fields of type java.awt.Rectangle

Rectangle
The source pixel region or null.

Methods with parameter type java.awt.Rectangle

void
ImageReader.computeRegions(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)
Calcluate the source and destination regions that will be read from and written to, given image parameters and/or a destination buffered image.
void
ImageWriter.prepareReplacePixels(int imageIndex, Rectangle region)
Start the replacement of pixels within an image in the output stream.
void
Set the source region from which to read.

Methods with return type java.awt.Rectangle

Rectangle
Retrieve the source rectangle from which pixels should be read or null if no source region has been set.
Rectangle
ImageReader.getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight)
Calculate a source region based on the given source image dimensions and parameters.

Uses in package javax.accessibility

Methods with parameter type java.awt.Rectangle

void
Set the bounds of this component to the specified height and width, and relative location to its parent.

Methods with return type java.awt.Rectangle

Rectangle
Get the bounds of this component relative to its parent - it's width, height, and relative location to its parent.
Rectangle
Determines the bounding box of the indexed character.
Rectangle
Determines the bounding box of some text held by this object.

Uses in package java.awt

Constructors with parameter type java.awt.Rectangle

Initializes a new instance of Rectangle from the coordinates of the specified rectangle.

Fields of type java.awt.Rectangle

Rectangle
The bounding box of this polygon.

Methods with parameter type java.awt.Rectangle

void
Move and resize a rectangle according to a set of grid bag constraints.
void
Modifies this rectangle so that it represents the smallest rectangle that contains both the existing rectangle and the specified rectangle.
void
Move and resize a rectangle according to a set of grid bag constraints.
boolean
Checks whether all points in the given rectangle are contained in this rectangle.
PaintContext
Color.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
Returns a paint context, used for filling areas of a raster scan with this color.
PaintContext
Returns the PaintContext used to generate the color pattern.
PaintContext
Paint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
Create the context necessary for performing the color pattern generation.
PaintContext
Returns a paint context, used for filling areas of a raster scan with the current value of this system color.
PaintContext
Creates the context used to paint the texture.
BufferedImage
Create an image containing pixels read from the screen.
Rectangle
Returns the bounds of this component.
Rectangle
boolean
Graphics2D.hit(Rectangle rect, Shape text, boolean onStroke)
Rectangle
Determines the rectangle which is formed by the intersection of this rectangle with the specified rectangle.
boolean
Tests whether or not the specified rectangle intersects this rectangle.
void
Sets the bounding rectangle for this component to the specified rectangle.
void
Sets the bounds of this component.
void
Sets the height and width of the component, and its position relative to this component's parent, to the values specified by the supplied rectangle.
void
Updates this rectangle to match the dimensions of the specified rectangle.
void
Rectangle
Returns the smallest rectangle that contains both this rectangle and the specified rectangle.

Methods with return type java.awt.Rectangle

Rectangle
Returns a bounding rectangle for this component.
Rectangle
Returns the bounding box of this polygon.
Rectangle
Returns a bounding rectangle for this component.
Rectangle
Gets the bounds of this component, or null if it is not on screen.
Rectangle
Returns the bounds of the configuration, in device coordinates.
Rectangle
Returns a Rectangle which represents the bounds of this component.
Rectangle
Returns the bounding box of this polygon.
Rectangle
Returns the bounds of this rectangle.
Rectangle
Returns a Rectange that bounds the shape.
Rectangle
Returns the bounds of this component.
Rectangle
Rectangle
Returns the bounding rectangle of the clipping region for this graphics context.
Rectangle
Rectangle
Returns the bounding rectangle of the clipping region for this graphics context.
Rectangle
Returns the maximized bounds of this frame.
Rectangle
Returns the maximum bounds for a centered window object.
Rectangle
Determines the rectangle which is formed by the intersection of this rectangle with the specified rectangle.
Rectangle
Returns the smallest rectangle that contains both this rectangle and the specified rectangle.

Uses in package java.awt.image

Constructors with parameter type java.awt.Rectangle

Raster.Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
Creates a new raster.
WritableRaster.WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent)
Creates a new WritableRaster instance.

Methods with parameter type java.awt.Rectangle

WritableRaster
Creates a new writable raster that is compatible with this raster, with the specified bounds.
Raster
Raster

Methods with return type java.awt.Rectangle

Rectangle
Returns a new rectangle containing the bounds of this raster.

Uses in package javax.swing.table

Methods with parameter type java.awt.Rectangle

void
Overriden for performance.
void
Set the bounds of this component to the specified height and width, and relative location to its parent.

Methods with return type java.awt.Rectangle

Rectangle
Get the bounds of this component relative to its parent - it's width, height, and relative location to its parent.
Rectangle
Get the rectangle, occupied by the header of the given column.

Uses in package java.awt.font

Methods with return type java.awt.Rectangle

Rectangle
GlyphVector.getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)
Rectangle
GlyphVector.getPixelBounds(FontRenderContext renderFRC, float x, float y)

Uses in package javax.swing.text.html

Methods with parameter type java.awt.Rectangle

void
Paints the child with the specified index into the specified allocation.

Uses in package javax.swing.plaf.multi

Methods with return type java.awt.Rectangle

Rectangle
MultiListUI.getCellBounds(JList list, int index1, int index2)
Calls the ListUI.getCellBounds(JList,int,int) method for all the UI delegates managed by this MultiListUI, returning the bounds for the UI delegate from the primary look and feel.
Rectangle
Calls the TreeUI.getPathBounds(JTree,TreePath) method for all the UI delegates managed by this MultiTreeUI, returning the bounds for the UI delegate from the primary look and feel.
Rectangle
Calls the TabbedPaneUI.getTabBounds(JTabbedPane,int) method for all the UI delegates managed by this MultiTabbedPaneUI, returning the bounds for the UI delegate from the primary look and feel.
Rectangle
Calls the TextUI.modelToView(JTextComponent,int) method for all the UI delegates managed by this MultiTextUI, returning the bounds for the UI delegate from the primary look and feel.
Rectangle
Calls the TextUI.modelToView(JTextComponent,int,Position.Bias) method for all the UI delegates managed by this MultiTextUI, returning the bounds for the UI delegate from the primary look and feel.

Uses in package java.beans

Methods with parameter type java.awt.Rectangle

void
The RAD tool calls this to paint the actual value of the property.
void
Paints this object.

Uses in package javax.swing.plaf

Methods with return type java.awt.Rectangle

Rectangle
ListUI.getCellBounds(JList list, int index1, int index2)
Determines the bounding box of the rectangle spanned by two list indices.
Rectangle
Determines the geometric extent of the label that is drawn for a path.
Rectangle
Calculates the bounding box of a tab.
Rectangle
Calculates the geometric extent of the character at the given offset.
Rectangle
Calculates the geometric extent of the character at the given offset.

Uses in package java.awt.im

Methods with return type java.awt.Rectangle

Rectangle
Gets the location of a given offset of the text.

Uses in package java.awt.peer

Methods with parameter type java.awt.Rectangle

int[]
void

Methods with return type java.awt.Rectangle

Rectangle
Get the bounds of this component peer.
Rectangle

Uses in package javax.swing.plaf.synth

Methods with parameter type java.awt.Rectangle

String
SynthGraphicsUtils.layoutText(SynthContext ctx, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPos, int vTextPos, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)
Lays out a label and (if non-null) an icon.
void
SynthGraphicsUtils.paintText(SynthContext ctx, Graphics g, String text, Rectangle bounds, int mnemonicIndex)
Renders the specified text within the bounds.

Uses in package javax.swing.tree

Methods with parameter type java.awt.Rectangle

Rectangle
getBounds
Rectangle
Get bounds for the given tree path.
Rectangle
Get bounds for the given tree path.
Rectangle
AbstractLayoutCache.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
Get the node dimensions.
Rectangle
AbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
Get the node dimensions.
int
Get the maximal width.
int
Get the maximal width.
int
Get the maximal width.
void
For performance reasons, this method is overridden to do nothing.

Methods with return type java.awt.Rectangle

Rectangle
getBounds
Rectangle
Get bounds for the given tree path.
Rectangle
Get bounds for the given tree path.
Rectangle
AbstractLayoutCache.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
Get the node dimensions.
Rectangle
AbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
Get the node dimensions.

Uses in package javax.swing

Methods with parameter type java.awt.Rectangle

Rectangle
Calculates the portion of the component's bounds which is inside the component's border insets.
boolean
JViewport.computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint)
Computes the parameters for the blitting scroll method.
Rectangle[]
Subtracts a rectangle from another and return the area as an array of rectangles.
Rectangle
SwingUtilities.computeIntersection(int x, int y, int w, int h, Rectangle rect)
Calculates the intersection of two rectangles.
Rectangle
SwingUtilities.computeUnion(int x, int y, int w, int h, Rectangle rect)
Calculates the union of two rectangles.
void
Compute the component's visible rectangle, which is defined recursively as either the component's bounds, if it has no parent, or the intersection of the component's bounds with the visible rectangle of its parent.
Rectangle
Converts a rectangle from the coordinate space of one component to another.
Rectangle
Get the component's current bounding box.
int
JList.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
Return the number of pixels the list must scroll in order to move a "block" of the list into the provided visible rectangle.
int
JTable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
int
JTree.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
Return the preferred scrolling amount (in pixels) for the given scrolling direction and orientation when scrolling in large amounts (pages).
int
Scrollable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
Return the preferred scrolling amount (in pixels) for the given scrolling direction and orientation when scrolling in large amounts (pages).
int
JList.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
Return the number of pixels the list must scroll in order to move a "unit" of the list into the provided visible rectangle.
int
JTable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
Return the preferred scrolling amount (in pixels) for the given scrolling direction and orientation.
int
JTextArea.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
Returns the increment that is needed to expose exactly one new line of text.
int
JTree.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
Return the preferred scrolling amount (in pixels) for the given scrolling direction and orientation.
int
Scrollable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
Return the preferred scrolling amount (in pixels) for the given scrolling direction and orientation when scrolling in small amounts like table lines.
boolean
Tests if a rectangle contains another.
String
SwingUtilities.layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)
Layout a "compound label" consisting of a text string and an icon which is to be placed near the rendered text.
String
SwingUtilities.layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)
Layout a "compound label" consisting of a text string and an icon which is to be placed near the rendered text.
void
Paints the specified component c on the Graphics context g.
void
This method paints the given component in the given rectangle.
void
Transform the provided dirty rectangle for this component into the appropriate ancestral JRootPane and call paint(Graphics) on that root pane.
void
void
Mark the described region of this component as dirty in the current RepaintManager.
void
Calls scrollRectToVisible on the component's parent.
void
Calls scrollRectToVisible on the component's parent.
void
Scrolls the view so that contentRect becomes visible.
void
Does nothing since the bounds cannot be set on list children individually.
void
The bounds of the table cells cannot be manipulated directly, so this method does nothing.
void
Sets the bounds of this object in the form of a Rectangle object.
void
This method sets the bounds that this JInternalFrame will be restored to.
void
This method sets the bounds of the JInternalFrame right before the maximizeFrame call.

Methods with return type java.awt.Rectangle

Rectangle
Calculates the portion of the component's bounds which is inside the component's border insets.
Rectangle[]
Subtracts a rectangle from another and return the area as an array of rectangles.
Rectangle
SwingUtilities.computeIntersection(int x, int y, int w, int h, Rectangle rect)
Calculates the intersection of two rectangles.
Rectangle
SwingUtilities.computeUnion(int x, int y, int w, int h, Rectangle rect)
Calculates the union of two rectangles.
Rectangle
Converts a rectangle from the coordinate space of one component to another.
Rectangle
Returns the bounds of this list child.
Rectangle
Returns the bounds of the cell relative to its table.
Rectangle
Gets the bounds of this object in the form of a Rectangle object.
Rectangle
Get the component's current bounding box.
Rectangle
This method returns the bounds of the tab given the index.
Rectangle
This method is called by iconifyFrame to determine the bounds of the JDesktopIcon for the given JInternalFrame.
Rectangle
JList.getCellBounds(int index0, int index1)
Returns the bounds of the rectangle that encloses both list cells with index0 and index1.
Rectangle
JTable.getCellRect(int row, int column, boolean includeSpacing)
Calculate the visible rectangle for a particular row and column.
Rectangle
Returns the bounds of the character at the specified index of the button's label.
Rectangle
Returns the bounding box of the character at the specified index.
Rectangle
getClipBounds
Rectangle
Get the dirty region associated with a component, or null if the component has no dirty region.
Rectangle
Calculates the bounds of a component in the component's own coordinate space.
Rectangle
This method returns the bounds of the JInternalFrame if it is not maximized.
Rectangle
Rectangle
This method returns the normal bounds of the JInternalFrame from before the maximize call.
Rectangle
Rectangle
Rectangle
Rectangle
Returns the bounds of the border around a ScrollPane's viewport.
Rectangle
Return the component's visible rectangle in a new Rectangle, rather than via a return slot.

Uses in package javax.swing.text

Classes derived from java.awt.Rectangle

class
The default implementation of the Caret interface.

Fields of type java.awt.Rectangle

Rectangle
A Rectangle used for child allocation calculation to avoid creation of lots of garbage Rectangle objects.
Rectangle
The last allocation.

Methods with parameter type java.awt.Rectangle

void
Adjusts the text component so that the caret is visible.
void
Receives notification from a FlowView that some attributes have changed in the document at a location that the FlowView is responsible for.
void
Computes the allocation for a child View.
void
Computes the allocation for a child View.
void
Updates the carets rectangle properties to the specified rectangle and repaints the caret.
int
JTextComponent.getScrollableBlockIncrement(Rectangle visible, int orientation, int direction)
Return the preferred scrolling amount (in pixels) for the given scrolling direction and orientation when scrolling in large amounts (pages).
int
JTextComponent.getScrollableUnitIncrement(Rectangle visible, int orientation, int direction)
Return the preferred scrolling amount (in pixels) for the given scrolling direction and orientation when scrolling in small amounts like table lines.
View
BoxView.getViewAtPoint(int x, int y, Rectangle r)
Returns the child View at the specified location.
View
Returns the child View at the specified location.
View
Returns the child View that contains the given model position.
View
Returns the child view that represents the specified position in the model.
View
Returns the child view that represents the specified position in the model.
void
Receives notification from a FlowView that some content has been inserted into the document at a location that the FlowView is responsible for.
boolean
BoxView.isAfter(int x, int y, Rectangle r)
Returns true if the specified point lies after the given Rectangle, false otherwise.
boolean
CompositeView.isAfter(int x, int y, Rectangle r)
Returns true if the specified point lies after the given Rectangle, false otherwise.
boolean
BoxView.isBefore(int x, int y, Rectangle r)
Returns true if the specified point lies before the given Rectangle, false otherwise.
boolean
CompositeView.isBefore(int x, int y, Rectangle r)
Returns true if the specified point lies before the given Rectangle, false otherwise.
void
BoxView.paintChild(Graphics g, Rectangle alloc, int index)
Paints the child View at the specified index.
void
Receives notification from a FlowView that some content has been removed from the document at a location that the FlowView is responsible for.

Methods with return type java.awt.Rectangle

Rectangle
Calculate the bounding box of the character at the given index.
Rectangle
Returns the allocation that is given to this CompositeView minus this CompositeView's insets.
Rectangle
PlainView.lineToRect(Shape a, int line)
Rectangle

Uses in package java.awt.im.spi

Methods with parameter type java.awt.Rectangle

void
Notify this input method of changes in the client window.

Uses in package javax.swing.plaf.basic

Classes derived from java.awt.Rectangle

class
A DefaultCaret that implements UIResource.

Fields of type java.awt.Rectangle

Rectangle
Holds the value of the bouncing box that is returned by getBox(Rectangle).
Rectangle
A reusable rectangle.
Rectangle
Rectangle describing content bounds.
Rectangle
Rectangle describing focus bounds.
Rectangle
Rectangle describing the label bounds.
Rectangle[]
An array of Rectangles keeping track of the tabs' area and position.
Rectangle
The size and position of the thumb.
Rectangle
Rectangle describing the thumb's bounds.
Rectangle
Rectangle describing the tick bounds.
Rectangle
The size and position of the track.
Rectangle
Rectangle describing the track bounds.

Methods with parameter type java.awt.Rectangle

Rectangle
This method returns the size and position of the bouncing box for the current animation index.
Rectangle
BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size)
Returns, by reference in bounds, the size and x origin to place value at.
Rectangle
This method returns the tab bounds in the given rectangle.

The returned rectangle will be shifted by the current scroll offset if the tabbed pane is in scrolling tab layout mode..

String
BasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
This method is simply calls SwingUtilities's layoutCompoundLabel.
void
BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
This method lays out the tab and finds the location to paint the icon and text.
void
BasicListUI.paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead)
Paints a single cell in the list.
void
BasicComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
Paints currently selected value in the main part of the combo box (part without popup).
void
Paints the background of part of the combo box, where currently selected value is displayed.
void
BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
Paints the expand (toggle) part of a row.
void
Paints the focus indicator for JRadioButtons.
void
Paint any focus decoration this JComponent might have.
void
BasicTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
This method paints the focus rectangle around the selected tab.
void
BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
Paints the horizontal part of the leg.
void
BasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
This method paints the icon.
void
Paints the icon for the toggle button.
void
Paint the icon for this component.
void
This method paints a major tick for a horizontal slider at the given x value. x represents the x coordinate to paint at.
void
This method paints a major tick for a vertical slider at the given y value. y represents the y coordinate to paint at.
void
This method paints a minor tick for a horizontal slider at the given x value. x represents the x coordinate to paint at.
void
This method paints a minor tick for a vertical slider at the given y value. y represents the y coordinate to paint at.
void
BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
Paints the renderer part of a row.
void
BasicTabbedPaneUI.paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
This method paints an individual tab.
void
BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
This method paints the text for the given tab.
void
Paints the "text" property of an AbstractButton.
void
Paints the "text" property of an AbstractButton.
void
BasicMenuItemUI.paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
Paints label for the given menu item
void
This method paints the thumb.
void
This method paints the track.
void
Paints the vertical part of the leg.

Methods with return type java.awt.Rectangle

Rectangle
BasicComboPopup.computePopupBounds(int px, int py, int pw, int ph)
DOCUMENT ME!
Rectangle
This method returns the size and position of the bouncing box for the current animation index.
Rectangle
BasicListUI.getCellBounds(JList l, int index1, int index2)
Calculate the bounds of a particular cell, considering the upper left corner of the list as the origin position (0,0).
Rectangle
BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size)
Returns, by reference in bounds, the size and x origin to place value at.
Rectangle
Returns the Rectangle enclosing the label portion that the last item in path will be drawn to.
Rectangle
This method returns the tab bounds in the given rectangle.

The returned rectangle will be shifted by the current scroll offset if the tabbed pane is in scrolling tab layout mode..

Rectangle
This method returns the bounds of a tab for the given index and shifts it by the current scrolling offset if the tabbed pane is in scrolling tab layout mode.

Subclassses should retrievs a tab's bounds by this method if they want to find out whether the tab is currently visible.

Rectangle
This method returns the thumb's bounds based on the current value of the scrollbar.
Rectangle
This method calculates the bounds of the track.
Rectangle
Returns the allocation to give the root view.
Rectangle
Maps a position in the document into the coordinate space of the View.
Rectangle
Maps a position in the document into the coordinate space of the View.
Rectangle
Returns the bounds in which comboBox's selected item will be displayed.

Uses in package javax.swing.border

Methods with return type java.awt.Rectangle

Rectangle
AbstractBorder.getInteriorRectangle(Component c, int x, int y, int width, int height)
Returns a rectangle that covers the specified area minus the insets required to draw this border.
Rectangle
AbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
Returns a rectangle that covers the specified area minus the insets required to draw the specified border (if the border is null, zero insets are assumed).

Uses in package java.awt.event

Constructors with parameter type java.awt.Rectangle

PaintEvent.PaintEvent(Component source, int id, Rectangle updateRect)
Initializes a new instance of PaintEvent with the specified source, id, and update region.

Methods with parameter type java.awt.Rectangle

void
Sets the rectangle to be updated for this event.

Methods with return type java.awt.Rectangle

Rectangle
Returns the rectange to be updated for this event.

Uses in package java.awt.geom

Methods with return type java.awt.Rectangle

Rectangle
Returns the bounds of this object in Rectangle format.
Rectangle
Determines the smallest rectangle that encloses the curve’s start, end and control points.
Rectangle
Returns the path’s bounding box.
Rectangle
Gets a bounding box (not necessarily minimal) for this line.
Rectangle
Determines the smallest rectangle that encloses the curve’s start, end and control point.
Rectangle
Returns a bounding box for this shape, in integer format.

Uses in package javax.swing.plaf.metal

Methods with parameter type java.awt.Rectangle

void
Paints the focus rectangle for the JRadioButton.
void
Paints the focus rectangle around the button text and/or icon.
void
Draws the focus highlight around the text and icon.
void
MetalTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
This method paints the focus rectangle around the selected tab.
void
MetalTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
Paints the horizontal part of the leg.
void
Paints the major ticks for a slider with a horizontal orientation.
void
Paints the major ticks for a slider with a vertical orientation.
void
Paints the minor ticks for a slider with a horizontal orientation.
void
Paints the minor ticks for a slider with a vertical orientation.
void
Paints the button text.
void
Paints the text for the button.
void
Paints the slider button of the ScrollBar.
void
Paints the track for the scrollbar.
void
Paints the vertical part of the leg.