|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreebolic.model.Tree
public class Tree
Model
Field Summary | |
---|---|
private java.util.List<IEdge> |
theEdges
Edge list |
private INode |
theRoot
Root node |
Constructor Summary | |
---|---|
Tree(INode thisRoot,
java.util.List<IEdge> theseEdges)
Constructor |
Method Summary | |
---|---|
INode |
findNodeAt(INode thisStart,
Complex thisLocation)
Find node nearest to location |
INode |
findNodeById(INode thisStart,
java.lang.String thisId)
Find node by id |
java.util.List<IEdge> |
getEdges()
Get edges |
INode |
getRoot()
Get root node |
void |
setEdges(java.util.List<IEdge> theseEdges)
Set edges |
void |
setRoot(INode thisRoot)
Set root node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private INode theRoot
private java.util.List<IEdge> theEdges
Constructor Detail |
---|
public Tree(INode thisRoot, java.util.List<IEdge> theseEdges)
thisRoot
- root nodetheseEdges
- edge listMethod Detail |
---|
public INode getRoot()
public java.util.List<IEdge> getEdges()
public void setRoot(INode thisRoot)
thisRoot
- nodepublic void setEdges(java.util.List<IEdge> theseEdges)
theseEdges
- edge listpublic INode findNodeAt(INode thisStart, Complex thisLocation)
thisStart
- start node (only descendants are considered)thisLocation
- unit circle location
public INode findNodeById(INode thisStart, java.lang.String thisId)
thisStart
- start nodethisId
- target id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |