FileDocCategorySizeDatePackage
SaveSceneAction.javaAPI DocAndroid 1.5 API1531Wed May 06 22:41:10 BST 2009com.android.hierarchyviewer.ui.action

SaveSceneAction

public class SaveSceneAction extends BackgroundAction

Fields Summary
public static final String
ACTION_NAME
private com.android.hierarchyviewer.ui.Workspace
mWorkspace
Constructors Summary
public SaveSceneAction(com.android.hierarchyviewer.ui.Workspace workspace)


       
        mWorkspace = workspace;
        putValue(NAME, "Save as PNG...");
        putValue(SHORT_DESCRIPTION, "Save");
        putValue(LONG_DESCRIPTION, "Save as PNG...");
        putValue(MNEMONIC_KEY, KeyEvent.VK_S);
        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_S,
                Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

        executeBackgroundTask(mWorkspace.saveSceneAsImage());