lt.monarch.math.geom
Class Area

java.lang.Object
  extended by java.awt.geom.Area
      extended by lt.monarch.math.geom.Area
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable, Primitive, Primitive2D

public class Area
extends java.awt.geom.Area
implements Primitive2D

Area class wrapper

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Area()
          Empty area constructor
Area(java.awt.geom.Area area)
          Area constructor with custom area
Area(Line2D line)
          Area constructor using line
Area(Polygon2D polygon)
          Area constructor with custom polygon object
Area(java.awt.geom.Rectangle2D rectangle)
          Area constructor using rectangle
 
Method Summary
Modifier and Type Method and Description
 void add(Area rhs)
           
 void dispose()
          Disposes object
 void exclusiveOr(Area rhs)
           
 java.util.List<Point2D> get2DPoints()
          Get a list of 2D points
 Rectangle2D getBounds2D()
           
 void intersect(Area rhs)
           
 void reset()
           
 void subtract(Area rhs)
           
 void transform(java.awt.geom.AffineTransform t)
           
 
Methods inherited from class java.awt.geom.Area
add, clone, contains, contains, contains, contains, createTransformedArea, equals, exclusiveOr, getBounds, getPathIterator, getPathIterator, intersect, intersects, intersects, isEmpty, isPolygonal, isRectangular, isSingular, subtract
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

Area

public Area()
Empty area constructor


Area

public Area(Line2D line)
Area constructor using line

Parameters:
line - line to add to area

Area

public Area(java.awt.geom.Rectangle2D rectangle)
Area constructor using rectangle

Parameters:
rectangle - rectangle to add to the area

Area

public Area(Polygon2D polygon)
Area constructor with custom polygon object

Parameters:
polygon - custom polygon

Area

public Area(java.awt.geom.Area area)
Area constructor with custom area

Parameters:
area -
Method Detail

dispose

public void dispose()
Description copied from interface: Primitive2D
Disposes object

Specified by:
dispose in interface Primitive
Specified by:
dispose in interface Primitive2D

get2DPoints

public java.util.List<Point2D> get2DPoints()
Description copied from interface: Primitive2D
Get a list of 2D points

Specified by:
get2DPoints in interface Primitive2D
Returns:
list of 2D points

transform

public void transform(java.awt.geom.AffineTransform t)
Overrides:
transform in class java.awt.geom.Area

subtract

public void subtract(Area rhs)

add

public void add(Area rhs)

reset

public void reset()
Overrides:
reset in class java.awt.geom.Area

intersect

public void intersect(Area rhs)

exclusiveOr

public void exclusiveOr(Area rhs)

getBounds2D

public Rectangle2D getBounds2D()
Specified by:
getBounds2D in interface java.awt.Shape
Specified by:
getBounds2D in interface Primitive
Overrides:
getBounds2D in class java.awt.geom.Area