|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlvPolyPointsInterface
An interface used to implement graphic objects with several points.
| Method Summary | |
|---|---|
boolean |
allowsPointInsertion()
Returns true if the interactors are allowed to add points, and
false otherwise. |
boolean |
allowsPointMove(int index)
Returns true if the interactors are allowed to move the point
with the specified index, and returns false otherwise. |
boolean |
allowsPointRemoval()
Returns true if the interactors are allowed to remove points,
and false otherwise. |
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding rectangle of the object. |
IlvPoint |
getPointAt(int index,
IlvTransformer t)
Returns the point at a specified index. |
int |
getPointsCardinal()
Returns the number of points. |
void |
insertPoint(int index,
float x,
float y,
IlvTransformer t)
Inserts a point. |
void |
movePoint(int index,
float x,
float y,
IlvTransformer t)
Changes the position of a point. |
boolean |
pointsInBBox()
Returns true if all points are contained inside
the bounding rectangle of the object. |
void |
removePoint(int index,
IlvTransformer t)
Removes a point. |
| Method Detail |
|---|
int getPointsCardinal()
IlvPoint getPointAt(int index,
IlvTransformer t)
index - The index.t - The transformer used to draw the object.
void movePoint(int index,
float x,
float y,
IlvTransformer t)
index - The index of the point to be moved.x - The new x location.y - The new y location.t - The transformer used to draw the object.
Note that the x, y coordinates are not transformed by the transformer.boolean allowsPointInsertion()
true if the interactors are allowed to add points, and
false otherwise.
boolean allowsPointRemoval()
true if the interactors are allowed to remove points,
and false otherwise.
boolean allowsPointMove(int index)
true if the interactors are allowed to move the point
with the specified index, and returns false otherwise.
index - The index of the point.
void insertPoint(int index,
float x,
float y,
IlvTransformer t)
index - The index at which the new point will be inserted.x - The x coordinate of the new point.y - The y coordinate of the new point.t - The transformer used to draw the polypoint.
void removePoint(int index,
IlvTransformer t)
index - The index of the point to remove.t - The transformer used to draw the polypoint.IlvRect boundingBox(IlvTransformer t)
t - The transformer used to draw the object.boolean pointsInBBox()
true if all points are contained inside
the bounding rectangle of the object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||