|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.AbstractMouseInputEditor y.view.MultiplexingNodeEditor
public class MultiplexingNodeEditor
MouseInputEditor
that multiplexes between one or more
subordinate editors. Each subordinate editor may take responsibility for
handling an editing gesture according to event position and type.
Nested Class Summary | |
---|---|
static class |
MultiplexingNodeEditor.EventReporter
Editor that plays recorded MouseEvent s back to a
parent EditMode instance for further processing. |
static interface |
MultiplexingNodeEditor.NodeEditor
A class implementing this interface can be added to a MultiplexingNodeEditor and
implements one behaviour of a node triggered by a mouse gesture. |
Constructor Summary | |
---|---|
MultiplexingNodeEditor()
Creates a new MultiplexingNodeEditor without any subordinate
editors. |
Method Summary | |
---|---|
void |
addNodeEditor(MultiplexingNodeEditor.NodeEditor editor)
Adds the specified editor as a subordinate editor to the MultiplexingNodeEditor instance. |
MouseInputEditor |
findMouseInputEditor(NodeRealizer context,
Graph2DView view,
double x,
double y,
HitInfo hitInfo)
Used as a callback for the GenericNodeRealizer.findMouseInputEditor(Graph2DView, double, double, HitInfo) method. |
java.util.Collection |
getNodeEditors()
Returns a read-only view of the MultiplexingNodeEditor 's
subordinate editors. |
void |
mouse2DEventHappened(Mouse2DEvent event)
Listener-like interface that will be notified of Mouse2DEvents. |
void |
removeNodeEditor(MultiplexingNodeEditor.NodeEditor editor)
Removes the specified editor from the MultiplexingNodeEditor 's
collection of subordinate editors. |
boolean |
startsEditing(Mouse2DEvent event)
This method is used by clients to query whether the given event is deemed as a starting gesture. |
void |
stopEditing()
Called by clients to stop the editing process cleanly. |
Methods inherited from class y.view.AbstractMouseInputEditor |
---|
addChangeListener, fireStateChanged, isEditing, isEnabled, isInterestedInEvents, removeChangeListener, setEnabled, startEditing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiplexingNodeEditor()
MultiplexingNodeEditor
without any subordinate
editors.
Method Detail |
---|
public void addNodeEditor(MultiplexingNodeEditor.NodeEditor editor)
MultiplexingNodeEditor
instance.
editor
- the subordinate editor to add.public void removeNodeEditor(MultiplexingNodeEditor.NodeEditor editor)
MultiplexingNodeEditor
's
collection of subordinate editors.
editor
- the subordinate editor to remove.public java.util.Collection getNodeEditors()
MultiplexingNodeEditor
's
subordinate editors.
MultiplexingNodeEditor
's
subordinate editors.public MouseInputEditor findMouseInputEditor(NodeRealizer context, Graph2DView view, double x, double y, HitInfo hitInfo)
GenericNodeRealizer.GenericMouseInputEditorProvider
GenericNodeRealizer.findMouseInputEditor(Graph2DView, double, double, HitInfo)
method.
findMouseInputEditor
in interface GenericNodeRealizer.GenericMouseInputEditorProvider
MouseInputEditor
,
MouseInputEditorProvider
public boolean startsEditing(Mouse2DEvent event)
MouseInputEditor
startsEditing
in interface MouseInputEditor
event
- the event that happened
MouseInputEditor.isInterestedInEvents()
public void stopEditing()
MouseInputEditor
stopEditing
in interface MouseInputEditor
stopEditing
in class AbstractMouseInputEditor
public void mouse2DEventHappened(Mouse2DEvent event)
MouseInputEditor
mouse2DEventHappened
in interface MouseInputEditor
event
- the event that happenedMouseInputEditor.isInterestedInEvents()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |