JHotDraw 6.0b1

org.jhotdraw.figures
Class FontSizeHandle.UndoActivity

java.lang.Object
  extended by org.jhotdraw.util.UndoableAdapter
      extended by org.jhotdraw.figures.FontSizeHandle.UndoActivity
All Implemented Interfaces:
Undoable
Enclosing class:
FontSizeHandle

public static class FontSizeHandle.UndoActivity
extends UndoableAdapter


Constructor Summary
FontSizeHandle.UndoActivity(DrawingView newView, java.awt.Font newFont)
           
 
Method Summary
 java.awt.Font getFont()
           
 int getOldFontSize()
           
 boolean redo()
          Redo the activity
protected  void setFont(java.awt.Font newFont)
           
protected  void setOldFontSize(int newOldFontSize)
           
protected  void swapFont()
           
 boolean undo()
          Undo the activity
 
Methods inherited from class org.jhotdraw.util.UndoableAdapter
duplicateAffectedFigures, getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, release, rememberFigures, setAffectedFigures, setDrawingView, setRedoable, setUndoable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontSizeHandle.UndoActivity

public FontSizeHandle.UndoActivity(DrawingView newView,
                                   java.awt.Font newFont)
Method Detail

undo

public boolean undo()
Description copied from class: UndoableAdapter
Undo the activity

Specified by:
undo in interface Undoable
Overrides:
undo in class UndoableAdapter
Returns:
true if the activity could be undone, false otherwise

redo

public boolean redo()
Description copied from class: UndoableAdapter
Redo the activity

Specified by:
redo in interface Undoable
Overrides:
redo in class UndoableAdapter
Returns:
true if the activity could be redone, false otherwise

swapFont

protected void swapFont()

setFont

protected void setFont(java.awt.Font newFont)

getFont

public java.awt.Font getFont()

setOldFontSize

protected void setOldFontSize(int newOldFontSize)

getOldFontSize

public int getOldFontSize()

JHotDraw 6.0b1