|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.Area
lt.monarch.math.geom.Area
public class Area extends java.awt.geom.Area implements Primitive2D
Area class wrapper
| 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 |
| 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 |
|---|
public Area()
public Area(Line2D line)
line - line to add to areapublic Area(java.awt.geom.Rectangle2D rectangle)
rectangle - rectangle to add to the areapublic Area(Polygon2D polygon)
polygon - custom polygonpublic Area(java.awt.geom.Area area)
area - | Method Detail |
|---|
public void dispose()
Primitive2D
dispose in interface Primitivedispose in interface Primitive2Dpublic java.util.List<Point2D> get2DPoints()
Primitive2D
get2DPoints in interface Primitive2Dpublic void transform(java.awt.geom.AffineTransform t)
transform in class java.awt.geom.Areapublic void subtract(Area rhs)
public void add(Area rhs)
public void reset()
reset in class java.awt.geom.Areapublic void intersect(Area rhs)
public void exclusiveOr(Area rhs)
public Rectangle2D getBounds2D()
getBounds2D in interface java.awt.ShapegetBounds2D in interface PrimitivegetBounds2D in class java.awt.geom.Area
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||