|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvGraphic
ilog.views.IlvSelection
ilog.views.IlvHandlesSelection
ilog.views.IlvPolyPointsSelection
public class IlvPolyPointsSelection
This class is a selection object used to select graphic objects
that implements the IlvPolyPointsInterface.
It is a sub class of the class IlvHandlesSelection
where the handles correspond to the points defining the shape
of the object.
| Field Summary |
|---|
| Fields inherited from class ilog.views.IlvHandlesSelection |
|---|
CIRCLE_SHAPE, defaultHandleBackgroundColor, defaultHandleColor, defaultHandleShape, defaultHandleSize, FILLED_CIRCLE_SHAPE, FILLED_SQUARE_SHAPE, SQUARE_SHAPE |
| Constructor Summary | |
|---|---|
IlvPolyPointsSelection(IlvPolyPointsInterface obj)
Creates a new selection object. |
|
| Method Summary | |
|---|---|
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding box of the object. |
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Test if the specified point is inside a handle or inside the selected object. |
String |
getDefaultInteractor()
Returns the class name of the interactor used to edit polypoints. |
IlvPoint |
getHandle(int i,
IlvTransformer t)
Returns the location of a handle. |
int |
getHandleCardinal()
Returns the number of handles for this object. |
IlvPolyPointsInterface |
getPolyPoints()
Returns the selected object. |
boolean |
isClosedMode()
Returns true if this object is in closed mode. |
boolean |
isOptimizedDrawingEnabled()
The optimization is allowed if getPolyPoints().pointsInBBox()
returns true. |
void |
setClosedMode(boolean set)
Sets the selection in closed mode. |
static void |
SetDefaultInteractor(String interactor)
This method allows you to change the default interactor for instances of this class. |
| Methods inherited from class ilog.views.IlvHandlesSelection |
|---|
afterLoopAllHandles, beforeLoopAllHandles, draw, drawWithoutHandles, getActiveHandlesColor, getHandle, getHandlesColor, getHandlesShape, getHandlesSize, isActive, onEnter, onExit, setActiveHandlesColor, setHandlesColor, setHandlesShape, setHandlesSize, zoomable |
| Methods inherited from class ilog.views.IlvSelection |
|---|
applyTransform, copy, getObject, isVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvPolyPointsSelection(IlvPolyPointsInterface obj)
obj - the selected object.| Method Detail |
|---|
public IlvPolyPointsInterface getPolyPoints()
public IlvPoint getHandle(int i,
IlvTransformer t)
getPointAt method of the selected
IlvPolyPointsInterface object.
getHandle in class IlvHandlesSelectioni - the index of the handle.t - the transformer through which the object is drawn.public int getHandleCardinal()
IlvPolyPointsInterface object.
getHandleCardinal in class IlvHandlesSelectionpublic void setClosedMode(boolean set)
isClosedMode()public boolean isClosedMode()
true if this object is in closed mode.
In closed mode, this object will
draw a closed polyline when editing.
Otherwise it draws a polyline.
setClosedMode(boolean)
public boolean contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
contains in class IlvHandlesSelectionp - The point to be tested.tp - The point p transformed by the transformer
t.t - The transformation used to draw the object.
true if the point lies inside this graphic object.IlvGraphicpublic IlvRect boundingBox(IlvTransformer t)
boundingBox in class IlvHandlesSelectiont - The transformer used to draw the object. If the
transformer is null, the bounding box for the
identity transformer is returned.IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic boolean isOptimizedDrawingEnabled()
getPolyPoints().pointsInBBox()
returns true.
isOptimizedDrawingEnabled in class IlvSelectionpublic String getDefaultInteractor()
IlvPolyPointsEdition.
getDefaultInteractor in class IlvSelectionIlvPolyPointsEditionpublic static void SetDefaultInteractor(String interactor)
null will recover the initial interactor.
interactor - The new interactor.getDefaultInteractor()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||