com.tensegrity.skeleton.commands
Class ToggleAntialiasCommand

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

public class ToggleAntialiasCommand
extends GraphDocumentCommand
implements ToggleCommand

Toggles the antialias setting of the SwingGraphPanel

Version:
$Id: ToggleAntialiasCommand.java,v 1.2 2004/08/03 08:56:53 GillesIachelini Exp $
Author:
BurkhardWick

Constructor Summary
ToggleAntialiasCommand(ApplicationFrame appFrame)
          Creates a new instance of of class ToggleAntialiasCommand.
 
Method Summary
 boolean isActive()
          Checks whether antialias is enabled for the currently active document.
 void perform(java.lang.Object args)
          Toggles the antialias and repaints the graph panel
 
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

ToggleAntialiasCommand

public ToggleAntialiasCommand(ApplicationFrame appFrame)
Creates a new instance of of class ToggleAntialiasCommand.

Parameters:
appFrame - the application frame
Method Detail

perform

public void perform(java.lang.Object args)
Toggles the antialias and repaints the graph panel

Specified by:
perform in interface Command
Overrides:
perform in class CommonBaseCommand
Parameters:
args - Ignored
See Also:
Command.perform(java.lang.Object)

isActive

public boolean isActive()
Checks whether antialias is enabled for the currently active document.

Specified by:
isActive in interface ToggleCommand
Returns:
true, if antialias is active.


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