|
||||||||||
| 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
ilog.views.graphic.IlvSplineSelection
public class IlvSplineSelection
Selection object on an IlvSpline.
| 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 | |
|---|---|
IlvSplineSelection(IlvSpline obj)
Creates a new spline selection object. |
|
| Method Summary | |
|---|---|
protected void |
afterLoopAllHandles()
This is called by this class after iterating over all handles and calling getHandle(int, ilog.views.IlvTransformer). |
protected void |
beforeLoopAllHandles(IlvTransformer t)
This is called by this class before iterating over all handles and calling getHandle(int, ilog.views.IlvTransformer). |
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding box of the object. |
void |
draw(Graphics dst,
IlvTransformer t)
Draws the object. |
void |
drawWithoutHandles(Graphics dst,
IlvTransformer t)
Draws the object without the handles. |
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. |
IlvSpline |
getSpline()
Returns the selected object. |
static boolean |
IsHandlesOnSplineMode()
Returns whether the handles of the spline are on the spline. |
static boolean |
IsShowTangentsMode()
Returns whether the spline tangents are shown additionally to the selection handles. |
static void |
SetDefaultInteractor(String interactor)
This method allows you to change the default interactor for instances of this class. |
static void |
SetHandlesOnSplineMode(boolean enable)
Sets whether the handles of the spline are on the spline. |
static void |
SetShowTangentsMode(boolean enable)
Sets whether the tangents are shown additionally to the selection handles. |
| Methods inherited from class ilog.views.IlvPolyPointsSelection |
|---|
contains, getHandleCardinal, getPolyPoints, isClosedMode, isOptimizedDrawingEnabled, setClosedMode |
| Methods inherited from class ilog.views.IlvHandlesSelection |
|---|
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 IlvSplineSelection(IlvSpline obj)
obj - the selected object| Method Detail |
|---|
public IlvRect boundingBox(IlvTransformer t)
boundingBox in class IlvPolyPointsSelectiont - 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(),
IlvGraphic
public void draw(Graphics dst,
IlvTransformer t)
draw in class IlvHandlesSelectiondst - The destination Graphics.t - The transformation used to draw the object.IlvGraphic.boundingBox(ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphic
public void drawWithoutHandles(Graphics dst,
IlvTransformer t)
drawWithoutHandles in class IlvHandlesSelectiondst - The destination Graphics.t - The transformation used to draw the object.
public IlvPoint getHandle(int i,
IlvTransformer t)
getPointAt method of the selected
IlvSpline object.
getHandle in class IlvPolyPointsSelectioni - the index of the handle.t - the transformer through which the object is drawn.protected void beforeLoopAllHandles(IlvTransformer t)
getHandle(int, ilog.views.IlvTransformer). Subclasses can override this method
to do preparations so that getHandle(int, ilog.views.IlvTransformer) is fast, e.g. fill
certain caches that are needed by getHandle(int, ilog.views.IlvTransformer).
beforeLoopAllHandles in class IlvHandlesSelectiont - The transformer to draw this object.afterLoopAllHandles()protected void afterLoopAllHandles()
getHandle(int, ilog.views.IlvTransformer). Subclasses can override this method
to do cleanup caches that were needed by getHandle(int, ilog.views.IlvTransformer).
afterLoopAllHandles in class IlvHandlesSelectionbeforeLoopAllHandles(ilog.views.IlvTransformer)public IlvSpline getSpline()
public String getDefaultInteractor()
IlvSplineEdition.
getDefaultInteractor in class IlvPolyPointsSelectionIlvSplineEditionpublic static void SetDefaultInteractor(String interactor)
null will recover the initial interactor.
interactor - The new interactor.getDefaultInteractor()public static boolean IsHandlesOnSplineMode()
IlvGraphicUtil.COMPATIBLE_SMOOTHNESS or
IlvGraphicUtil.AUTO_SMOOTHNESS, the handles of
the spline are always outside the spline.
public static void SetHandlesOnSplineMode(boolean enable)
IlvGraphicUtil.COMPATIBLE_SMOOTHNESS or
IlvGraphicUtil.AUTO_SMOOTHNESS, the handles of
the spline are always outside the spline.
For all other values of the smoothness, the handles are by default on the spline.
public static boolean IsShowTangentsMode()
public static void SetShowTangentsMode(boolean enable)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||