org.grinvin.gred.commands

Class MutableGraphPanelCommand

Known Direct Subclasses:
Clear, Closure, Complement, ConnectSelection, DeleteSelection, EdgeInducedGraph, InstallGuides, LineGraph, MergeSelection, SnapAll, SnapSelection, SplitSelection, VertexInducedGraph

public abstract class MutableGraphPanelCommand
extends ActionCommand

Common super class of all action commands that work on a mutable graph panel. Very similar toe GraphPanelCommand but assumes that the graph panel is of type MutableGraphPanel. The graph panel is assumed to be installed as an attribute to the command manager with key GraphPanel.class.getName(). Note: this key is NOT MutableGraphPanel.class.getName().

Field Summary

protected MutableGraphPanel
panel
Panel onto which this command acts.

Constructor Summary

MutableGraphPanelCommand(CommandManager manager, String id)
Construct an action command of this type.

Field Details

panel

protected MutableGraphPanel panel
Panel onto which this command acts.

Constructor Details

MutableGraphPanelCommand

protected MutableGraphPanelCommand(CommandManager manager,
                                   String id)
Construct an action command of this type.
Parameters:
manager - Command manager, which must be of class AttributedCommandManager