swingwt.awt.geom
Class RectangularShape

java.lang.Object
  extended byswingwt.awt.geom.RectangularShape
All Implemented Interfaces:
java.lang.Cloneable, Shape
Direct Known Subclasses:
Rectangle2D

public abstract class RectangularShape
extends java.lang.Object
implements Shape, java.lang.Cloneable


Constructor Summary
protected RectangularShape()
           
 
Method Summary
 java.lang.Object clone()
           
 boolean contains(Point2D p)
           
 boolean contains(Rectangle2D r)
           
 Rectangle getBounds()
           
abstract  Rectangle2D getBounds2D()
           
 double getCenterX()
           
 double getCenterY()
           
 Rectangle2D getFrame()
           
abstract  double getHeight()
           
 double getMaxX()
           
 double getMaxY()
           
 double getMinX()
           
 double getMinY()
           
abstract  PathIterator getPathIterator(AffineTransform at)
           
 PathIterator getPathIterator(AffineTransform at, double flatness)
           
abstract  double getWidth()
           
abstract  double getX()
           
abstract  double getY()
           
 boolean intersects(Rectangle2D r)
           
abstract  boolean isEmpty()
           
abstract  void setFrame(double x, double y, double w, double h)
           
 void setFrame(Point2D loc, Dimension2D size)
           
 void setFrame(Rectangle2D r)
           
 void setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY)
           
 void setFrameFromCenter(Point2D center, Point2D corner)
           
 void setFrameFromDiagonal(double x1, double y1, double x2, double y2)
           
 void setFrameFromDiagonal(Point2D p1, Point2D p2)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface swingwt.awt.Shape
contains, contains, intersects
 

Constructor Detail

RectangularShape

protected RectangularShape()
Method Detail

getX

public abstract double getX()

getY

public abstract double getY()

getWidth

public abstract double getWidth()

getHeight

public abstract double getHeight()

getMinX

public double getMinX()

getMinY

public double getMinY()

getMaxX

public double getMaxX()

getMaxY

public double getMaxY()

getCenterX

public double getCenterX()

getCenterY

public double getCenterY()

getFrame

public Rectangle2D getFrame()

isEmpty

public abstract boolean isEmpty()

setFrame

public abstract void setFrame(double x,
                              double y,
                              double w,
                              double h)

setFrame

public void setFrame(Point2D loc,
                     Dimension2D size)

setFrame

public void setFrame(Rectangle2D r)

setFrameFromDiagonal

public void setFrameFromDiagonal(double x1,
                                 double y1,
                                 double x2,
                                 double y2)

setFrameFromDiagonal

public void setFrameFromDiagonal(Point2D p1,
                                 Point2D p2)

setFrameFromCenter

public void setFrameFromCenter(double centerX,
                               double centerY,
                               double cornerX,
                               double cornerY)

setFrameFromCenter

public void setFrameFromCenter(Point2D center,
                               Point2D corner)

contains

public boolean contains(Point2D p)
Specified by:
contains in interface Shape

intersects

public boolean intersects(Rectangle2D r)
Specified by:
intersects in interface Shape

contains

public boolean contains(Rectangle2D r)
Specified by:
contains in interface Shape

getBounds

public Rectangle getBounds()
Specified by:
getBounds in interface Shape

getPathIterator

public PathIterator getPathIterator(AffineTransform at,
                                    double flatness)
Specified by:
getPathIterator in interface Shape

clone

public java.lang.Object clone()

getBounds2D

public abstract Rectangle2D getBounds2D()
Specified by:
getBounds2D in interface Shape

getPathIterator

public abstract PathIterator getPathIterator(AffineTransform at)
Specified by:
getPathIterator in interface Shape