org.grinvin.gred.commands

Class MutableGraphPanelToggleCommand

Known Direct Subclasses:
AutoSnap

public abstract class MutableGraphPanelToggleCommand
extends ToggleCommand

Common super class of all toggle commands that work on a mutable graph panel. Similar to 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

MutableGraphPanelToggleCommand(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

MutableGraphPanelToggleCommand

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