|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.AbstractDrawingModel org.jdrawing.DefaultDrawingModel
This is default implementation of DrawingModel
interface.
It stores all elements in LinkedList
and does not support
any ordering.
Constructor Summary | |
DefaultDrawingModel()
|
Method Summary | |
void |
addElement(java.lang.Object element)
Adds new element to the model. |
java.util.Enumeration |
elements()
Returns an enumeration of the elements of this model. |
void |
removeElement(java.lang.Object element)
Remove element from the model. |
void |
sortElements(java.lang.Object[] elements)
Reorder elements to be in order suitable for painting. |
void |
updateElement(java.lang.Object element)
Notify all listeners that element has changed. |
Methods inherited from class org.jdrawing.AbstractDrawingModel |
addDrawingModelListener, fireElementsAdded, fireElementsChanged, fireElementsRemoved, fireModelChanged, getDrawingModelListeners, removeDrawingModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultDrawingModel()
Method Detail |
public java.util.Enumeration elements()
public void addElement(java.lang.Object element)
element
- element to be added to the modelpublic void removeElement(java.lang.Object element)
element
- element to be removed from the modelpublic void updateElement(java.lang.Object element)
element
- changed elementpublic void sortElements(java.lang.Object[] elements)
elements
to be in order suitable for painting.
This implementation does not do any reordering.
elements
- the elements to reorder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |