public class TLspMultiObjectTranslationHandle extends ALspMultiObjectHandle
PRIORITY_2D_CONTOUR, PRIORITY_2D_POINT, PRIORITY_2D_SHAPE, PRIORITY_3D_CONTOUR, PRIORITY_3D_POINT, PRIORITY_3D_SHAPE, PRIORITY_MULTIPLE_SHAPES
Constructor and Description |
---|
TLspMultiObjectTranslationHandle(Collection<TLspDomainObjectContext> aDomainObjectContextList)
Creates a translation handle to move the given editor.
|
Modifier and Type | Method and Description |
---|---|
Cursor |
getCursor()
Returns the cursor for this handle.
|
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.
|
TLspEditHandleResult |
handleAWTEvent(AWTEvent aEvent,
TLspMultiObjectEditContext aEditContext)
Handle the given input event for the given view.
|
TLspEditHandleResultFX |
handleFXEvent(javafx.event.Event aEvent,
TLspMultiObjectEditContext aEditContext)
JavaFX equivalent of
ALspMultiObjectHandle.handleAWTEvent(AWTEvent, TLspMultiObjectEditContext) . |
boolean |
isActive()
Checks whether this handle is active.
|
boolean |
requestsFocus(AWTEvent aEvent,
TLspMultiObjectEditContext aEditContext)
Indicates whether this handle requests focus for the given event.
|
boolean |
requestsFocus(javafx.event.Event aEvent,
TLspMultiObjectEditContext aEditContext)
JavaFX equivalent of
requestsFocus(AWTEvent, TLspMultiObjectEditContext) . |
getObjects
getCursorFX, getPriority, getProperties, setCursor, setCursorFX, setPriority
public TLspMultiObjectTranslationHandle(Collection<TLspDomainObjectContext> aDomainObjectContextList)
aDomainObjectContextList
- the list of domain objects to translatepublic boolean isActive()
ALspHandle
isActive
in class ALspHandle
public List<ALspStyleTargetProvider> getStyleTargetProviders(TLspHandleGeometryType aType)
TLspEditHandleStyler
allows
you to register different styles for each visual component type.
By default, this method returns an empty list.getStyleTargetProviders
in class ALspHandle
aType
- a visual editing component type
visual editing component type
public boolean requestsFocus(AWTEvent aEvent, TLspMultiObjectEditContext aEditContext)
handle priority
).
The default implementation returns true
if the handle is active. Subclasses can override this method however to
also request focus when the focus point hovers over a visual handle component for example.
true
when this handle is active or when one of the objects (passed in the edit context) is
touched.requestsFocus
in class ALspMultiObjectHandle
aEvent
- the AWTEvent that might result in a focus requestaEditContext
- the edit context, containing, among others, the objects being edited,
its layers, the view, the geometries that are being edited, the paint
representations in which the geometries exist, and the sensitivity with
which the event should be handled.the handle is active
ALspHandle.isActive()
public boolean requestsFocus(javafx.event.Event aEvent, TLspMultiObjectEditContext aEditContext)
requestsFocus(AWTEvent, TLspMultiObjectEditContext)
.requestsFocus
in class ALspMultiObjectHandle
aEvent
- the event that might result in a focus requestaEditContext
- the edit context, containing, among others, the objects being edited,
its layers, the view, the geometries that are being edited, the paint
representations in which the geometries exist, and the sensitivity with
which the event should be handled.the handle is active
public Cursor getCursor()
ALspHandle
getCursor
in class ALspHandle
public TLspEditHandleResult handleAWTEvent(AWTEvent aEvent, TLspMultiObjectEditContext aEditContext)
MOVE
operation,
or without operation, if for instance the mouse isn't moved.handleAWTEvent
in class ALspMultiObjectHandle
aEvent
- the input eventaEditContext
- the edit context, containing, among others, the objects being edited,
its layers, the view, the geometries that are being edited, the paint
representations in which the geometries exist, and the sensitivity with
which the event should be handled.ALspHandle.isActive()
public TLspEditHandleResultFX handleFXEvent(javafx.event.Event aEvent, TLspMultiObjectEditContext aEditContext)
ALspMultiObjectHandle
ALspMultiObjectHandle.handleAWTEvent(AWTEvent, TLspMultiObjectEditContext)
.handleFXEvent
in class ALspMultiObjectHandle
aEvent
- the input eventaEditContext
- the edit context, containing, among others, the objects being edited,
its layers, the view, the geometries that are being edited, the paint
representations in which the geometries exist, and the sensitivity with
which the event should be handled.