|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Shape2D
Main interface for all geometric objects, including points, lines, curves, or planar regions...
Depending direct interfaces extending Shape2D are Curve2D, and AbstractDomain2D. There are some direct implementation of Shape2D: Point2D, Shape2D.EmptySet2D.
| Field Summary | |
|---|---|
static double |
ACCURACY
The constant used for testing results. |
static Box2D |
defaultClipWindow
This is the basic window used by default to clip lines, conics or others infinite figures to draw them. |
static Shape2D |
EMPTY_SET
|
| Method Summary | |
|---|---|
Shape2D |
clip(Box2D box)
Clip the shape with the given box, and returns a new shape. |
Box2D |
getBoundingBox()
Returns the bounding box of the shape. |
double |
getDistance(double x,
double y)
get the distance of the shape to the given point, specified by x and y, or the distance of point to the frontier of the shape in the case of a plain (i.e. fillable) shape. |
double |
getDistance(java.awt.geom.Point2D p)
get the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape. |
boolean |
isBounded()
Returns true if the shape is bounded, that is if we can draw a finite rectangle enclosing the shape. |
Shape2D |
transform(AffineTransform2D trans)
transform the shape by an affine transform. |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Field Detail |
|---|
static final double ACCURACY
static final Box2D defaultClipWindow
Shape2D.getClippedShape(Rectangle2D), which always returns a
'finite' shape.
static final Shape2D EMPTY_SET
| Method Detail |
|---|
double getDistance(java.awt.geom.Point2D p)
double getDistance(double x,
double y)
boolean isBounded()
Shape2D clip(Box2D box)
box - the clipping box
Box2D getBoundingBox()
Shape2D transform(AffineTransform2D trans)
trans - an affine transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||