Uses of Class java.awt.geom.Rectangle2D

Uses in package java.awt

Classes derived from java.awt.geom.Rectangle2D

class
This class represents a rectangle and all the interesting things you might want to do with it.

Constructors with parameter type java.awt.geom.Rectangle2D

Constructor.

Methods with parameter type java.awt.geom.Rectangle2D

boolean
Test if a high-precision rectangle lies completely in the shape.
boolean
Test if a high-precision rectangle lies completely in the shape.
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.
Rectangle2D
Determines the rectangle which is formed by the intersection of this rectangle with the specified rectangle.
Rectangle2D
Returns the smallest rectangle that contains both this rectangle and the specified rectangle.
boolean
Test if a high-precision rectangle intersects the shape.
boolean
Test if a high-precision rectangle intersects the shape.

Methods with return type java.awt.geom.Rectangle2D

Rectangle2D
Determines the rectangle which is formed by the intersection of this rectangle with the specified rectangle.
Rectangle2D
Returns the smallest rectangle that contains both this rectangle and the specified rectangle.
Rectangle2D
Gets the shape anchor.
Rectangle2D
Returns a high-precision bounding box of this polygon.
Rectangle2D
Returns the high-precision bounds of this rectangle.
Rectangle2D
Returns a high precision bounding box of the shape.
Rectangle2D
Returns the bounds of the largest character in a Graphics context.
Rectangle2D
Returns the maximal bounding box of all the bounding boxes in this font, when the font's bounding boxes are evaluated in a given FontRenderContext
Rectangle2D
FontMetrics.getStringBounds(char[] chars, int beginIndex, int limit, Graphics context)
Rectangle2D
Font.getStringBounds(char[] chars, int begin, int limit, FontRenderContext frc)
Returns the logical bounds of the specified string when rendered with this font in the specified FontRenderContext.
Rectangle2D
FontMetrics.getStringBounds(String str, int beginIndex, int limit, Graphics context)
Rectangle2D
Font.getStringBounds(String str, int begin, int limit, FontRenderContext frc)
Returns the logical bounds of the specified string when rendered with this font in the specified FontRenderContext.
Rectangle2D
Rectangle2D
Returns the logical bounds of the specified string when rendered with this font in the specified FontRenderContext.
Rectangle2D
FontMetrics.getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)
Rectangle2D
Font.getStringBounds(CharacterIterator ci, int begin, int limit, FontRenderContext frc)
Returns the logical bounds of the specified string when rendered with this font in the specified FontRenderContext.

Uses in package java.awt.image.renderable

Methods with return type java.awt.geom.Rectangle2D

Rectangle2D

Uses in package java.awt.font

Constructors with parameter type java.awt.geom.Rectangle2D

GlyphMetrics.GlyphMetrics(boolean horizontal, float advanceX, float advanceY, Rectangle2D bounds, byte glyphType)
GlyphMetrics.GlyphMetrics(float advance, Rectangle2D bounds, byte glyphType)

Methods with parameter type java.awt.geom.Rectangle2D

float[]
Shape
Shape[]
TextLayout.getCaretShapes(int offset, Rectangle2D bounds)
Shape[]
Shape
TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds)
Shape
TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds)
TextHitInfo
TextLayout.hitTestChar(float x, float y, Rectangle2D bounds)
Finds the character hit at the specified point.

Methods with return type java.awt.geom.Rectangle2D

Rectangle2D
Returns a Rectangle2D that encloses the rendered area.
Rectangle2D
Gets the bounds of the object rendered, relative to the position.
Rectangle2D
Returns a Rectangle2D that encloses all of the bits drawn by this shape.
Rectangle2D
Rectangle2D
Rectangle2D
Rectangle2D

Uses in package javax.swing.plaf.basic

Classes derived from java.awt.geom.Rectangle2D

class
A DefaultCaret that implements UIResource.

Uses in package java.awt.geom

Classes derived from java.awt.geom.Rectangle2D

class
This class defines a rectangle in double precision.
class
This class defines a rectangle in float precision.

Constructors with parameter type java.awt.geom.Rectangle2D

Arc2D.Double.Double(Rectangle2D r, double start, double extent, int type)
Create a new arc with the given dimensions.
Arc2D.Float.Float(Rectangle2D r, float start, float extent, int type)
Create a new arc with the given dimensions.

Methods with parameter type java.awt.geom.Rectangle2D

void
Modifies this rectangle so that it represents the smallest rectangle that contains both the existing rectangle and the specified rectangle.
boolean
Tests if a given rectangle is contained in the area of the arc.
boolean
Determines if the Rectangle2D specified by r is completely contained within this Area, returns false otherwise.

This method should always produce the correct results, unlike for other classes in geom.

