|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Model interface for managing repository of shapes. The associated listener and event types are implemented as nested interface and class of this.
| Inner Class Summary | |
static class |
SlateModel.Event
Nested event class for communicating changes in the model of enclosing type SlateModel to its listeners of type SlateModel.Listener. |
static interface |
SlateModel.Listener
Nested interface for listening to changes in model of the enclosing type, SlateModel. |
| Method Summary | |
void |
addShape(java.awt.Shape s)
Add shape to the model. |
void |
addSlateModelListener(SlateModel.Listener 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(SlateModel.Listener l)
Remove a previously added listener. |
| Method Detail |
public void addSlateModelListener(SlateModel.Listener l)
l - listener to be added.public void removeSlateModelListener(SlateModel.Listener 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 | ||||||