|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.MapBrowser.MapPoint
com.partnersoft.v3x.apps.MapBrowser.MapTreeNode
public abstract class MapTreeNode
This is a MapPoint that can be used to create drawn trees of joined points.
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.v3x.apps.MapBrowser.MapPoint |
|---|
coords |
| Constructor Summary | |
|---|---|
MapTreeNode()
Create a new, blank MapTreeNode. |
|
MapTreeNode(Coord3D coord,
MapTreeNode parent)
Create a new MapTreeNode at coord with parent. |
|
| Method Summary | |
|---|---|
void |
addChild(MapTreeNode newChild)
Add a child to this point. |
java.util.Iterator |
children()
Get the children of this point. |
boolean |
containsDescendent(MapTreeNode node)
|
java.lang.Object |
deepCopy()
|
java.util.Iterator |
descendents()
Get all children, their children, etc. |
boolean |
formsLoop()
|
java.lang.String |
getBackSpanDeflection()
The deflection angle in degrees off the parent node. |
TurnVector |
getBackSpanVector()
Returns a TurnVector representing the backspan (span to parent node). |
java.util.Set |
getChildrenSet()
|
double |
getDistanceToParent()
Distance in map units to the parent node. |
java.lang.String |
getFrontSpanDeflections()
The backSpanDeflections of all the children. |
TurnVector |
getFrontSpanVector()
Returns a TurnVector representing the frontspan (span to first child node). |
int |
getNumberOfChildren()
|
MapTreeNode |
getParent()
The parent node of this point; null if this is the root node. |
boolean |
hasChildren()
|
boolean |
isLoopWith(MapTreeNode parentToBe)
|
java.util.List<MapTreeNode> |
listAllConnectedNodes()
Lists all nodes connected to this one, ancestors and descendents, including this one. |
java.util.List<MapTreeNode> |
listChildren()
|
void |
remove()
Removes current node from tree and database; children are assigned to parent. |
void |
removeChild(MapTreeNode victim)
Remove a child. |
void |
setParent(MapTreeNode newParent)
Set the parent node of this point. |
| Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.MapPoint |
|---|
clearGuid, copyFromExistingPoint, getCoords, getGuid, getPostprocessingPoint, getXyPoint, isSelected, paintOn, paintOn, setCoords, setGuid, setPostprocessingPoint, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapTreeNode(Coord3D coord,
MapTreeNode parent)
public MapTreeNode()
| Method Detail |
|---|
public boolean hasChildren()
public java.util.Iterator children()
public java.util.List<MapTreeNode> listChildren()
public java.util.Iterator descendents()
public void remove()
public void addChild(MapTreeNode newChild)
public void removeChild(MapTreeNode victim)
public MapTreeNode getParent()
public void setParent(MapTreeNode newParent)
public TurnVector getBackSpanVector()
public TurnVector getFrontSpanVector()
public double getDistanceToParent()
public java.lang.String getBackSpanDeflection()
public java.lang.String getFrontSpanDeflections()
public java.lang.Object deepCopy()
public java.util.Set getChildrenSet()
public int getNumberOfChildren()
public boolean isLoopWith(MapTreeNode parentToBe)
public boolean formsLoop()
public boolean containsDescendent(MapTreeNode node)
public java.util.List<MapTreeNode> listAllConnectedNodes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||