|
||||||||||
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.CompositeFigure
org.jhotdraw.standard.StandardDrawing
org.jhotdraw.samples.javadraw.BouncingDrawing
public class BouncingDrawing
Field Summary |
---|
Fields inherited from interface org.jhotdraw.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 a figure from the composite. |
Figure |
replace(Figure figure,
Figure replacement)
Replaces a figure in the drawing without removing it from the drawing. |
Methods inherited from class org.jhotdraw.standard.StandardDrawing |
---|
addDrawingChangeListener, basicDisplayBox, displayBox, drawingChangeListeners, figureInvalidated, figureRequestUpdate, fireDrawingTitleChanged, getTitle, handles, lock, orphan, removeDrawingChangeListener, setTitle, unlock |
Methods inherited from class org.jhotdraw.standard.CompositeFigure |
---|
addAll, addAll, bringToFront, containsFigure, draw, draw, figureAt, figureChanged, figureCount, figureRemoved, figureRequestRemove, figures, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, getFigureFromLayer, getLayer, includes, init, orphanAll, orphanAll, read, release, removeAll, removeAll, removeAll, sendToBack, sendToLayer, write |
Methods inherited from class org.jhotdraw.standard.AbstractFigure |
---|
addDependendFigure, addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, getAttribute, getAttribute, getDecoratedFigure, getDependendFigures, getTextHolder, getZValue, invalidate, isEmpty, listener, moveBy, removeDependendFigure, removeFigureChangeListener, removeFromContainer, setAttribute, setAttribute, setZValue, size, visit, willChange |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jhotdraw.framework.Drawing |
---|
addAll, addAll, bringToFront, containsFigure, draw, draw, figures, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, getFigureFromLayer, getLayer, includes, init, orphanAll, orphanAll, release, removeAll, removeAll, sendToBack, sendToLayer |
Methods inherited from interface org.jhotdraw.util.Storable |
---|
read, write |
Methods inherited from interface org.jhotdraw.framework.FigureChangeListener |
---|
figureChanged, figureRemoved, figureRequestRemove |
Constructor Detail |
---|
public BouncingDrawing()
Method Detail |
---|
public Figure add(Figure figure)
CompositeFigure
add
in interface Drawing
add
in class StandardDrawing
figure
- to be added to the drawing
public Figure remove(Figure figure)
CompositeFigure
remove
in interface Drawing
remove
in class CompositeFigure
figure
- that is part of the drawing and should be removed
CompositeFigure.removeAll(java.util.List)
public Figure replace(Figure figure, Figure replacement)
CompositeFigure
replace
in interface Drawing
replace
in class CompositeFigure
figure
- figure to be replacedreplacement
- figure that should replace the specified figure
public void animationStep()
Animatable
animationStep
in interface Animatable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |