Class TLspObjectHeightTranslationHandle
java.lang.Object
com.luciad.view.lightspeed.editor.handle.ALspHandle
com.luciad.view.lightspeed.editor.handle.ALspEditHandle
com.luciad.view.lightspeed.editor.handle.ALsp3StepEditHandle
com.luciad.view.lightspeed.editor.handle.ALspObjectTranslationHandle
com.luciad.view.lightspeed.editor.handle.TLspObjectHeightTranslationHandle
An edit handle that allows the user to modify a 3D object's height above the terrain by
dragging it. This handle can only be used for
ILcdShape
objects.
This handle sends a edit handle result, containing a MOVE
operation with a Z
constraint.
- Since:
- 2012.0
-
Field Summary
Fields inherited from class com.luciad.view.lightspeed.editor.handle.ALspHandle
PRIORITY_2D_CONTOUR, PRIORITY_2D_POINT, PRIORITY_2D_SHAPE, PRIORITY_3D_CONTOUR, PRIORITY_3D_POINT, PRIORITY_3D_SHAPE, PRIORITY_MULTIPLE_SHAPES
-
Constructor Summary
ConstructorDescriptionTLspObjectHeightTranslationHandle
(Object aObject) Creates a new object height translation handle for the given geometry. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 (aftercanActivate
has returnedtrue
.protected TLspEditHandleResultFX
onActivate
(Event aEvent, TLspEditContext aEditContext) JavaFX equivalent ofALspObjectTranslationHandle.onActivate(AWTEvent, TLspEditContext)
.protected TLspEditHandleResult
onDeactivate
(AWTEvent aEvent, TLspEditContext aEditContext) Performs some action with the event after the handle is deactivated.protected TLspEditHandleResultFX
onDeactivate
(Event aEvent, TLspEditContext aEditContext) JavaFX equivalent ofALspObjectTranslationHandle.onDeactivate(AWTEvent, TLspEditContext)
.protected TLspEditHandleResult
process
(AWTEvent aEvent, TLspEditContext aEditContext) Process the given event.protected TLspEditHandleResultFX
process
(Event aEvent, TLspEditContext aEditContext) JavaFX equivalent ofALsp3StepEditHandle.process(AWTEvent, TLspEditContext)
.Methods inherited from class com.luciad.view.lightspeed.editor.handle.ALspObjectTranslationHandle
canActivate, canActivate, canDeactivate, canDeactivate, canProcess, canProcess, isObjectTouched, isTranslateOnDrag, requestsFocus, requestsFocus, setTranslateOnDrag
Methods inherited from class com.luciad.view.lightspeed.editor.handle.ALsp3StepEditHandle
handleAWTEvent, handleFXEvent, isActive
Methods inherited from class com.luciad.view.lightspeed.editor.handle.ALspEditHandle
getGeometry
Methods inherited from class com.luciad.view.lightspeed.editor.handle.ALspHandle
getCursor, getCursorFX, getPriority, getProperties, setCursor, setCursorFX, setPriority
-
Constructor Details
-
TLspObjectHeightTranslationHandle
Creates a new object height translation handle for the given geometry.- Parameters:
aObject
- the geometry to edit.
-
-
Method Details
-
onActivate
Description copied from class:ALspObjectTranslationHandle
Called when this handle is activated (aftercanActivate
has returnedtrue
. By default, this method returns a edit handle result without operations and interaction statusIN_PROGRESS
. Override this method to provide custom behavior. In that case, also make sure to call the super method.- Overrides:
onActivate
in classALspObjectTranslationHandle
- Parameters:
aEvent
- the event that caused the handle to be activatedaEditContext
- the edit context- Returns:
- an edit handle result containing a collection of operations to perform, and the
(partially) consumed event object. The handle result itself should not be
null
. - See Also:
-
onActivate
Description copied from class:ALspObjectTranslationHandle
JavaFX equivalent ofALspObjectTranslationHandle.onActivate(AWTEvent, TLspEditContext)
.- Overrides:
onActivate
in classALspObjectTranslationHandle
- Parameters:
aEvent
- the event that caused the handle to be activatedaEditContext
- the edit context- Returns:
- an edit handle result containing a collection of operations to perform, and the
(partially) consumed event object. The handle result itself should not be
null
.
-
onDeactivate
Description copied from class:ALspObjectTranslationHandle
Performs some action with the event after the handle is deactivated. By default, this method returns a edit handle result without operations and interaction statusFINISHED
. Override this method to provide custom behavior. In that case, also make sure to call the super method.- Overrides:
onDeactivate
in classALspObjectTranslationHandle
- Parameters:
aEvent
- the event that caused the handle to be deactivatedaEditContext
- the edit context- Returns:
- an edit handle result containing a collection of operations to perform, and the
(partially) consumed event object. The handle result itself should not be
null
. - See Also:
-
onDeactivate
Description copied from class:ALspObjectTranslationHandle
JavaFX equivalent ofALspObjectTranslationHandle.onDeactivate(AWTEvent, TLspEditContext)
.- Overrides:
onDeactivate
in classALspObjectTranslationHandle
- Parameters:
aEvent
- the event that caused the handle to be deactivatedaEditContext
- the edit context- Returns:
- an edit handle result containing a collection of operations to perform, and the
(partially) consumed event object. The handle result itself should not be
null
.
-
process
Description copied from class:ALsp3StepEditHandle
Process the given event. This method is only called when the handle is active and processing is requested.- Specified by:
process
in classALsp3StepEditHandle
- Parameters:
aEvent
- the event that was processedaEditContext
- the edit context- Returns:
- an edit handle result containing a collection of operations to perform, and the
(partially) consumed event object. The handle result itself should not be
null
. - See Also:
-
process
Description copied from class:ALsp3StepEditHandle
JavaFX equivalent ofALsp3StepEditHandle.process(AWTEvent, TLspEditContext)
.- Overrides:
process
in classALsp3StepEditHandle
- Parameters:
aEvent
- the event that was processedaEditContext
- the edit context- Returns:
- an edit handle result containing a collection of operations to perform, and the
(partially) consumed event object. The handle result itself should not be
null
.
-
getStyleTargetProviders
Description copied from class:ALspHandle
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.TLspEditHandleStyler
allows you to register different styles for each visual component type.- Specified by:
getStyleTargetProviders
in classALspHandle
- Parameters:
aType
- avisual editing component type
- Returns:
- a list of style target providers, or an empty list if no style targets can be created for the given
visual editing component type
-