com.tensegrity.skeleton.commands
Class ToggleZoomRectangleModeCommand
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.ToggleZoomRectangleModeCommand
- All Implemented Interfaces:
- Command, ToggleCommand
- public final class ToggleZoomRectangleModeCommand
- extends ZoomGraphDocumentCommand
- implements ToggleCommand
This zoom Command permits users to zoom into the rectangle
drawn by clicking and dragging the mouse.
- Version:
- $Id: ToggleZoomRectangleModeCommand.java,v 1.9 2006/01/05 12:33:31 BurkhardWick Exp $
- Author:
- MichaelKegel, Gilles Iachelini, Stepan RUtz
|
Method Summary |
boolean |
isActive()
Returns true if the zoom to rectangle mode is currently active. |
boolean |
isEnabled()
Returns true if this command is enabled. |
void |
perform(java.lang.Object args)
This method will specify the functionality the command offers.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToggleZoomRectangleModeCommand
public ToggleZoomRectangleModeCommand(ApplicationFrame appFrame,
java.lang.String command)
- Creates a new
ToggleZoomRectangleModeCommand based on the
given command id and ApplicationFrame context.
- Parameters:
appFrame - the ApplicationFrame context.command - the command id.
perform
public void perform(java.lang.Object args)
- Description copied from interface:
Command
- This method will specify the functionality the command offers.
Optionally a parameter can be specified.
- Specified by:
perform in interface Command- Overrides:
perform in class CommonBaseCommand
- See Also:
Command.perform(java.lang.Object)
isActive
public boolean isActive()
- Returns true if the zoom to rectangle mode is currently active.
- Specified by:
isActive in interface ToggleCommand
- Returns:
- true if the zoom to rectangle mode is currently active.
isEnabled
public boolean isEnabled()
- Description copied from interface:
Command
- Returns
true if this command is enabled.
- 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.