CH.ifa.draw.samples.javadraw
Class BouncingDrawing
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.standard.CompositeFigure
-
- CH.ifa.draw.standard.StandardDrawing
-
- 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 interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description BouncingDrawing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Figureadd(Figure figure)Adds a figure to the list of figures.voidanimationStep()Perform a step of the animation.Figureremove(Figure figure)Removes the figure from the drawing and releases it.voidreplace(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, 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, 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.framework.FigureChangeListener
figureChanged, figureRemoved
-
-
-
-
Method Detail
-
add
public Figure add(Figure figure)
Description copied from class:CompositeFigureAdds a figure to the list of figures. Initializes the the figure's container.- Specified by:
addin interfaceDrawing- Overrides:
addin classCompositeFigure- Returns:
- the figure that was inserted.
-
remove
public Figure remove(Figure figure)
Description copied from class:StandardDrawingRemoves the figure from the drawing and releases it.- Specified by:
removein interfaceDrawing- Overrides:
removein classStandardDrawing- See Also:
CompositeFigure.removeAll(java.util.Vector)
-
replace
public void replace(Figure figure, Figure replacement)
Description copied from class:CompositeFigureReplaces a figure in the drawing without removing it from the drawing.- Specified by:
replacein interfaceDrawing- Overrides:
replacein classCompositeFigure
-
animationStep
public void animationStep()
Description copied from interface:AnimatablePerform a step of the animation.- Specified by:
animationStepin interfaceAnimatable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG