public class IlvMapPolyPointEdition extends IlvPolyPointsEdition
Modifier and Type | Field and Description |
---|---|
static String |
MAXIMUM_POINTS
Name of the property that is used to fix the maximum of points the graphic
object should have.
|
static String |
MINIMUM_POINTS
Name of the property that is used to fix the minimum of points the graphic
object should have.
|
Constructor and Description |
---|
IlvMapPolyPointEdition()
Creates a new
IlvMapPolyPointEdition . |
Modifier and Type | Method and Description |
---|---|
Cursor |
getAddCursor()
Retrieves the cursor used to indicate that the user can add a point.
|
Cursor |
getMoveHandleCursor()
Retrieves the cursor used to indicate that the user can move a point.
|
Cursor |
getMoveObjectCursor()
Retrieves the cursor used to indicate that the user can mode an handle.
|
Cursor |
getRemoveCursor()
Retrieves the cursor used to indicate that the user can remove a point.
|
protected void |
insertPoint(IlvPolyPointsInterface obj,
IlvPoint p,
IlvObjectInteractorContext context)
Called when a point is inserted.
|
boolean |
processEvent(IlvGraphic obj,
AWTEvent event,
IlvObjectInteractorContext context)
Processes the events.
|
protected void |
removePoint(IlvPolyPointsInterface obj,
IlvObjectInteractorContext context)
Called when a point is removed.
|
void |
setAddCursor(Cursor addCursor)
Sets the cursor used to indicate that the user can add a point.
|
void |
setMoveHandleCursor(Cursor moveHandleCursor)
Sets the cursor used to indicate that the user can mode an handle.
|
void |
setMoveObjectCursor(Cursor moveObjectCursor)
Sets the cursor used to indicate that the user can mode an object.
|
void |
setRemoveCursor(Cursor removeCursor)
Sets the cursor used to indicate that the user can remove a point.
|
allowPointAddition, allowPointAddition, allowPointRemoval, allowPointRemoval, allowsPointInsertion, allowsPointMove, allowsPointRemoval, drawGhost, drawGhost, getAddRemovePointModifier, getAddRemovePointModifierEx, getCursor, getIndex, handleButtonDown, handleButtonDragged, handleButtonUp, handleExpose, handleMouseMoved, isAddRemovePointModifierDown, isOpaqueMode, movePoint, onEnter, onExit, setAddRemovePointModifier, setCursor, setOpaqueMode
Get, Put
public static final String MINIMUM_POINTS
public static final String MAXIMUM_POINTS
public IlvMapPolyPointEdition()
IlvMapPolyPointEdition
.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 untransformed IlvManager
coordinates.context
- The interactor context.IlvPolyPointsEdition.insertPoint(ilog.views.IlvPolyPointsInterface, ilog.views.IlvPoint, ilog.views.IlvObjectInteractorContext)
protected void removePoint(IlvPolyPointsInterface obj, IlvObjectInteractorContext context)
getIndex
.removePoint
in class IlvPolyPointsEdition
obj
- The object to modify.context
- The interactor context.IlvPolyPointsEdition.removePoint(ilog.views.IlvPolyPointsInterface, ilog.views.IlvObjectInteractorContext)
public boolean processEvent(IlvGraphic obj, AWTEvent event, IlvObjectInteractorContext context)
handleButtonDown
for a MOUSE_PRESSED event,
handleButtonUp
for a MOUSE_RELEASED event, or
handleButtonDragged
for a MOUSE_DRAGGED event.processEvent
in class IlvPolyPointsEdition
obj
- The graphic object.event
- The event to process.context
- The context in which the event occurred.true
if the event was handled
by this processEvent
invocation,
false
otherwise.IlvPolyPointsEdition.processEvent(ilog.views.IlvGraphic, java.awt.AWTEvent, ilog.views.IlvObjectInteractorContext)
public Cursor getAddCursor()
public void setAddCursor(Cursor addCursor)
addCursor
- the cursor used to indicate that the user can add a point.public Cursor getMoveHandleCursor()
public void setMoveHandleCursor(Cursor moveHandleCursor)
moveHandleCursor
- the cursor used to indicate that the user can mode an handle.public Cursor getMoveObjectCursor()
public void setMoveObjectCursor(Cursor moveObjectCursor)
moveObjectCursor
- the cursor used to indicate that the user can mode an object.public Cursor getRemoveCursor()
public void setRemoveCursor(Cursor removeCursor)
removeCursor
- the cursor used to indicate that the user can remove a point.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.