JHotDraw 7.1

org.jhotdraw.draw
Class CompositeTransformEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by org.jhotdraw.draw.CompositeTransformEdit
All Implemented Interfaces:
java.io.Serializable, javax.swing.undo.UndoableEdit

public class CompositeTransformEdit
extends javax.swing.undo.AbstractUndoableEdit

CompositeTransformEdit.

Version:
1.0 2006-01-21 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
CompositeTransformEdit(AbstractFigure owner, java.awt.geom.AffineTransform tx)
          Creates a new instance.
 
Method Summary
 boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
           
 boolean canRedo()
          Returns false if isInProgress or if super returns false.
 boolean canUndo()
          Returns false if isInProgress or if super returns false.
 void end()
          Sets inProgress to false.
 java.lang.String getPresentationName()
           
 boolean isInProgress()
          Returns true if this edit is in progress--that is, it has not received end.
 void redo()
           
 boolean replaceEdit(javax.swing.undo.UndoableEdit anEdit)
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
die, getRedoPresentationName, getUndoPresentationName, isSignificant, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeTransformEdit

public CompositeTransformEdit(AbstractFigure owner,
                              java.awt.geom.AffineTransform tx)
Creates a new instance.

Method Detail

getPresentationName

public java.lang.String getPresentationName()
Specified by:
getPresentationName in interface javax.swing.undo.UndoableEdit
Overrides:
getPresentationName in class javax.swing.undo.AbstractUndoableEdit

addEdit

public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
Specified by:
addEdit in interface javax.swing.undo.UndoableEdit
Overrides:
addEdit in class javax.swing.undo.AbstractUndoableEdit

replaceEdit

public boolean replaceEdit(javax.swing.undo.UndoableEdit anEdit)
Specified by:
replaceEdit in interface javax.swing.undo.UndoableEdit
Overrides:
replaceEdit in class javax.swing.undo.AbstractUndoableEdit

redo

public void redo()
          throws javax.swing.undo.CannotRedoException
Specified by:
redo in interface javax.swing.undo.UndoableEdit
Overrides:
redo in class javax.swing.undo.AbstractUndoableEdit
Throws:
javax.swing.undo.CannotRedoException

undo

public void undo()
          throws javax.swing.undo.CannotUndoException
Specified by:
undo in interface javax.swing.undo.UndoableEdit
Overrides:
undo in class javax.swing.undo.AbstractUndoableEdit
Throws:
javax.swing.undo.CannotUndoException

isInProgress

public boolean isInProgress()
Returns true if this edit is in progress--that is, it has not received end. This generally means that edits are still being added to it.

See Also:
end()

end

public void end()
Sets inProgress to false.

See Also:
canUndo(), canRedo()

canUndo

public boolean canUndo()
Returns false if isInProgress or if super returns false.

Specified by:
canUndo in interface javax.swing.undo.UndoableEdit
Overrides:
canUndo in class javax.swing.undo.AbstractUndoableEdit
See Also:
isInProgress()

canRedo

public boolean canRedo()
Returns false if isInProgress or if super returns false.

Specified by:
canRedo in interface javax.swing.undo.UndoableEdit
Overrides:
canRedo in class javax.swing.undo.AbstractUndoableEdit
See Also:
isInProgress()

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.