Class TLspObjectTranslationHandle
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.TLspObjectTranslationHandle
- Direct Known Subclasses:
TLspProjectedObjectTranslationHandle
A handle that allows translation of a whole object by touching and dragging.
- Since:
- 2012.0
- See Also:
-
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
ConstructorsConstructorDescriptionTLspObjectTranslationHandle(Object aGeometry) Creates a translation handle to move the given editor. -
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
-
TLspObjectTranslationHandle
Creates a translation handle to move the given editor. Translating the object is performed by pressing/clicking the left mouse button and dragging/moving.- Parameters:
aGeometry- the geometry to translate. This can either be the domain object in case the domain object is the geometry itself, or it could also be the output of the styler for a specific domain object.
-
-
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
-