CH.ifa.draw.samples.javadraw
Class AnimationDecorator
java.lang.Object
CH.ifa.draw.standard.AbstractFigure
CH.ifa.draw.standard.DecoratorFigure
CH.ifa.draw.samples.javadraw.AnimationDecorator
- All Implemented Interfaces:
- Figure, FigureChangeListener, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class AnimationDecorator
- extends DecoratorFigure
- See Also:
- Serialized Form
Method Summary |
void |
animationStep()
|
void |
basicDisplayBox(java.awt.Point origin,
java.awt.Point corner)
Forwards basicDisplayBox to its contained figure. |
void |
basicMoveBy(int x,
int y)
Forwards basicMoveBy to its contained figure. |
java.awt.Rectangle |
displayBox()
Forwards displayBox to its contained figure. |
void |
read(StorableInput dr)
Reads itself and the contained figure from the StorableInput. |
java.awt.Point |
velocity()
|
void |
velocity(int xVelocity,
int yVelocity)
|
void |
write(StorableOutput dw)
Writes itself and the contained figure to the StorableOutput. |
Methods inherited from class CH.ifa.draw.standard.DecoratorFigure |
canConnect, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, decorate, draw, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, figures, findFigureInside, getAttribute, handles, includes, initialize, moveBy, peelDecoration, release, setAttribute |
Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
addFigureChangeListener, addToContainer, center, changed, clone, displayBox, displayBox, invalidate, isEmpty, listener, removeFigureChangeListener, removeFromContainer, size, willChange |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnimationDecorator
public AnimationDecorator()
AnimationDecorator
public AnimationDecorator(Figure figure)
velocity
public void velocity(int xVelocity,
int yVelocity)
velocity
public java.awt.Point velocity()
animationStep
public void animationStep()
basicMoveBy
public void basicMoveBy(int x,
int y)
- Description copied from class:
DecoratorFigure
- Forwards basicMoveBy to its contained figure.
- Overrides:
basicMoveBy
in class DecoratorFigure
- See Also:
AbstractFigure.moveBy(int, int)
basicDisplayBox
public void basicDisplayBox(java.awt.Point origin,
java.awt.Point corner)
- Description copied from class:
DecoratorFigure
- Forwards basicDisplayBox to its contained figure.
- Specified by:
basicDisplayBox
in interface Figure
- Overrides:
basicDisplayBox
in class DecoratorFigure
- Parameters:
origin
- the new origincorner
- the new corner- See Also:
AbstractFigure.displayBox(java.awt.Point, java.awt.Point)
displayBox
public java.awt.Rectangle displayBox()
- Description copied from class:
DecoratorFigure
- Forwards displayBox to its contained figure.
- Specified by:
displayBox
in interface Figure
- Overrides:
displayBox
in class DecoratorFigure
- See Also:
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
write
public void write(StorableOutput dw)
- Description copied from class:
DecoratorFigure
- Writes itself and the contained figure to the StorableOutput.
- Specified by:
write
in interface Storable
- Overrides:
write
in class DecoratorFigure
read
public void read(StorableInput dr)
throws java.io.IOException
- Description copied from class:
DecoratorFigure
- Reads itself and the contained figure from the StorableInput.
- Specified by:
read
in interface Storable
- Overrides:
read
in class DecoratorFigure
- Throws:
java.io.IOException