com.tensegrity.skeleton.commands
Class ExportRasterCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
          extended bycom.tensegrity.skeleton.commands.DocumentCommand
              extended bycom.tensegrity.skeleton.commands.GraphDocumentCommand
                  extended bycom.tensegrity.skeleton.commands.SaveVisualGraphCommand
                      extended bycom.tensegrity.skeleton.commands.ExportRasterCommand
All Implemented Interfaces:
Command

public final class ExportRasterCommand
extends SaveVisualGraphCommand

Exports the currently active document to a raster image File.

Version:
$Id: ExportRasterCommand.java,v 1.19 2006/03/07 12:46:42 BurkhardWick Exp $
Author:
Gilles Iachelini

Field Summary
static int BITMAP
          constants determining the type of export
static int GIF
          constants determining the type of export
static int JPEG
          constants determining the type of export
static int PNG
          constants determining the type of export
 
Constructor Summary
ExportRasterCommand(ApplicationFrame applicationFrame, java.lang.String command, int type)
          Creates a new ExportRasterCommand.
 
Method Summary
static boolean isExportTypeAvailable(int type)
          Returns true, if the given encoding type is supported.
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 
Methods inherited from class com.tensegrity.skeleton.commands.SaveVisualGraphCommand
isEnabled
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand
getGraphDocument, getVisualGraphView
 
Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand
getDocument, getGraphApplication, newGraphDocumentFromFactory
 
Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand
getApplicationFrame, getTitle
 
Methods inherited from class com.tensegrity.generic.command.BaseCommand
getDescription, getId, getPerformDescription, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BITMAP

public static final int BITMAP
constants determining the type of export

See Also:
Constant Field Values

JPEG

public static final int JPEG
constants determining the type of export

See Also:
Constant Field Values

GIF

public static final int GIF
constants determining the type of export

See Also:
Constant Field Values

PNG

public static final int PNG
constants determining the type of export

See Also:
Constant Field Values
Constructor Detail

ExportRasterCommand

public ExportRasterCommand(ApplicationFrame applicationFrame,
                           java.lang.String command,
                           int type)
Creates a new ExportRasterCommand.

Parameters:
applicationFrame - Application context for this command.
command - the ID of this command.
type - the type of raster to be exported. Valid values are:
Method Detail

perform

public void perform(java.lang.Object args)
Description copied from class: CommonBaseCommand
Updates the StatusBar with this commands title string. (non-Javadoc)

Specified by:
perform in interface Command
Overrides:
perform in class CommonBaseCommand
See Also:
Command.perform(java.lang.Object)

isExportTypeAvailable

public static boolean isExportTypeAvailable(int type)
Returns true, if the given encoding type is supported.

Parameters:
type - the type of encoding.
Returns:
true, if the given encoding type is supported.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.