org.grinvin.gred.commands

Class AutoSnap


public class AutoSnap
extends MutableGraphPanelToggleCommand

Toggles the state of the 'snap to guides' flag on the graph panel.

Field Summary

Fields inherited from class org.grinvin.gred.commands.MutableGraphPanelToggleCommand

panel

Constructor Summary

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

Method Summary

protected void
handleSelection(boolean selected)
Toggle the 'snap to guides' flag of the panel.

Constructor Details

AutoSnap

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

Method Details

handleSelection

protected void handleSelection(boolean selected)
            throws ToggleVetoException
Toggle the 'snap to guides' flag of the panel.