|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A generic SequenceOfFigures from which Figures can be inserted, moved, and/or deleted.
| Method Summary | |
void |
addFigure(Figure figure)
Add the figure to the receiver. |
void |
addFigureBehind(Figure figure,
Figure existingFigure)
Add the figure to the receiver, sticking it behind an existingFigure which is already there. |
Figure |
figureAt(int x,
int y)
Answer the figure at a given point |
FigureEnumeration |
figures()
Answer a FigureEnumeration over the figures of the receiver. |
void |
moveFigureBehind(Figure figure,
Figure existingFigure)
Move the figure behind an existingFigure if it is not already there. |
void |
moveFigureInFront(Figure figure,
Figure existingFigure)
Move the figure in front of an existingFigure if it is not already there. |
void |
moveFigureToBack(Figure figure)
Move the figure behind all other figures. |
void |
moveFigureToFront(Figure figure)
Move the figure in front of all other figures. |
Figure |
otherFigureAt(Figure excludedFigure,
int x,
int y)
Answer the figure at a given point excluding the identified figure |
void |
removeFigure(Figure figure)
Remove the figure. |
| Method Detail |
public void addFigure(Figure figure)
figure - the figure to add
public void addFigureBehind(Figure figure,
Figure existingFigure)
figure - the figure to addexistingFigure - the figure to which the new figure should be behind
public Figure figureAt(int x,
int y)
x - the x coordinatey - the y coordinatepublic FigureEnumeration figures()
public void moveFigureBehind(Figure figure,
Figure existingFigure)
figure - the figure to moveexistingFigure - the figure to which the new figure should be behind
public void moveFigureInFront(Figure figure,
Figure existingFigure)
figure - the figure to moveexistingFigure - the figure to which the new figure should be in frontpublic void moveFigureToBack(Figure figure)
figure - the figure to addpublic void moveFigureToFront(Figure figure)
figure - the figure to add
public Figure otherFigureAt(Figure excludedFigure,
int x,
int y)
figure - the figure to exclude from the searchx - the x coordinatey - the y coordinatepublic void removeFigure(Figure figure)
figure - the figure to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||