com.tensegrity.skeleton.commands
Class ZoomCommand
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.ZoomCommand
- All Implemented Interfaces:
- Command
- public class ZoomCommand
- extends ZoomGraphDocumentCommand
This Command is responsible for zooming the active
VisualGraph to the specified percentage value.
If you need to change the zoom in steps of +10, for example, you must create
a ZoomCommand with the value 10. Each time the
perform(Object) method is invoked, the zoom value change is applied.
- Version:
- $Id: ZoomCommand.java,v 1.25 2005/12/01 16:16:02 BurkhardWick Exp $
- Author:
- Gilles Iachelini
|
Constructor Summary |
ZoomCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Creates the ZoomCommand which zoom the graph to
fit into the visible area. |
ZoomCommand(ApplicationFrame applicationFrame,
java.lang.String command,
int value)
Creates a new ZoomCommand which will zoom the current
document to the specified parameter value. |
|
Method Summary |
boolean |
isEnabled()
(non-Javadoc)
This method returns true if the currently active
Document is an instance of GraphDocument. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZoomCommand
public ZoomCommand(ApplicationFrame applicationFrame,
java.lang.String command,
int value)
- Creates a new
ZoomCommand which will zoom the current
document to the specified parameter value.
- Parameters:
applicationFrame - Application context for this command.command - the ID of this command.value - value to zoom to.
ZoomCommand
public ZoomCommand(ApplicationFrame applicationFrame,
java.lang.String command)
- Creates the
ZoomCommand which zoom the graph to
fit into the visible area.
- Parameters:
applicationFrame - Application context for this command.command - the ID of this command.
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:
CommonBaseCommand.perform(Object)
isEnabled
public boolean isEnabled()
- Description copied from class:
GraphDocumentCommand
- (non-Javadoc)
This method returns
true if the currently active
Document is an instance of GraphDocument.
- Specified by:
isEnabled in interface Command- Overrides:
isEnabled in class GraphDocumentCommand
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.