public interface IlvPolyPointsInterface
Modifier and Type | Method and Description |
---|---|
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,
double x,
double y,
IlvTransformer t)
Inserts a point.
|
void |
movePoint(int index,
double x,
double 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.
|
int getPointsCardinal()
IlvPoint getPointAt(int index, IlvTransformer t)
index
- The index.t
- The transformer used to draw the object.void movePoint(int index, double x, double 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, double x, double 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.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.