public class TLspObjectHeightTranslationHandle extends ALspObjectTranslationHandle
ILcdShape
objects.
This handle sends a edit handle result, containing a MOVE
operation with a Z
constraint.
PRIORITY_2D_CONTOUR, PRIORITY_2D_POINT, PRIORITY_2D_SHAPE, PRIORITY_3D_CONTOUR, PRIORITY_3D_POINT, PRIORITY_3D_SHAPE, PRIORITY_MULTIPLE_SHAPES
Constructor and Description |
---|
TLspObjectHeightTranslationHandle(Object aObject)
Creates a new object height translation handle for the given geometry.
|
Modifier and Type | Method and Description |
---|---|
List<ALspStyleTargetProvider> |
getStyleTargetProviders(TLspHandleGeometryType aType)
Returns a style target provider that can generate geometry for the given visual editing
component type, or an empty list if no geometry can be generated for the given type.
|
protected TLspEditHandleResult |
onActivate(AWTEvent aEvent,
TLspEditContext aEditContext)
Called when this handle is activated (after
canActivate has returned
true . |
protected TLspEditHandleResultFX |
onActivate(javafx.event.Event aEvent,
TLspEditContext aEditContext)
JavaFX equivalent of
ALspObjectTranslationHandle.onActivate(AWTEvent, TLspEditContext) . |
protected TLspEditHandleResult |
onDeactivate(AWTEvent aEvent,
TLspEditContext aEditContext)
Performs some action with the event after the handle is deactivated.
|
protected TLspEditHandleResultFX |
onDeactivate(javafx.event.Event aEvent,
TLspEditContext aEditContext)
JavaFX equivalent of
ALspObjectTranslationHandle.onDeactivate(AWTEvent, TLspEditContext) . |
protected TLspEditHandleResult |
process(AWTEvent aEvent,
TLspEditContext aEditContext)
Process the given event.
|
protected TLspEditHandleResultFX |
process(javafx.event.Event aEvent,
TLspEditContext aEditContext)
JavaFX equivalent of
ALsp3StepEditHandle.process(AWTEvent, TLspEditContext) . |
canActivate, canActivate, canDeactivate, canDeactivate, canProcess, canProcess, isObjectTouched, isTranslateOnDrag, requestsFocus, requestsFocus, setTranslateOnDrag
handleAWTEvent, handleFXEvent, isActive
getGeometry
getCursor, getCursorFX, getPriority, getProperties, setCursor, setCursorFX, setPriority
public TLspObjectHeightTranslationHandle(Object aObject)
aObject
- the geometry to edit.protected TLspEditHandleResult onActivate(AWTEvent aEvent, TLspEditContext aEditContext)
ALspObjectTranslationHandle
canActivate
has returned
true
.
By default, this method returns a edit handle result without operations and interaction status
IN_PROGRESS
.
Override this method to provide custom behavior. In that case, also make sure to call the
super method.onActivate
in class ALspObjectTranslationHandle
aEvent
- the event that caused the handle to be activatedaEditContext
- the edit contextnull
.ALspEditHandle.handleAWTEvent(java.awt.AWTEvent, com.luciad.view.lightspeed.editor.TLspEditContext)
,
ALsp3StepEditHandle.canActivate(java.awt.AWTEvent, com.luciad.view.lightspeed.editor.TLspEditContext)
protected TLspEditHandleResultFX onActivate(javafx.event.Event aEvent, TLspEditContext aEditContext)
ALspObjectTranslationHandle
ALspObjectTranslationHandle.onActivate(AWTEvent, TLspEditContext)
.onActivate
in class ALspObjectTranslationHandle
aEvent
- the event that caused the handle to be activatedaEditContext
- the edit contextnull
.protected TLspEditHandleResult onDeactivate(AWTEvent aEvent, TLspEditContext aEditContext)
ALspObjectTranslationHandle
FINISHED
.
Override this method to provide custom behavior. In that case, also make sure to call the
super method.onDeactivate
in class ALspObjectTranslationHandle
aEvent
- the event that caused the handle to be deactivatedaEditContext
- the edit contextnull
.ALspEditHandle.handleAWTEvent(java.awt.AWTEvent, com.luciad.view.lightspeed.editor.TLspEditContext)
,
ALsp3StepEditHandle.canDeactivate(java.awt.AWTEvent, com.luciad.view.lightspeed.editor.TLspEditContext)
protected TLspEditHandleResultFX onDeactivate(javafx.event.Event aEvent, TLspEditContext aEditContext)
ALspObjectTranslationHandle
ALspObjectTranslationHandle.onDeactivate(AWTEvent, TLspEditContext)
.onDeactivate
in class ALspObjectTranslationHandle
aEvent
- the event that caused the handle to be deactivatedaEditContext
- the edit contextnull
.protected TLspEditHandleResult process(AWTEvent aEvent, TLspEditContext aEditContext)
ALsp3StepEditHandle
process
in class ALsp3StepEditHandle
aEvent
- the event that was processedaEditContext
- the edit contextnull
.ALspEditHandle.handleAWTEvent(java.awt.AWTEvent, com.luciad.view.lightspeed.editor.TLspEditContext)
protected TLspEditHandleResultFX process(javafx.event.Event aEvent, TLspEditContext aEditContext)
ALsp3StepEditHandle
ALsp3StepEditHandle.process(AWTEvent, TLspEditContext)
.process
in class ALsp3StepEditHandle
aEvent
- the event that was processedaEditContext
- the edit contextnull
.public List<ALspStyleTargetProvider> getStyleTargetProviders(TLspHandleGeometryType aType)
ALspHandle
TLspEditHandleStyler
allows
you to register different styles for each visual component type.getStyleTargetProviders
in class ALspHandle
aType
- a visual editing component type
visual editing component type