com.tensegrity.skeleton.commands
Class ZoomGraphCommand
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.commands.ZoomGraphDocumentCommand
com.tensegrity.skeleton.commands.ZoomGraphCommand
- All Implemented Interfaces:
- Command
- public class ZoomGraphCommand
- extends ZoomGraphDocumentCommand
The ZoomGraphCommand allows to create ZoomCommands to a specific zoom
value.
- Version:
- $Id: ZoomGraphCommand.java,v 1.13 2005/10/07 13:53:22 BurkhardWick Exp $
- Author:
- Gilles Iachelini
|
Constructor Summary |
ZoomGraphCommand(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 |
ZoomGraphCommand
public ZoomGraphCommand(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.