|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--slate.DefaultSlateModel
A simple, vector based implementation of SlateModel interface.
| Constructor Summary | |
DefaultSlateModel()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DefaultSlateModel()
| 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 | ||||||||