boolean
Determine whether a Rectangle2D is entirely inside the area that is bounded by the curve and the straight line connecting its end points.
boolean
Evaluates if a rectangle is completely contained within the path.
boolean
Tests if the line contains a rectangle.
boolean
Determines whether a Rectangle2D is entirely inside the area that is bounded by the curve and the straight line connecting its end points.
boolean
Tests if the shape completely contains the given rectangle.
Rectangle2D
Return a new rectangle which is the intersection of this and the given one.
Rectangle2D
Return a new rectangle which is the intersection of this and the given one.
Rectangle2D
Return a new rectangle which is the intersection of this and the given one.
Rectangle2D
Return a new rectangle which is the union of this and the given one.
Rectangle2D
Return a new rectangle which is the union of this and the given one.
Rectangle2D
Return a new rectangle which is the union of this and the given one.
void
Intersects a pair of rectangles, and places the result in the destination; this can be used to avoid object creation.
boolean
Determines if the Rectangle2D specified by r intersects any part of this Area.
boolean
Determines whether any part of a Rectangle2D is inside the area bounded by the curve and the straight line connecting its end points.
boolean
Evaluates if a Rectangle2D intersects the path.
boolean
Tests if this line intersects the interior of the specified rectangle.
boolean
Determines whether any part of a Rectangle2D is inside the area bounded by the curve and the straight line connecting its end points.
boolean
Tests if a rectangle and this shape share common internal points.
void
Arc2D.setArc(Rectangle2D r, double start, double extent, int type)
Set the parameters of the arc.
void
Set the framing rectangle of this shape to the given rectangle.
void
Set the bounding box of this rectangle from the given one.
void
Set the contents of this rectangle to those specified.
void
Set the contents of this rectangle to those specified.
void
Joins a pair of rectangles, and places the result in the destination; this can be used to avoid object creation.

Methods with return type java.awt.geom.Rectangle2D

Rectangle2D
Return a new rectangle which is the intersection of this and the given one.
Rectangle2D
Return a new rectangle which is the intersection of this and the given one.
Rectangle2D
Return a new rectangle which is the intersection of this and the given one.
Rectangle2D
Return a new rectangle which is the union of this and the given one.
Rectangle2D
Return a new rectangle which is the union of this and the given one.
Rectangle2D
Return a new rectangle which is the union of this and the given one.
Rectangle2D
Gets the bounds of the arc.
Rectangle2D
Returns the bounding box of the Area.

Unlike the CubicCurve2D and QuadraticCurve2D classes, this method will return the tightest possible bounding box, evaluating the extreme points of each curved segment.

Rectangle2D
Determines the smallest rectangle that encloses the curve’s start, end and control points.
Rectangle2D
Determines the smallest rectangle that encloses the curve’s start, end and control points.
Rectangle2D
Returns the bounding-box of the ellipse.
Rectangle2D
Returns the bounding-box of the ellipse.
Rectangle2D
Returns the path’s bounding box, in float precision
Rectangle2D
Return the exact bounds of this line segment.
Rectangle2D
Return the exact bounds of this line segment.
Rectangle2D
Determines the smallest rectangle that encloses the curve’s start, end and control point.
Rectangle2D
Determines the smallest rectangle that encloses the curve’s start, end and control point.
Rectangle2D
Returns the bounds of this rectangle.
Rectangle2D
Returns the bounds of this rectangle.
Rectangle2D
Returns the bounds of this rectangle.
Rectangle2D
Rectangle2D
Rectangle2D
Return the frame around this object.
Rectangle2D
Arc2D.makeBounds(double x, double y, double w, double h)
Construct a bounding box in a precision appropriate for the subclass.
Rectangle2D
Arc2D.Double.makeBounds(double x, double y, double w, double h)
Creates a tight bounding box given dimensions that more precise than the bounding box of the ellipse.
Rectangle2D
Arc2D.Float.makeBounds(double x, double y, double w, double h)
Creates a tight bounding box given dimensions that more precise than the bounding box of the ellipse.

Uses in package java.awt.image

Methods with return type java.awt.geom.Rectangle2D

Rectangle2D
Transforms source image using transform specified at the constructor and returns bounds of the transformed image.
Rectangle2D
Returns the bounds of the destination image on the basis of this BufferedImageOp being applied to the specified source image.
Rectangle2D
Returns the corresponding destination boundary of a source boundary.
Rectangle2D
Rectangle2D
Rectangle2D
Rectangle2D
Returns bounds of the transformed raster.
Rectangle2D
Returns the bounds of the destination raster on the basis of this RasterOp being applied to the specified source raster.
Rectangle2D
Returns the corresponding destination boundary of a source boundary.
Rectangle2D
Returns the bounds of the destination raster on the basis of this RasterOp being applied to the specified source raster.
Rectangle2D
Returns the bounds of the destination raster on the basis of this RasterOp being applied to the specified source raster.
Rectangle2D
Returns the bounds of the destination raster on the basis of this RasterOp being applied to the specified source raster.
Rectangle2D
Returns the bounds of the destination raster on the basis of this RasterOp being applied to the specified source raster.

Uses in package javax.swing.text

Classes derived from java.awt.geom.Rectangle2D

class
The default implementation of the Caret interface.