Modelers

org.topcased.modeler.commands
Class ChangeFontCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.commands.ChangeFontCommand

Deprecated. Use the ChangeDiagramElementPropertyCommand instead

public class ChangeFontCommand
extends org.eclipse.gef.commands.Command

The command used to change the Font of a graphElement. Before changing the font in the model, check if the Font is not equal to the default font (in this case, remove the property from the DI model) Creation : 4 oct. 2005


Constructor Summary
ChangeFontCommand(DiagramElement element, org.eclipse.swt.graphics.FontData fontData)
          Deprecated. Constructor
 
Method Summary
 boolean canExecute()
          Deprecated.  
 void execute()
          Deprecated.  
 void redo()
          Deprecated.  
 void undo()
          Deprecated.  
 
Methods inherited from class org.eclipse.gef.commands.Command
canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeFontCommand

public ChangeFontCommand(DiagramElement element,
                         org.eclipse.swt.graphics.FontData fontData)
Deprecated. 
Constructor

Parameters:
element - the DiagramElement
fontData - the new color
Method Detail

canExecute

public boolean canExecute()
Deprecated. 
Overrides:
canExecute in class org.eclipse.gef.commands.Command
See Also:
Command.canExecute()

execute

public void execute()
Deprecated. 
Overrides:
execute in class org.eclipse.gef.commands.Command
See Also:
Command.execute()

redo

public void redo()
Deprecated. 
Overrides:
redo in class org.eclipse.gef.commands.Command
See Also:
Command.redo()

undo

public void undo()
Deprecated. 
Overrides:
undo in class org.eclipse.gef.commands.Command
See Also:
Command.undo()

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.