|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
y.view.Graph2DViewActions.AbstractGroupingAction
y.view.Graph2DViewActions.CloseGroupsAction
public static class Graph2DViewActions.CloseGroupsAction
Action that closes multiple group nodes. By default, all selected group nodes are closed.

| Field Summary |
|---|
| Fields inherited from class y.view.Graph2DViewActions.AbstractGroupingAction |
|---|
view |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
Graph2DViewActions.CloseGroupsAction()
Creates a new CloseGroupAction that has no default
view. |
|
Graph2DViewActions.CloseGroupsAction(Graph2DView view)
Creates a new CloseGroupAction |
|
| Method Summary | |
|---|---|
protected boolean |
acceptNode(Graph2D graph,
Node groupNode)
Check whether a node should be changed by this action. |
void |
actionPerformed(ActionEvent e)
|
void |
closeGroup(Node groupNode,
Graph2D graph)
Closes a single group node. |
void |
closeGroups(Graph2DView view)
Close all nodes for which acceptNode(Graph2D,y.base.Node) returns true. |
protected void |
configureFolderRealizer(NodeRealizer realizer)
Updates the group/folder state of the specified realizer if necessary. |
boolean |
isRecursiveClosingEnabled()
Returns whether group nodes that are nested and accepted by acceptNode(Graph2D,y.base.Node)
will be closed recursively. |
void |
setRecursiveClosingEnabled(boolean recursiveClosingEnabled)
Sets whether group nodes that are nested and accepted by acceptNode(Graph2D,y.base.Node)
will be closed recursively. |
| Methods inherited from class y.view.Graph2DViewActions.AbstractGroupingAction |
|---|
getHierarchyManager, getNodeStateChangeHandler, getView, isReselectNodes, postNodeStateChange, preNodeStateChange, setNodeStateChangeHandler, setReselectNodes |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Graph2DViewActions.CloseGroupsAction()
CloseGroupAction that has no default
view.
Invoking this constructor is equivalent to:
new CloseGroupAction(null)
public Graph2DViewActions.CloseGroupsAction(Graph2DView view)
CloseGroupAction
view - the default view that is used if the actual view cannot
be determined from the information provided by an
ActionEvent.| Method Detail |
|---|
public boolean isRecursiveClosingEnabled()
acceptNode(Graph2D,y.base.Node)
will be closed recursively.
If set to false, only the outermost accepted node in such a nesting will be closed.
Default value is false
true if group nodes should be closed recursively.setRecursiveClosingEnabled(boolean)public void setRecursiveClosingEnabled(boolean recursiveClosingEnabled)
acceptNode(Graph2D,y.base.Node)
will be closed recursively.
If set to false, only the outermost accepted node in such a nesting will be closed.
Default value is false
recursiveClosingEnabled - true if group nodes should be closed recursively.isRecursiveClosingEnabled()public void actionPerformed(ActionEvent e)
public void closeGroups(Graph2DView view)
acceptNode(Graph2D,y.base.Node) returns true.
view - The view where all information is used from.
protected boolean acceptNode(Graph2D graph,
Node groupNode)
groupNode should be closed.
groupNode should be closed.
public void closeGroup(Node groupNode,
Graph2D graph)
Graph2DViewActions.AbstractGroupingAction.getNodeStateChangeHandler() is not
null, it is used to configure the relevant edges after closing the node.
protected void configureFolderRealizer(NodeRealizer realizer)
|
© Copyright 2000-2010, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||