|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BoundsStrategy
An interface that defines strategies for finding bounding shapes given a
set of Shapes. For example, more advanced convex hull algorithms
could be used to calculate a more accurate bounding polygon.
Shape| Method Summary | |
|---|---|
void |
addShape(Shape s)
Adds a set of points to the bounds. |
Shape |
getBounds()
Gets the accumulated bounds. |
void |
resetBounds()
Resets the state so that it is as if no points have been added. |
| Method Detail |
|---|
void addShape(Shape s)
Shape. If the shape is null then it is as if no
points are added.
Recall that Shapes can be one of a few types whose points do
not necessarily complete the entire set of points in the shape. For
example, a Rectangle uses two points, two opposing corners, to
represent the shape and not four points. Similarly, an Ellipse
also uses just two points to define itself.
s - the set of points to add, given as a ShapeShapeShape getBounds()
addShape(Shape)void resetBounds()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||