|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvObjectInteractor
ilog.views.IlvPolyPointsEdition
ilog.views.maps.graphic.IlvMapPolyPointEdition
public class IlvMapPolyPointEdition
A IlvPolyPointsEdition that takes care of the MINIMUM_POINTS and MAXIMUM_POINTS properties if such properties are attached to the edited IlvGraphic. This object interactor will not add a point if the number of points will exceed the MAXIMUM_POINTS Integer property and will not remove a point if the number of points will be less than the MINIMUM_POINTS Integer property.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
IlvMapPolyPointEdition()
Creates a new IlvMapPolyPointEdition. |
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Field Detail |
|---|
public static final String MINIMUM_POINTS
public static final String MAXIMUM_POINTS
| Constructor Detail |
|---|
public IlvMapPolyPointEdition()
IlvMapPolyPointEdition.
| Method Detail |
|---|
protected void insertPoint(IlvPolyPointsInterface obj,
IlvPoint p,
IlvObjectInteractorContext context)
insertPoint in class IlvPolyPointsEditionobj - 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 IlvPolyPointsEditionobj - 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 IlvPolyPointsEditionobj - 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||