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)
.
Constructor and Description |
---|
IlvSplineEdition()
Creates a new instance of
IlvSplineEdition . |
Modifier and Type | Method and Description |
---|---|
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.
|
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
Get, Put
public IlvSplineEdition()
IlvSplineEdition
.protected void insertPoint(IlvPolyPointsInterface obj, IlvPoint p, IlvObjectInteractorContext context)
insertPoint
in class IlvPolyPointsEdition
obj
- The object to modify.p
- The position of the point in IlvManagerView
coordinates.context
- The interactor context.protected void movePoint(IlvPolyPointsInterface obj, IlvObjectInteractorContext context, IlvPoint p)
getIndex
.movePoint
in class IlvPolyPointsEdition
obj
- The object to modify.context
- The interactor context.p
- The new position of the point in IlvManagerView
coordinates.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.