com.tensegrity.skeleton.swt.commands
Class SwtZoomGraphCommand

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.swt.commands.SwtZoomGraphDocumentCommand
                      extended bycom.tensegrity.skeleton.swt.commands.SwtZoomGraphCommand
All Implemented Interfaces:
Command

public class SwtZoomGraphCommand
extends SwtZoomGraphDocumentCommand

The ZoomGraphCommand allows to create ZoomCommands to a specific zoom value.

Version:
$Id: SwtZoomGraphCommand.java,v 1.2 2005/03/02 15:49:35 SebastienGuyon Exp $
Author:
S�bastien Guyon

Field Summary
 
Fields inherited from class com.tensegrity.skeleton.swt.commands.SwtZoomGraphDocumentCommand
dontUpdate, MAXIMUM_ZOOM_LIMIT, MINIMUM_ZOOM_LIMIT, value, ZOOM_INSETS
 
Constructor Summary
SwtZoomGraphCommand(ApplicationFrame applicationFrame, java.lang.String command, int value)
          Creates a new ZoomGraphCommand which will zoom the active graph to the given value.
 
Method Summary
 void perform(java.lang.Object args)
          Divides the internal value through 10.0 and sets the result as new zoom in the graphframe.
 java.lang.String toString()
          Returns the name of the command.
 
Methods inherited from class com.tensegrity.skeleton.swt.commands.SwtZoomGraphDocumentCommand
getZoom, setZoom, setZoomToFit
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand
getGraphDocument, getVisualGraphView, isEnabled
 
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, wait, wait, wait
 

Constructor Detail

SwtZoomGraphCommand

public SwtZoomGraphCommand(ApplicationFrame applicationFrame,
                           java.lang.String command,
                           int value)
Creates a new ZoomGraphCommand which will zoom the active graph to the given value. The range of the value can vary from 0 to 100.

Parameters:
applicationFrame - the instance of the enclosing application.
command - The name for the command.
value - the zoom value to apply.
Method Detail

perform

public void perform(java.lang.Object args)
Divides the internal value through 10.0 and sets the result as new zoom in the graphframe. To redraw the graph.

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

toString

public java.lang.String toString()
Returns the name of the command.

See Also:
Object.toString()


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