|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
org.topcased.modeler.commands.ChangeFontCommand
ChangeDiagramElementPropertyCommand instead
public class ChangeFontCommand
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 |
|---|
public ChangeFontCommand(DiagramElement element,
org.eclipse.swt.graphics.FontData fontData)
element - the DiagramElementfontData - the new color| Method Detail |
|---|
public boolean canExecute()
canExecute in class org.eclipse.gef.commands.CommandCommand.canExecute()public void execute()
execute in class org.eclipse.gef.commands.CommandCommand.execute()public void redo()
redo in class org.eclipse.gef.commands.CommandCommand.redo()public void undo()
undo in class org.eclipse.gef.commands.CommandCommand.undo()
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.