com.tensegrity.skeleton.commands
Class ViewRulerCommand

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.ViewRulerCommand
All Implemented Interfaces:
Command, ToggleCommand

public class ViewRulerCommand
extends GraphDocumentCommand
implements ToggleCommand

This command toggles the visibilty of the view ruler.

Version:
$Id: ViewRulerCommand.java,v 1.6 2005/04/11 13:36:30 sr Exp $
Author:
AndreasEbbert

Constructor Summary
ViewRulerCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Constructor specifying the ApplicationFrame and an id for this command.
 
Method Summary
 boolean isActive()
          Returns true, if the ruler is visible.
 void perform(java.lang.Object args)
          This method will specify the functionality the command offers.
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand
getGraphDocument, getVisualGraphView, isEnabled
 
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, isEnabled, setEnabled
 

Constructor Detail

ViewRulerCommand

public ViewRulerCommand(ApplicationFrame applicationFrame,
                        java.lang.String command)
Constructor specifying the ApplicationFrame and an id for this command.

Parameters:
applicationFrame - a reference to the ApplicationFrame.
command - an unique id for this command.
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 ruler is visible.

Specified by:
isActive in interface ToggleCommand
Returns:
true, if the ruler is visible.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.