API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.geom. RectangularShape View Source
Author(s)
Jim Graham
Since
1.2
Version
1.20, 02/24/06
Serial
Hierarchy
 Object
      RectangularShape
Implements
 Shape
 Cloneable
Subclasses
Description
publicabstract abstract class RectangularShape
  RectangularShape is the base class for a number of Shape objects whose geometry is defined by a rectangular frame.
See also:   
Constructors
protected RectangularShape ()
  This is an abstract class that cannot be instantiated directly.
Methods
Hide/Show inherited methods
public Object clone ()
  Creates a new object of the same class and with the same contents as this object.
public boolean contains (Point2D p) [Specified in Shape]
  Tests if a specified Point2D is inside the boundary of the Shape.
public boolean contains (Rectangle2D r) [Specified in Shape]
  Tests if the interior of the Shape entirely contains the specified Rectangle2D.
public Rectangle getBounds () [Specified in Shape]
  Returns an integer Rectangle that completely encloses the Shape.
public double getCenterX ()
  Returns the X coordinate of the center of the framing rectangle of the Shape in double precision.
public double getCenterY ()
  Returns the Y coordinate of the center of the framing rectangle of the Shape in double precision.
public Rectangle2D getFrame ()
  Returns the framing Rectangle2D that defines the overall shape of this object.
publicabstract double getHeight ()
  Returns the height of the framing rectangle in double precision.
public double getMaxX ()
  Returns the largest X coordinate of the framing rectangle of the Shape in double precision.
public double getMaxY ()
  Returns the largest Y coordinate of the framing rectangle of the Shape in double precision.
public double getMinX ()
  Returns the smallest X coordinate of the framing rectangle of the Shape in double precision.
public double getMinY ()
  Returns the smallest Y coordinate of the framing rectangle of the Shape in double precision.
public PathIterator getPathIterator (AffineTransform at, double flatness) [Specified in Shape]
  Returns an iterator object that iterates along the Shape object's boundary and provides access to a flattened view of the outline of the Shape object's geometry.
publicabstract double getWidth ()
  Returns the width of the framing rectangle in double precision.
publicabstract double getX ()
  Returns the X coordinate of the upper-left corner of the framing rectangle in double precision.
publicabstract double getY ()
  Returns the Y coordinate of the upper-left corner of the framing rectangle in double precision.
public boolean intersects (Rectangle2D r) [Specified in Shape]
  Tests if the interior of the Shape intersects the interior of a specified Rectangle2D.
publicabstract boolean isEmpty ()
  Determines whether the RectangularShape is empty.
publicabstract void setFrame (double x, double y, double w, double h)
  Sets the location and size of the framing rectangle of this Shape to the specified rectangular values.
public void setFrame (Point2D loc, Dimension2D size)
  Sets the location and size of the framing rectangle of this Shape to the specified Point2D and Dimension2D, respectively.
public void setFrame (Rectangle2D r)
  Sets the framing rectangle of this Shape to be the specified Rectangle2D.
public void setFrameFromCenter (double centerX, double centerY, double cornerX, double cornerY)
  Sets the framing rectangle of this Shape based on the specified center point coordinates and corner point coordinates.
public void setFrameFromCenter (Point2D center, Point2D corner)
  Sets the framing rectangle of this Shape based on a specified center Point2D and corner Point2D.
public void setFrameFromDiagonal (double x1, double y1, double x2, double y2)
  Sets the diagonal of the framing rectangle of this Shape based on the two specified coordinates.
public void setFrameFromDiagonal (Point2D p1, Point2D p2)
  Sets the diagonal of the framing rectangle of this Shape based on two specified Point2D objects.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar