|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaapo.project.DiagramWrapper
public class DiagramWrapper
Diagram wrapper is a node in the project diagram tree. Diagram wrapper has a parent and may have children. Diagram wrapper has one associated Diagram instance.
When adding a new diagram wrapper to the tree, you usually use the Project.addDiagram method and don't need to invoke the constructors of this class directly.
Diagram,
Serialized Form| Constructor Summary | |
|---|---|
protected |
DiagramWrapper()
|
|
DiagramWrapper(Diagram diagram)
Constructs the wrapper with null parent. |
|
DiagramWrapper(Diagram diagram,
DiagramWrapper parent)
Constructs the wrapper with given parent. |
| Method Summary | |
|---|---|
void |
addChild(int index,
DiagramWrapper child)
Add child node into diagram wrapper. |
List<DiagramWrapper> |
getChildren()
Returns the children of this diagram wrapper. |
Diagram |
getDiagram()
Returns the diagram associated to this wrapper. |
DiagramWrapper |
getParent()
Returns the parent of this wrapper. |
boolean |
removeChild(DiagramWrapper child)
Removes a child from diagram wrapper. |
void |
setParent(DiagramWrapper parent)
Sets the parent of this wrapper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DiagramWrapper()
public DiagramWrapper(Diagram diagram)
diagram - The Diagram instance associated
to this wrapper.
public DiagramWrapper(Diagram diagram,
DiagramWrapper parent)
diagram - The Diagram instance associated
to this wrapper.parent - The parent of this diagram wrapper.| Method Detail |
|---|
public Diagram getDiagram()
public DiagramWrapper getParent()
public void setParent(DiagramWrapper parent)
parent - New parentpublic List<DiagramWrapper> getChildren()
public void addChild(int index,
DiagramWrapper child)
index - The index for the new child.
Index 0 adds the child to the first child.child - The child to be addedpublic boolean removeChild(DiagramWrapper child)
child - The child to be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||