com.tensegrity.skeleton.swt.commands
Class SwtZoomGraphCommand
java.lang.Object
com.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.swt.commands.SwtZoomGraphDocumentCommand
com.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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.