|
JSR-209 (Final Approval Ballot) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Rectangle | |
java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
java.awt.font | Provides classes and interface relating to fonts. |
java.awt.geom | Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry. |
java.awt.image | Provides classes for creating and modifying images. |
javax.imageio | The main package of the Java Image I/O API. |
javax.microedition.plaf | AGUI provides a Pluggable Look and Feel architecture, similar to that which is defined in Java SE (from which AGUI is subset). |
javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
javax.swing.border | Provides classes and interface for drawing specialized borders around a Swing component. |
javax.swing.table | Provides classes and interfaces for dealing with
javax.swing.JTable . |
javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
Uses of Rectangle in java.awt |
Fields in java.awt declared as Rectangle | |
protected Rectangle |
Polygon.bounds
Bounds of the polygon. |
Methods in java.awt that return Rectangle | |
Rectangle |
Polygon.getBounds()
Gets the bounding box of this Polygon . |
Rectangle |
Shape.getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
Rectangle |
Rectangle.getBounds()
Gets the bounding Rectangle of this Rectangle . |
Rectangle |
Rectangle.intersection(Rectangle r)
Computes the intersection of this Rectangle with the
specified Rectangle . |
Rectangle |
Rectangle.union(Rectangle r)
Computes the union of this Rectangle with the
specified Rectangle . |
abstract Rectangle |
GraphicsConfiguration.getBounds()
Returns the bounds of the GraphicsConfiguration
in the device coordinates. |
Methods in java.awt with parameters of type Rectangle | |
PaintContext |
TexturePaint.createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a context used to generate the color pattern. |
PaintContext |
GradientPaint.createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a context used to generate the color pattern. |
PaintContext |
Paint.createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a PaintContext used to
generate the color pattern. |
abstract boolean |
Graphics2D.hit(Rectangle rect,
Shape s,
boolean onStroke)
Checks whether or not the specified Shape intersects
the specified Rectangle , which is in device
space. |
void |
Rectangle.setBounds(Rectangle r)
Sets the bounding Rectangle of this Rectangle
to match the specified Rectangle . |
boolean |
Rectangle.contains(Rectangle r)
Checks whether or not this Rectangle entirely contains
the specified Rectangle . |
boolean |
Rectangle.intersects(Rectangle r)
Determines whether or not this Rectangle and the specified
Rectangle intersect. |
Rectangle |
Rectangle.intersection(Rectangle r)
Computes the intersection of this Rectangle with the
specified Rectangle . |
Rectangle |
Rectangle.union(Rectangle r)
Computes the union of this Rectangle with the
specified Rectangle . |
void |
Rectangle.add(Rectangle r)
Adds a Rectangle to this Rectangle . |
PaintContext |
Color.createContext(java.awt.image.ColorModel cm,
Rectangle r,
Rectangle2D r2d,
AffineTransform xform,
RenderingHints hints)
Creates and returns a PaintContext used to generate a solid
color pattern. |
Constructors in java.awt with parameters of type Rectangle | |
Rectangle(Rectangle r)
Constructs a new Rectangle , initialized to match
the values of the specified Rectangle . |
Uses of Rectangle in java.awt.font |
Methods in java.awt.font that return Rectangle | |
Rectangle |
GlyphVector.getPixelBounds(FontRenderContext renderFRC,
float x,
float y)
Returns the pixel bounds of this GlyphVector when
rendered in a graphics with the given
FontRenderContext at the given location. |
Rectangle |
GlyphVector.getGlyphPixelBounds(int index,
FontRenderContext renderFRC,
float x,
float y)
Returns the pixel bounds of the glyph at index when this GlyphVector is rendered in a Graphics with the
given FontRenderContext at the given location. |
Uses of Rectangle in java.awt.geom |
Methods in java.awt.geom that return Rectangle | |
Rectangle |
RectangularShape.getBounds()
Returns the bounding box of the Shape . |
Rectangle |
GeneralPath.getBounds()
Return the bounding box of the path. |
Rectangle |
QuadCurve2D.getBounds()
Returns the bounding box of this QuadCurve2D . |
Rectangle |
Line2D.getBounds()
Returns the bounding box of this Line2D . |
Rectangle |
CubicCurve2D.getBounds()
Returns the bounding box of the shape. |
Rectangle |
Area.getBounds()
Returns a bounding Rectangle that completely encloses
this Area . |
Uses of Rectangle in java.awt.image |
Methods in java.awt.image that return Rectangle | |
Rectangle |
Raster.getBounds()
Returns the bounding Rectangle of this Raster. |
Methods in java.awt.image with parameters of type Rectangle | |
Raster |
RenderedImage.getData(Rectangle rect)
Computes and returns an arbitrary region of the RenderedImage. |
Raster |
BufferedImage.getData(Rectangle rect)
Computes and returns an arbitrary region of the BufferedImage . |
Constructors in java.awt.image with parameters of type Rectangle | |
Raster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
Raster parent)
Constructs a Raster with the given SampleModel, DataBuffer, and parent. |
|
WritableRaster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
WritableRaster parent)
Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent. |
Uses of Rectangle in javax.imageio |
Fields in javax.imageio declared as Rectangle | |
protected Rectangle |
IIOParam.sourceRegion
The source region, on null if none is set. |
Methods in javax.imageio that return Rectangle | |
protected static Rectangle |
ImageReader.getSourceRegion(ImageReadParam param,
int srcWidth,
int srcHeight)
A utility method that may be used by readers to compute the region of the source image that should be read, taking into account any source region and subsampling offset settings in the supplied ImageReadParam . |
Rectangle |
IIOParam.getSourceRegion()
Returns the source region to be used. |
Methods in javax.imageio with parameters of type Rectangle | |
void |
ImageWriter.prepareReplacePixels(int imageIndex,
Rectangle region)
Prepares the writer to handle a series of calls to the replacePixels methods. |
protected static void |
ImageReader.computeRegions(ImageReadParam param,
int srcWidth,
int srcHeight,
BufferedImage image,
Rectangle srcRegion,
Rectangle destRegion)
Computes the source region of interest and the destination region of interest, taking the width and height of the source image, an optional destination image, and an optional ImageReadParam into account. |
void |
IIOParam.setSourceRegion(Rectangle sourceRegion)
Sets the source region of interest. |
Uses of Rectangle in javax.microedition.plaf |
Methods in javax.microedition.plaf that return Rectangle | |
Rectangle |
TabbedPaneUI.getTabBounds(JTabbedPane pane,
int index)
Invokes the getTabBounds method on each UI handled by this object. |
Rectangle |
ListUI.getCellBounds(JList list,
int index0,
int index1)
Returns the bounds of the specified item in JList coordinates, null if index isn't valid. |
Rectangle |
TreeUI.getPathBounds(JTree tree,
TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. |
Uses of Rectangle in javax.swing |
Methods in javax.swing that return Rectangle | |
static Rectangle |
SwingUtilities.getLocalBounds(java.awt.Component aComponent)
Return the rectangle (0,0,bounds.width,bounds.height) for the component aComponent |
static Rectangle |
SwingUtilities.convertRectangle(java.awt.Component source,
Rectangle aRectangle,
java.awt.Component destination)
Convert the rectangle aRectangle in source coordinate system to
destination coordinate system. |
static Rectangle |
SwingUtilities.computeIntersection(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience to calculate the intersection of two rectangles without allocating a new rectangle. |
static Rectangle |
SwingUtilities.computeUnion(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience method that calculates the union of two rectangles without allocating a new rectangle. |
static Rectangle[] |
SwingUtilities.computeDifference(Rectangle rectA,
Rectangle rectB)
Convenience returning an array of rect representing the regions within rectA that do not overlap with rectB . |
static Rectangle |
SwingUtilities.calculateInnerArea(JComponent c,
Rectangle r)
Stores the position and size of the inner painting area of the specified component in r and returns r . |
Rectangle |
JViewport.getViewRect()
Returns a rectangle whose origin is getViewPosition
and size is getExtentSize . |
Rectangle |
JTable.getCellRect(int row,
int column,
boolean includeSpacing)
Returns a rectangle for the cell that lies at the intersection of row and column . |
Rectangle |
JTree.getPathBounds(TreePath path)
Returns the Rectangle that the specified node will be drawn
into. |
Rectangle |
JTree.getRowBounds(int row)
Returns the Rectangle that the node at the specified row is
drawn in. |
Rectangle |
JTabbedPane.getBoundsAt(int index)
Returns the tab bounds at index . |
Rectangle |
JScrollPane.getViewportBorderBounds()
Returns the bounds of the viewport's border. |
Rectangle |
JInternalFrame.getNormalBounds()
If the JInternalFrame is not in maximized state, returns
getBounds() ; otherwise, returns the bounds that the
JInternalFrame would be restored to. |
Rectangle |
JComponent.getBounds(Rectangle rv)
Stores the bounds of this component into "return value" rv and returns rv . |
Rectangle |
JComponent.getVisibleRect()
Returns the Component 's "visible rectangle" - the
intersection of this component's visible rectangle:
|
Rectangle |
JList.getCellBounds(int index0,
int index1)
Returns the bounds of the specified range of items in JList
coordinates. |
Methods in javax.swing with parameters of type Rectangle | |
static boolean |
SwingUtilities.isRectangleContainingRectangle(Rectangle a,
Rectangle b)
Return true if a contains b |
static Rectangle |
SwingUtilities.convertRectangle(java.awt.Component source,
Rectangle aRectangle,
java.awt.Component destination)
Convert the rectangle aRectangle in source coordinate system to
destination coordinate system. |
static Rectangle |
SwingUtilities.computeIntersection(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience to calculate the intersection of two rectangles without allocating a new rectangle. |
static Rectangle |
SwingUtilities.computeUnion(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience method that calculates the union of two rectangles without allocating a new rectangle. |
static Rectangle[] |
SwingUtilities.computeDifference(Rectangle rectA,
Rectangle rectB)
Convenience returning an array of rect representing the regions within rectA that do not overlap with rectB . |
static java.lang.String |
SwingUtilities.layoutCompoundLabel(java.awt.FontMetrics fm,
java.lang.String text,
Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
Rectangle viewR,
Rectangle iconR,
Rectangle textR,
int textIconGap)
Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. |
static Rectangle |
SwingUtilities.calculateInnerArea(JComponent c,
Rectangle r)
Stores the position and size of the inner painting area of the specified component in r and returns r . |
int |
Scrollable.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation. |
int |
Scrollable.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation. |
void |
JViewport.scrollRectToVisible(Rectangle contentRect)
Scrolls the view so that Rectangle
within the view becomes visible. |
protected boolean |
JViewport.computeBlit(int dx,
int dy,
Point blitFrom,
Point blitTo,
Dimension blitSize,
Rectangle blitPaint)
Computes the parameters for a blit where the backing store image currently contains oldLoc in the upper left hand corner
and we're scrolling to newLoc . |
int |
JTable.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the scroll increment (in pixels) that completely exposes one new row or column (depending on the orientation). |
int |
JTable.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns visibleRect.height or
visibleRect.width ,
depending on this table's orientation. |
int |
JTextArea.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation. |
int |
JTree.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the amount to increment when scrolling. |
int |
JTree.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the amount for a block increment, which is the height or width of visibleRect , based on orientation . |
void |
JTextField.scrollRectToVisible(Rectangle r)
Scrolls the field left or right. |
void |
JInternalFrame.setNormalBounds(Rectangle r)
Sets the normal bounds for this internal frame, the bounds that this internal frame would be restored to from its maximized state. |
void |
JComponent.scrollRectToVisible(Rectangle aRect)
Forwards the scrollRectToVisible() message to the
JComponent 's parent. |
Rectangle |
JComponent.getBounds(Rectangle rv)
Stores the bounds of this component into "return value" rv and returns rv . |
void |
JComponent.computeVisibleRect(Rectangle visibleRect)
Returns the Component 's "visible rect rectangle" - the
intersection of the visible rectangles for this component
and all of its ancestors. |
void |
JComponent.repaint(Rectangle r)
Adds the specified region to the dirty region list if the component is showing. |
void |
JComponent.paintImmediately(Rectangle r)
Paints the specified region now. |
int |
JList.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the distance to scroll to expose the next or previous row (for vertical scrolling) or character (for horizontal scrolling). |
int |
JList.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the distance to scroll to expose the next or previous block. |
Uses of Rectangle in javax.swing.border |
Methods in javax.swing.border that return Rectangle | |
Rectangle |
AbstractBorder.getInteriorRectangle(java.awt.Component c,
int x,
int y,
int width,
int height)
This convenience method calls the static method. |
static Rectangle |
AbstractBorder.getInteriorRectangle(java.awt.Component c,
Border b,
int x,
int y,
int width,
int height)
Returns a rectangle using the arguments minus the insets of the border. |
Uses of Rectangle in javax.swing.table |
Methods in javax.swing.table that return Rectangle | |
Rectangle |
JTableHeader.getHeaderRect(int column)
Returns the rectangle containing the header tile at column . |
Uses of Rectangle in javax.swing.text |
Methods in javax.swing.text that return Rectangle | |
Rectangle |
JTextComponent.modelToView(int pos)
Converts the given location in the model to a place in the view coordinate system. |
Methods in javax.swing.text with parameters of type Rectangle | |
int |
JTextComponent.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation. |
int |
JTextComponent.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation. |
|
JSR-209 (Final Approval Ballot) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |