|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NormalizedShapes
An interface indicating that a component deals with normalized shapes that
implement Centerable.
Shapes in that respect means ShapeDraw, TextDraw, and
PointDraw instances. Methods for selecting these objects are
provided.
| Method Summary | ||
|---|---|---|
|
getClosestShape(Point2D norm,
Class<T> oftype)
Locates the Centerable of the specified type that is closest
to the given normalized point. |
|
|
getInsideShapes(Rectangle2D norm,
Class<T> oftype)
Returns all Centerables of the specified type that have their
center within the specified Rectangle. |
|
| Method Detail |
|---|
<T extends Centerable> T getClosestShape(Point2D norm,
Class<T> oftype)
Centerable of the specified type that is closest
to the given normalized point.
norm - The point-of-interest in normalized coordinates.
<T extends Centerable> Collection<T> getInsideShapes(Rectangle2D norm,
Class<T> oftype)
Centerables of the specified type that have their
center within the specified Rectangle. Returns null if the type is
unknown and an empty collection if there are no Centerables
within the rectangle.
norm - The bounding rectangle in normalized coordinates.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||