com.tensegrity.skeleton.commands
Class ToggleZoomRectangleModeCommand

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.commands.ZoomGraphDocumentCommand
                      extended bycom.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

Field Summary
 
Fields inherited from class com.tensegrity.skeleton.commands.ZoomGraphDocumentCommand
value, ZOOM_INSETS
 
Constructor Summary
ToggleZoomRectangleModeCommand(ApplicationFrame appFrame, java.lang.String command)
          Creates a new ToggleZoomRectangleModeCommand based on the given command id and ApplicationFrame context.
 
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 com.tensegrity.skeleton.commands.ZoomGraphDocumentCommand
getZoom, setZoom, setZoomToFit
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand
getGraphDocument, getVisualGraphView
 
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, toString, wait, wait, wait
 
Methods inherited from interface com.tensegrity.generic.command.Command
getDescription, getId, getPerformDescription, setEnabled
 

Constructor Detail

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.
Method Detail

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.