ilog.views
Interface IlvPolyPointsInterface

All Known Implementing Classes:
IlvArrowLine, IlvArrowPolyline, IlvClosedSpline, IlvCompositeLink, IlvConstraintGraphic, IlvCrossingAwareLinkImage, IlvDefaultCollapsedGraphic, IlvDoubleLinkImage, IlvDoubleSplineLinkImage, IlvEnhancedPolylineLinkImage, IlvFilledSpline, IlvGeneralPath, IlvLine, IlvLinkBundle, IlvLinkImage, IlvOneLinkImage, IlvOneSplineLinkImage, IlvOutlinePolygon, IlvPolicyAwareLinkImage, IlvPolygon, IlvPolyline, IlvPolylineLinkImage, IlvPolyPoints, IlvSpline, IlvSplineLinkImage, IlvTextPath

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

getPointsCardinal

int getPointsCardinal()
Returns the number of points.


getPointAt

IlvPoint getPointAt(int index,
                    IlvTransformer t)
Returns the point at a specified index.

Parameters:
index - The index.
t - The transformer used to draw the object.

movePoint

void movePoint(int index,
               float x,
               float y,
               IlvTransformer t)
Changes the position of a point.

Parameters:
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.

allowsPointInsertion

boolean allowsPointInsertion()
Returns true if the interactors are allowed to add points, and false otherwise.


allowsPointRemoval

boolean allowsPointRemoval()
Returns true if the interactors are allowed to remove points, and false otherwise.


allowsPointMove

boolean allowsPointMove(int index)
Returns true if the interactors are allowed to move the point with the specified index, and returns false otherwise.

Parameters:
index - The index of the point.
Since:
JViews 5.0

insertPoint

void insertPoint(int index,
                 float x,
                 float y,
                 IlvTransformer t)
Inserts a point.

Parameters:
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.

removePoint

void removePoint(int index,
                 IlvTransformer t)
Removes a point.

Parameters:
index - The index of the point to remove.
t - The transformer used to draw the polypoint.

boundingBox

IlvRect boundingBox(IlvTransformer t)
Returns the bounding rectangle of the object.

Parameters:
t - The transformer used to draw the object.

pointsInBBox

boolean pointsInBBox()
Returns true if all points are contained inside the bounding rectangle of the object.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.