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
-
-
Field Summary
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description AnimationDecorator()AnimationDecorator(Figure figure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidanimationStep()voidbasicDisplayBox(java.awt.Point origin, java.awt.Point corner)Forwards basicDisplayBox to its contained figure.voidbasicMoveBy(int x, int y)Forwards basicMoveBy to its contained figure.java.awt.RectangledisplayBox()Forwards displayBox to its contained figure.voidread(StorableInput dr)Reads itself and the contained figure from the StorableInput.java.awt.Pointvelocity()voidvelocity(int xVelocity, int yVelocity)voidwrite(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, 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
-
-
-
-
Constructor Detail
-
AnimationDecorator
public AnimationDecorator()
-
AnimationDecorator
public AnimationDecorator(Figure figure)
-
-
Method Detail
-
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:DecoratorFigureForwards basicMoveBy to its contained figure.- See Also:
AbstractFigure.moveBy(int, int)
-
basicDisplayBox
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)Description copied from class:DecoratorFigureForwards basicDisplayBox to its contained figure.- Specified by:
basicDisplayBoxin interfaceFigure- Overrides:
basicDisplayBoxin classDecoratorFigure- 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:DecoratorFigureForwards displayBox to its contained figure.- Specified by:
displayBoxin interfaceFigure- Overrides:
displayBoxin classDecoratorFigure- See Also:
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
-
write
public void write(StorableOutput dw)
Description copied from class:DecoratorFigureWrites itself and the contained figure to the StorableOutput.- Specified by:
writein interfaceStorable- Overrides:
writein classDecoratorFigure
-
read
public void read(StorableInput dr) throws java.io.IOException
Description copied from class:DecoratorFigureReads itself and the contained figure from the StorableInput.- Specified by:
readin interfaceStorable- Overrides:
readin classDecoratorFigure- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG