ilog.views.graphic
Class IlvSplineEdition

java.lang.Object
  extended by ilog.views.IlvObjectInteractor
      extended by ilog.views.IlvPolyPointsEdition
          extended by ilog.views.graphic.IlvSplineEdition
All Implemented Interfaces:
Serializable

public class IlvSplineEdition
extends IlvPolyPointsEdition

IlvSplineEdition is an object interactor used to edit IlvSpline objects.

This interactor lets you move the points of the handle points of the spline. You can also add or remove a point. By default, Ctrl+Click on a point removes the point. Ctrl+Click on the object will add a point. The modifier can be changed using IlvPolyPointsEdition.setAddRemovePointModifier(int).

Since:
JViews 8.1
See Also:
Serialized Form

Constructor Summary
IlvSplineEdition()
          Creates a new instance of IlvSplineEdition.
 
Method Summary
protected  void insertPoint(IlvPolyPointsInterface obj, IlvPoint p, IlvObjectInteractorContext context)
          Called when a point is inserted.
protected  void movePoint(IlvPolyPointsInterface obj, IlvObjectInteractorContext context, IlvPoint p)
          Called when a point is moved.
 
Methods inherited from class ilog.views.IlvPolyPointsEdition
allowPointAddition, allowPointAddition, allowPointRemoval, allowPointRemoval, allowsPointInsertion, allowsPointMove, allowsPointRemoval, drawGhost, drawGhost, getAddRemovePointModifier, getAddRemovePointModifierEx, getCursor, getIndex, handleButtonDown, handleButtonDragged, handleButtonUp, handleExpose, handleMouseMoved, isAddRemovePointModifierDown, isOpaqueMode, onEnter, onExit, processEvent, removePoint, setAddRemovePointModifier, setCursor, setOpaqueMode
 
Methods inherited from class ilog.views.IlvObjectInteractor
Get, Put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvSplineEdition

public IlvSplineEdition()
Creates a new instance of IlvSplineEdition.

Method Detail

insertPoint

protected void insertPoint(IlvPolyPointsInterface obj,
                           IlvPoint p,
                           IlvObjectInteractorContext context)
Called when a point is inserted.

Overrides:
insertPoint in class IlvPolyPointsEdition
Parameters:
obj - The object to modify.
p - The position of the point in IlvManagerView coordinates.
context - The interactor context.

movePoint

protected void movePoint(IlvPolyPointsInterface obj,
                         IlvObjectInteractorContext context,
                         IlvPoint p)
Called when a point is moved. You can obtain the index of the removed point using getIndex.

Overrides:
movePoint in class IlvPolyPointsEdition
Parameters:
obj - The object to modify.
context - The interactor context.
p - The new position of the point in IlvManagerView coordinates.


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