|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.ShapeArray2D<T> math.geom2d.domain.DomainArray2D<T>
public class DomainArray2D<T extends Domain2D>
An array of domains. Note that this class if different from a generic domain whose boundary is a set of contours. In the latter case, the shape is itself a domain, not in the former.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Constructor Summary | |
---|---|
DomainArray2D()
|
|
DomainArray2D(java.util.Collection<T> domains)
|
|
DomainArray2D(int n)
|
|
DomainArray2D(T... domains)
|
Method Summary | ||
---|---|---|
Polygon2D |
asPolygon(int n)
Returns an approximation of the domain as a polygon, or a MultiPolygon. |
|
Boundary2D |
boundary()
Returns the boundary of the set. |
|
Domain2D |
clip(Box2D box)
Clip the shape with the given box, and returns a new shape. |
|
DomainSet2D<? extends Domain2D> |
complement()
Returns the domain which complements this domain in the plane. |
|
java.util.Collection<? extends Contour2D> |
contours()
Returns the set of contours that enclose this domain. |
|
static
|
create(java.util.Collection<D> array)
|
|
static
|
create(D... array)
|
|
boolean |
equals(java.lang.Object obj)
Returns true if obj is a CurveSet2D with the same number of shapes, and such that each shape belongs to both objects. |
|
void |
fill(java.awt.Graphics2D g2)
Fills the interior of the domain, using the Graphics current Paint. |
|
DomainArray2D<? extends Domain2D> |
transform(AffineTransform2D trans)
Transforms the shape by an affine transform. |
Methods inherited from class math.geom2d.ShapeArray2D |
---|
add, add, almostEquals, boundingBox, clear, clone, contains, contains, contains, create, create, distance, distance, draw, get, indexOf, isBounded, isEmpty, iterator, remove, remove, shapes, size |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface math.geom2d.ShapeSet2D |
---|
add, add, clear, contains, get, indexOf, remove, remove, size |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface math.geom2d.domain.Domain2D |
---|
draw |
Methods inherited from interface math.geom2d.Shape2D |
---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
Methods inherited from interface math.geom2d.GeometricObject2D |
---|
almostEquals |
Constructor Detail |
---|
public DomainArray2D()
public DomainArray2D(int n)
n
- public DomainArray2D(java.util.Collection<T> domains)
domains
- the initial set of domains that constitutes this array.public DomainArray2D(T... domains)
domains
- the initial set of domains that constitutes this array.Method Detail |
---|
public static <D extends Domain2D> DomainArray2D<D> create(java.util.Collection<D> array)
public static <D extends Domain2D> DomainArray2D<D> create(D... array)
public Boundary2D boundary()
Domain2D
The returned curve is oriented, with an interior and an exterior.
boundary
in interface Domain2D
public java.util.Collection<? extends Contour2D> contours()
Domain2D
contours
in interface Domain2D
Contour2D
public DomainSet2D<? extends Domain2D> complement()
Domain2D
complement
in interface Domain2D
public Polygon2D asPolygon(int n)
Domain2D
asPolygon
in interface Domain2D
public void fill(java.awt.Graphics2D g2)
Domain2D
fill
in interface Domain2D
g2
- the Graphics to fill onpublic DomainArray2D<? extends Domain2D> transform(AffineTransform2D trans)
Shape2D
transform
in interface Domain2D
transform
in interface Shape2D
transform
in class ShapeArray2D<T extends Domain2D>
trans
- an affine transform
public Domain2D clip(Box2D box)
Shape2D
clip
in interface Domain2D
clip
in interface Shape2D
clip
in class ShapeArray2D<T extends Domain2D>
box
- the clipping box
public boolean equals(java.lang.Object obj)
ShapeArray2D
equals
in class ShapeArray2D<T extends Domain2D>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |