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
ConstructorsConstructorDescriptionTLspObjectHeightTranslationHandle(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 TLspEditHandleResultonActivate(AWTEvent aEvent, TLspEditContext aEditContext) Called when this handle is activated (aftercanActivatehas returnedtrue.protected TLspEditHandleResultFXonActivate(Event aEvent, TLspEditContext aEditContext) JavaFX equivalent ofALspObjectTranslationHandle.onActivate(AWTEvent, TLspEditContext).protected TLspEditHandleResultonDeactivate(AWTEvent aEvent, TLspEditContext aEditContext) Performs some action with the event after the handle is deactivated.protected TLspEditHandleResultFXonDeactivate(Event aEvent, TLspEditContext aEditContext) JavaFX equivalent ofALspObjectTranslationHandle.onDeactivate(AWTEvent, TLspEditContext).protected TLspEditHandleResultprocess(AWTEvent aEvent, TLspEditContext aEditContext) Process the given event.protected TLspEditHandleResultFXprocess(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, setTranslateOnDragMethods inherited from class com.luciad.view.lightspeed.editor.handle.ALsp3StepEditHandle
handleAWTEvent, handleFXEvent, isActiveMethods inherited from class com.luciad.view.lightspeed.editor.handle.ALspEditHandle
getGeometryMethods 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:ALspObjectTranslationHandleCalled when this handle is activated (aftercanActivatehas 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:
onActivatein 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:ALspObjectTranslationHandleJavaFX equivalent ofALspObjectTranslationHandle.onActivate(AWTEvent, TLspEditContext).- Overrides:
onActivatein 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:ALspObjectTranslationHandlePerforms 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:
onDeactivatein 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:ALspObjectTranslationHandleJavaFX equivalent ofALspObjectTranslationHandle.onDeactivate(AWTEvent, TLspEditContext).- Overrides:
onDeactivatein 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:ALsp3StepEditHandleProcess the given event. This method is only called when the handle is active and processing is requested.- Specified by:
processin 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:ALsp3StepEditHandleJavaFX equivalent ofALsp3StepEditHandle.process(AWTEvent, TLspEditContext).- Overrides:
processin 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:ALspHandleReturns 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.TLspEditHandleStylerallows you to register different styles for each visual component type.- Specified by:
getStyleTargetProvidersin 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
-