|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Model interface for managing repository of shapes.
| Method Summary | |
void |
addShape(java.awt.Shape s)
Add shape to the model. |
void |
addSlateModelListener(SlateModelListener l)
Add listener interested in changes in the changes model. |
java.awt.Shape |
getShapeAtIndex(int index)
Get the shape at given index |
int |
getShapeCount()
Get the count of shape in the model |
void |
removeAllShapes()
Remove all the shapes from model |
void |
removeShape(java.awt.Shape s)
Remove shape from model |
void |
removeSlateModelListener(SlateModelListener l)
Remove a previously added listener. |
| Method Detail |
public void addSlateModelListener(SlateModelListener l)
l - listener to be added.public void removeSlateModelListener(SlateModelListener l)
l - listener to be removed.public void addShape(java.awt.Shape s)
s - shape to be added.public void removeShape(java.awt.Shape s)
s - shape to be removedpublic void removeAllShapes()
public int getShapeCount()
public java.awt.Shape getShapeAtIndex(int index)
index - index of shape sought
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||