CH.ifa.draw.samples.javadraw
Class BouncingDrawing

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractFigure
      extended by CH.ifa.draw.standard.CompositeFigure
          extended by CH.ifa.draw.standard.StandardDrawing
              extended by CH.ifa.draw.samples.javadraw.BouncingDrawing
All Implemented Interfaces:
Drawing, Figure, FigureChangeListener, Animatable, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class BouncingDrawing
extends StandardDrawing
implements Animatable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class CH.ifa.draw.standard.CompositeFigure
fFigures
 
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
 
Constructor Summary
BouncingDrawing()
           
 
Method Summary
 Figure add(Figure figure)
          Adds a figure to the list of figures.
 void animationStep()
          Perform a step of the animation.
 Figure remove(Figure figure)
          Removes the figure from the drawing and releases it.
 void replace(Figure figure, Figure replacement)
          Replaces a figure in the drawing without removing it from the drawing.
 
Methods inherited from class CH.ifa.draw.standard.StandardDrawing
addDrawingChangeListener, basicDisplayBox, displayBox, drawingChangeListeners, figureInvalidated, figureRequestRemove, figureRequestUpdate, handles, lock, removeDrawingChangeListener, unlock
 
Methods inherited from class CH.ifa.draw.standard.CompositeFigure
addAll, basicMoveBy, bringToFront, draw, figureAt, figureChanged, figureCount, figureRemoved, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, includes, orphan, orphanAll, read, release, removeAll, removeAll, sendToBack, write
 
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, getAttribute, invalidate, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, setAttribute, size, willChange
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface CH.ifa.draw.framework.Drawing
addAll, bringToFront, draw, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, orphan, orphanAll, release, removeAll, sendToBack
 
Methods inherited from interface CH.ifa.draw.util.Storable
read, write
 
Methods inherited from interface CH.ifa.draw.framework.FigureChangeListener
figureChanged, figureRemoved
 

Constructor Detail

BouncingDrawing

public BouncingDrawing()
Method Detail

add

public Figure add(Figure figure)
Description copied from class: CompositeFigure
Adds a figure to the list of figures. Initializes the the figure's container.

Specified by:
add in interface Drawing
Overrides:
add in class CompositeFigure
Returns:
the figure that was inserted.

remove

public Figure remove(Figure figure)
Description copied from class: StandardDrawing
Removes the figure from the drawing and releases it.

Specified by:
remove in interface Drawing
Overrides:
remove in class StandardDrawing
See Also:
CompositeFigure.removeAll(java.util.Vector)

replace

public void replace(Figure figure,
                    Figure replacement)
Description copied from class: CompositeFigure
Replaces a figure in the drawing without removing it from the drawing.

Specified by:
replace in interface Drawing
Overrides:
replace in class CompositeFigure

animationStep

public void animationStep()
Description copied from interface: Animatable
Perform a step of the animation.

Specified by:
animationStep in interface Animatable