public interface Domain2D extends Shape2D
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.
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
draw(Graphics2D g2)
Draws the boundary of the domain, using current Stroke and color.
|
void |
fill(Graphics2D g2)
Fills the interior of the domain, using the Graphics current Paint.
|
Boundary2D |
getBoundary()
Returns the boundary of the set.
|
Domain2D |
transform(AffineTransform2D transform)
Transforms the shape by an affine transform.
|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmptyBoundary2D getBoundary()
The returned curve is oriented, with an interior and an exterior.
Domain2D complement()
Domain2D transform(AffineTransform2D transform)
Shape2DDomain2D clip(Box2D box)
Shape2Dvoid draw(Graphics2D g2)
void fill(Graphics2D g2)
g2 - the Graphics to fill onCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.