|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.AbstractMouseInputEditor
y.view.hierarchy.GroupNodePainter.GroupStateEditor
public abstract static class GroupNodePainter.GroupStateEditor
A MouseInputEditor implementation that closes group nodes and
opens folder nodes in response to state change gestures (that is a mouse
click at an appropriate location).
shouldChangeState(y.view.NodeRealizer, double, double)
| Constructor Summary | |
|---|---|
protected |
GroupNodePainter.GroupStateEditor(NodeRealizer context,
Graph2DView view)
|
| Method Summary | |
|---|---|
protected void |
closeGroup(Node groupNode,
HierarchyManager hierarchy)
Closes the specified group node. |
void |
mouse2DEventHappened(Mouse2DEvent event)
Listener-like interface that will be notified of Mouse2DEvents. |
protected void |
openFolder(Node folderNode,
HierarchyManager hierarchy)
Opens the specified folder node. |
protected abstract boolean |
shouldChangeState(NodeRealizer context,
double x,
double y)
Determines whether or not a state change gesture at the specified point should result in a group state change for the node represented by the specified node realizer. |
boolean |
startsEditing(Mouse2DEvent event)
This method is used by clients to query whether the given event is deemed as a starting gesture. |
| Methods inherited from class y.view.AbstractMouseInputEditor |
|---|
addChangeListener, fireStateChanged, isEditing, isEnabled, isInterestedInEvents, removeChangeListener, setEnabled, startEditing, stopEditing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected GroupNodePainter.GroupStateEditor(NodeRealizer context,
Graph2DView view)
| Method Detail |
|---|
public boolean startsEditing(Mouse2DEvent event)
MouseInputEditor
event - the event that happened
MouseInputEditor.isInterestedInEvents()public void mouse2DEventHappened(Mouse2DEvent event)
MouseInputEditor
event - the event that happenedMouseInputEditor.isInterestedInEvents()
protected abstract boolean shouldChangeState(NodeRealizer context,
double x,
double y)
context - the node context.x - the x-coordinate of the state change gesture.y - the y-coordinate of the state change gesture.
true if the group state should be changed when
the appropriate gesture is received at the specified coordinates;
false otherwise.
protected void openFolder(Node folderNode,
HierarchyManager hierarchy)
Graph2DViewActions.OpenFoldersAction to open the given
folder node.
folderNode - the folder node to open.hierarchy - the HierarchyManager that manages
the nesting structure of the specified node's graph.
protected void closeGroup(Node groupNode,
HierarchyManager hierarchy)
Graph2DViewActions.CloseGroupsAction to close the given
group node.
groupNode - the group node to close.hierarchy - the HierarchyManager that manages
the nesting structure of the specified node's graph.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||