|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public 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.
Method Summary | |
---|---|
java.awt.Cursor |
getCursor(Mouse2DEvent event)
Returns a mouse cursor to indicate what action this event could trigger or
null if the editor does not want to initiate a cursor change. |
boolean |
isValidStartPosition(double x,
double y)
Determines if the input mode could start editing at the given position. |
void |
setContext(Graph2DView view,
MultiplexingNodeEditor parent,
NodeRealizer realizer)
Provides context information for the editor. |
Methods inherited from interface y.view.MouseInputEditor |
---|
addChangeListener, isEditing, isInterestedInEvents, mouse2DEventHappened, removeChangeListener, startEditing, startsEditing, stopEditing |
Method Detail |
---|
void setContext(Graph2DView view, MultiplexingNodeEditor parent, NodeRealizer realizer)
view
- the current view in which the editing is done.parent
- the multiplexing editor that delegates to the node editor.realizer
- the realizer representing the node to edit.boolean isValidStartPosition(double x, double y)
MultiplexingNodeEditor
instance is able to handle
mouse gestures at the specified position.
x
- The horizontal position.y
- The vertical position.
true
if the input mode could start editing at the
given position; false
otherwise.java.awt.Cursor getCursor(Mouse2DEvent event)
event
could trigger or
null
if the editor does not want to initiate a cursor change.
event
- The mouse event a cursor can be returned for.
Cursor
if a possible action for this mouse event
shall be indicated or null
.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |