public interface SmartShape
Shape hierarchy.| Modifier and Type | Interface and Description |
|---|---|
static interface |
SmartShape.PointCallback
Callback interface passed every point which is within the area of this
shape.
|
static class |
SmartShape.Util
Utility class used as a mixin by all of the
SmartShape
implementations. |
| Modifier and Type | Method and Description |
|---|---|
void |
areaPoints(SmartShape.PointCallback action)
Calls the
SmartShape.PointCallback with all of the x/y coordinates which are
within the shape. |
java.awt.Shape |
asAwtShape()
Converts the current
SmartShape to a Shape. |
java.util.List<Point> |
asPoints()
Provides some, possibly lossy, bounding polygon of this
SmartShape via points. |
void |
randomize(java.util.Random random)
Initializes this shape with completely random data.
|
void areaPoints(SmartShape.PointCallback action)
SmartShape.PointCallback with all of the x/y coordinates which are
within the shape.action - the callback to calljava.awt.Shape asAwtShape()
SmartShape to a Shape. This
is useful for determining paths and included points.java.util.List<Point> asPoints()
SmartShape via points.void randomize(java.util.Random random)
random - a random number generator