|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.geom.RectangularShape
Constructor Summary | |
RectangularShape()
This is an abstract class that cannot be instantiated directly. |
Method Summary | |
Object | clone()
Creates a new object of the same class as this object. |
boolean | contains(Point2D p)
Test if a given Point is inside the boundary of the shape. |
boolean | contains(Rectangle2D r)
Test if the interior of the Shape entirely contains the given Rectangle. |
Rectangle | getBounds()
Return the bounding box of the shape. |
double | getCenterX()
Returns the X coordinate of the center of the shape in double precision. |
double | getCenterY()
Returns the Y coordinate of the center of the shape in double precision. |
Rectangle2D | getFrame()
Returns the framing rectangle which defines the overall shape of this object. |
abstract double | getHeight()
Returns the height of the bounding rectangle in double precision. |
double | getMaxX()
Returns the X coordinate of the right edge of the shape in double precision. |
double | getMaxY()
Returns the Y coordinate of the bottom edge of the shape in double precision. |
double | getMinX()
Returns the X coordinate of the left edge of the shape in double precision. |
double | getMinY()
Returns the Y coordinate of the top edge of the shape in double precision. |
PathIterator | getPathIterator(AffineTransform at,
double flatness)
Return an iterator object that iterates along the boundary of the shape and provides access to a flattened view of the geometry of the outline of the shape. |
abstract double | getWidth()
Returns the width of the bounding rectangle in double precision. |
abstract double | getX()
Returns the X coordinate of the bounding rectangle in double precision. |
abstract double | getY()
Returns the Y coordinate of the bounding rectangle in double precision. |
boolean | intersects(Rectangle2D r)
Test if the interior of the Shape intersects the interior of a given Rectangle. |
abstract boolean | isEmpty()
Determines whether the rectangular shape is empty. |
abstract void | setFrame(double x,
double y,
double w,
double h)
Sets the location and size of the outer bounds of this shape to the specified rectangular values. |
void | setFrame(Point2D loc,
Dimension2D size)
Sets the outer bounds of this shape to be the same as the specified Point and Dimension objects. |
void | setFrame(Rectangle2D r)
Sets the outer bounds of this shape to be the same as the specified Rectangle. |
void | setFrameFromCenter(double centerX,
double centerY,
double cornerX,
double cornerY)
Sets the outer bounds of this shape based on a center point and a corner point. |
void | setFrameFromCenter(Point2D center,
Point2D corner)
Sets the outer bounds of this shape based on a center point and a corner point. |
void | setFrameFromDiagonal(double x1,
double y1,
double x2,
double y2)
Sets the outer bounds of this shape based on two points along one of its diagonals. |
void | setFrameFromDiagonal(Point2D p1,
Point2D p2)
Sets the outer bounds of this shape based on two Point objects along one of its diagonals. |
Methods inherited from class java.lang.Object | |
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Constructor Detail |
protected RectangularShape()
Arc2D
,
Ellipse2D
,
Rectangle2D
,
RoundRectangle2D
Method Detail |
public abstract double getX()
public abstract double getY()
public abstract double getWidth()
public abstract double getHeight()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public double getCenterX()
public double getCenterY()
public Rectangle2D getFrame()
public abstract boolean isEmpty()
public abstract void setFrame(double x, double y, double w, double h)
public void setFrame(Point2D loc, Dimension2D size)
public void setFrame(Rectangle2D r)
public void setFrameFromDiagonal(double x1, double y1, double x2, double y2)
public void setFrameFromDiagonal(Point2D p1, Point2D p2)
public void setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY)
public void setFrameFromCenter(Point2D center, Point2D corner)
public boolean contains(Point2D p)
public boolean intersects(Rectangle2D r)
public boolean contains(Rectangle2D r)
public Rectangle getBounds()
public PathIterator getPathIterator(AffineTransform at, double flatness)
flatness
parameter which specifies ?REMIND?.
An optional affine transform can be specified in which case
the coordinates returned in the iteration will be transformed
accordingly.
at
- an optional AffineTransform to be applied to the
coordinates as they are returned in the iteration, or null
if the untransformed coordinates are desired.
flatness
- the maximum amount that the control points
for a given curve can vary from colinear before a subdivided
curve is replaced by a straight line connecting the endpoints.public Object clone()
Cloneable
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |