org.grinvin.gred.commands

Class SnapshotCommand


public class SnapshotCommand
extends GraphPanelCommand

Action that takes a snapshot of the current graph in a panel and stores it into the given graph list. Graph panel and graph list must be installed as attributes to the command manager with keys GraphPanel.class.getName() and GraphList.class.getName()

Field Summary

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

panel

Constructor Summary

SnapshotCommand(CommandManager manager, String id)
Construct an action of this kind.

Method Summary

void
handleExecute()
takes a snapshot of the current graph in a panel and stores it into the given graph list.

Constructor Details

SnapshotCommand

public SnapshotCommand(CommandManager manager,
                       String id)
Construct an action of this kind.

Method Details

handleExecute

public void handleExecute()
takes a snapshot of the current graph in a panel and stores it into the given graph list.