|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Domain2D
Interface for shapes that draws an 'interior' and an 'exterior'. An AbstractDomain2D can be defined with a non-self intersecting set of Curve2D, and contains all points lying 'on the left' of the parent curve.
Some Shape may seem very similar, for example Conic2D and ConicCurve2D. The reason is that a point can be contained in a Conic2D but not in the ConicCurve2D.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
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. |
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. |
void |
draw(java.awt.Graphics2D g2)
Draws the boundary of the domain, using current Stroke and color. |
void |
fill(java.awt.Graphics2D g2)
Fills the interior of the domain, using the Graphics current Paint. |
Domain2D |
transform(AffineTransform2D transform)
Transforms the shape by an affine transform. |
Methods inherited from interface math.geom2d.Shape2D |
---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
Methods inherited from interface math.geom2d.GeometricObject2D |
---|
almostEquals |
Method Detail |
---|
Boundary2D boundary()
The returned curve is oriented, with an interior and an exterior.
java.util.Collection<? extends Contour2D> contours()
Contour2D
Domain2D complement()
Polygon2D asPolygon(int n)
Domain2D transform(AffineTransform2D transform)
Shape2D
transform
in interface Shape2D
transform
- an affine transform
Domain2D clip(Box2D box)
Shape2D
clip
in interface Shape2D
box
- the clipping box
void draw(java.awt.Graphics2D g2)
draw
in interface Shape2D
g2
- the Graphics to draw onvoid fill(java.awt.Graphics2D g2)
g2
- the Graphics to fill on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |