|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractFigure
org.jhotdraw.standard.DecoratorFigure
org.jhotdraw.samples.javadraw.AnimationDecorator
public class AnimationDecorator
Field Summary |
---|
Fields inherited from interface org.jhotdraw.framework.Figure |
---|
POPUP_MENU |
Constructor Summary | |
---|---|
AnimationDecorator()
|
|
AnimationDecorator(Figure figure)
|
Method Summary | |
---|---|
void |
animationStep()
Perform a step of the animation. |
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 org.jhotdraw.standard.DecoratorFigure |
---|
addDependendFigure, canConnect, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, decorate, draw, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, figures, findFigureInside, getAttribute, getAttribute, getDecoratedFigure, getDependendFigures, getTextHolder, handles, includes, moveBy, peelDecoration, release, removeDependendFigure, setAttribute, setAttribute, setDecoratedFigure |
Methods inherited from class org.jhotdraw.standard.AbstractFigure |
---|
addFigureChangeListener, addToContainer, center, changed, clone, displayBox, displayBox, getZValue, invalidate, isEmpty, listener, removeFigureChangeListener, removeFromContainer, setZValue, size, visit, willChange |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnimationDecorator()
public AnimationDecorator(Figure figure)
Method Detail |
---|
public void velocity(int xVelocity, int yVelocity)
public java.awt.Point velocity()
public void animationStep()
Animatable
animationStep
in interface Animatable
public void basicMoveBy(int x, int y)
DecoratorFigure
AbstractFigure.moveBy(int, int)
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)
DecoratorFigure
basicDisplayBox
in interface Figure
basicDisplayBox
in class DecoratorFigure
origin
- the new origincorner
- the new cornerAbstractFigure.displayBox(java.awt.Point, java.awt.Point)
public java.awt.Rectangle displayBox()
DecoratorFigure
displayBox
in interface Figure
displayBox
in class DecoratorFigure
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
public void write(StorableOutput dw)
DecoratorFigure
write
in interface Storable
write
in class DecoratorFigure
public void read(StorableInput dr) throws java.io.IOException
DecoratorFigure
read
in interface Storable
read
in class DecoratorFigure
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |