|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.AbstractDrawingModel org.jdrawing.graphics.GraphicsModel
The implementation of DrawingModel
interface that stores
a set of graphics elements. Elements can be grouped.
Constructor Summary | |
GraphicsModel()
|
Method Summary | |
java.util.Enumeration |
elements()
Returns an enumeration of the elements of this model. |
Group |
getRootGroup()
Returns Group that is the root of the model. |
void |
sortElements(java.lang.Object[] elements)
Reorder elements to be in down then right order. |
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 GraphicsModel()
Method Detail |
public Group getRootGroup()
Group
that is the root of the model. All
new elements must be added to this Group
or to a
Group
which is a successor of the Group
.
Group
of the modelGroup
public java.util.Enumeration elements()
public void sortElements(java.lang.Object[] elements)
elements
to be in down then right order.
elements
- the elements to reorder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |