| 
 | Search this API | ||||||||
| 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
public abstract static class Graph2DViewActions.AbstractGroupingAction
Abstract base class for grouping related actions.
| Field Summary | |
|---|---|
| protected  Graph2DView | 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 | |
|---|---|
| protected  | Graph2DViewActions.AbstractGroupingAction(java.lang.String name,
                                          Graph2DView view) | 
| Method Summary | |
|---|---|
| protected  HierarchyManager | getHierarchyManager(Graph2D graph)Return the hierarchy manager to use. | 
|  NodeStateChangeHandler | getNodeStateChangeHandler()Returns a NodeStateChangeHandlerinstance that will convert the edge state over the grouping operation. | 
| protected  Graph2DView | getView(java.awt.event.ActionEvent e)Determines the view in which to change graph elements. | 
|  boolean | isReselectNodes()Return whether previously selected group nodes should stay selected after closing them. | 
| protected  void | postNodeStateChange(Node groupNode,
                    Graph2D g)Performs necessary actions immediately after the node has been closed. | 
| protected  void | preNodeStateChange(Node groupNode,
                   Graph2D g)Performs necessary actions immediately before the node is closed. | 
|  void | setNodeStateChangeHandler(NodeStateChangeHandler nodeStateChangeHandler)Sets the NodeStateChangeHandlerinstance that will convert the edge state over the grouping operation. | 
|  void | setReselectNodes(boolean reselectNodes)Set whether previously selected group nodes should stay selected after closing them. | 
| 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 | 
| Methods inherited from interface java.awt.event.ActionListener | 
|---|
| actionPerformed | 
| Field Detail | 
|---|
protected final Graph2DView view
| Constructor Detail | 
|---|
protected Graph2DViewActions.AbstractGroupingAction(java.lang.String name,
                                                    Graph2DView view)
| Method Detail | 
|---|
public NodeStateChangeHandler getNodeStateChangeHandler()
NodeStateChangeHandler instance that will convert the edge state over the grouping operation.
NodeStateChangeHandler instance that will convert the edge state over the grouping
         operation.public void setNodeStateChangeHandler(NodeStateChangeHandler nodeStateChangeHandler)
NodeStateChangeHandler instance that will convert the edge state over the grouping operation.
nodeStateChangeHandler - The NodeStateChangeHandler instance that will convert the edge state over
                               the grouping operation.protected HierarchyManager getHierarchyManager(Graph2D graph)
graph - 
protected Graph2DView getView(java.awt.event.ActionEvent e)
e - the ActionEvent that triggers the deletion of graph elements.
ActionListener.actionPerformed(java.awt.event.ActionEvent), 
Graph2DViewActions.AbstractGroupingAction(String, y.view.Graph2DView)public boolean isReselectNodes()
true.
true iff previously selected group nodes should stay selectedpublic void setReselectNodes(boolean reselectNodes)
true.
reselectNodes - true iff previously selected group nodes should stay selected
protected void preNodeStateChange(Node groupNode,
                                  Graph2D g)
getNodeStateChangeHandler() if one is present. It is called before the actual
 hierarchy operation is performed.
protected void postNodeStateChange(Node groupNode,
                                   Graph2D g)
getNodeStateChangeHandler() if one is present. It is called after the actual
 hierarchy operation is performed.
| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||