|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction y.view.Graph2DViewActions.AbstractGroupingAction y.view.Graph2DViewActions.UngroupSelectionAction
public static class Graph2DViewActions.UngroupSelectionAction
Action that ungroups the selected nodes from their group.
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.UngroupSelectionAction()
Creates a new UngroupSelectionAction that has no default view. |
|
Graph2DViewActions.UngroupSelectionAction(Graph2DView view)
Creates a new UngroupSelectionAction |
Method Summary | |
---|---|
protected boolean |
acceptNode(Graph2D graph,
Node node)
Check whether a node should be changed by this action. |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected void |
convertEdges(EdgeList preparedEdges,
Graph2D g)
Performs necessary actions with all edges that may be touched by this action. |
protected EdgeList |
prepareEdges(NodeList groupNode,
Graph2D g)
Performs necessary actions with all edges that may be touched by this action. |
void |
ungroupSelection(Graph2DView view)
Ungroups all node for which acceptNode(Graph2D,y.base.Node) returns true. |
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.UngroupSelectionAction()
UngroupSelectionAction
that has no default view. Invoking this constructor is
equivalent to: new UngroupSelectionAction(null)
public Graph2DViewActions.UngroupSelectionAction(Graph2DView view)
UngroupSelectionAction
view
- the default view that is used if the actual view cannot be determined from the information provided
by an ActionEvent
.Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
public void ungroupSelection(Graph2DView view)
acceptNode(Graph2D,y.base.Node)
returns true.
view
- The view where all information is used from.protected boolean acceptNode(Graph2D graph, Node node)
node
should be included in the group. This implementation returns
true iff the node is currently selected.
node
should be grouped.protected EdgeList prepareEdges(NodeList groupNode, Graph2D g)
protected void convertEdges(EdgeList preparedEdges, Graph2D g)
preparedEdges
- A list of all edges that have been prepared by a call to prepareEdges(y.base.NodeList,y.view.Graph2D)
.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |