org.omegahat.Graphics.Primitives
Class RectRegion
java.lang.Object
|
+--org.omegahat.Graphics.Primitives.RectRegion
- All Implemented Interfaces:
- Region
- public class RectRegion
- extends java.lang.Object
- implements Region
Used as the result of the computation of a symbolic
RecRegionDescription and returns the location and size
of that description in the parents normalized coordinates
(NPC).
|
Field Summary |
protected java.awt.geom.Rectangle2D.Double |
area
|
|
Method Summary |
boolean |
contains(double x,
double y)
|
java.awt.geom.Rectangle2D.Double |
getArea()
Accessor for area field |
double |
getHeight()
|
double |
getWidth()
|
double |
getX()
|
double |
getY()
|
java.awt.geom.Rectangle2D.Double |
setArea(java.awt.geom.Rectangle2D.Double value)
Accessor for setting area field |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
area
protected java.awt.geom.Rectangle2D.Double area
RectRegion
public RectRegion()
RectRegion
public RectRegion(double x,
double y,
double width,
double height)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
contains
public boolean contains(double x,
double y)
getArea
public java.awt.geom.Rectangle2D.Double getArea()
- Accessor for
area field
setArea
public java.awt.geom.Rectangle2D.Double setArea(java.awt.geom.Rectangle2D.Double value)
- Accessor for setting
area field
getWidth
public double getWidth()
getHeight
public double getHeight()
getX
public double getX()
getY
public double getY()