|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--routing.Nodes
Container class for the class Node.
| Field Summary | |
protected int |
maxMark
Highest existing mark |
protected int[] |
minScale
Scale boundaries for the visiblity of the nodes |
protected int[] |
minTextScale
Scale boundaries for the visiblity of the node texts |
protected int |
nullMark
Value of the mark which corresponds to unmarked |
| Constructor Summary | |
Nodes(Edges edges)
Konstruktor. |
|
Nodes(int numOfClasses)
Konstruktor. |
|
| Method Summary | |
void |
clearAllMarks()
Die Markierungen aller Knoten werden gelöscht. |
java.util.Enumeration |
elements()
Gibt Enumeration über alle Knoten zurück. |
Node |
findNearest(int x,
int y)
Finds the nearest node to the position (x,y). |
Node |
get(long id)
Gibt den Knoten zurück, der die angegebene ID besitzt. |
long |
getNextFreeId()
Returns the next free identifier. |
int |
getNumOfClasses()
Returns the number of node classes. |
void |
initPresentation(java.awt.Color[] color,
java.awt.Color highlightColor)
Initialisiert die Darstellung der Knoten. |
Node |
newNode(long id,
int x,
int y,
java.lang.String name)
Creates a new node in the container. |
int |
numOfNodes()
Gibt die Anzahl der gespeicherten Knoten zurück. |
Node |
read(java.io.DataInput in)
Liest einen Knoten vom DataInput. |
boolean |
removeNode(Node node)
Removes the node if its number of edges is zero. |
void |
setMinScaleArray(int[] newMinScale)
Setzt die Maßstabsgrenzen der Kantenklassen neu. |
void |
setMinTextScaleArray(int[] newMinTextScale)
Setzt die Text-Maßstabsgrenzen der Kantenklassen neu. |
void |
setNumOfClasses(int num)
Sets the number of node classes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int nullMark
protected int maxMark
protected int[] minScale
protected int[] minTextScale
| Constructor Detail |
public Nodes(int numOfClasses)
numOfClasses - Anzahl der Knotenklassenpublic Nodes(Edges edges)
edges - Container über Kanten| Method Detail |
public void clearAllMarks()
public java.util.Enumeration elements()
public Node findNearest(int x,
int y)
x - x-coordinatey - y-coordinate
public Node get(long id)
id - ID des Knotens
public long getNextFreeId()
public int getNumOfClasses()
public void initPresentation(java.awt.Color[] color,
java.awt.Color highlightColor)
color - Farben für die KantenklassenhighlightColor - Hervorhebungsfarbe
public Node newNode(long id,
int x,
int y,
java.lang.String name)
id - id of the nodex - x-coordinatey - y-coordinatename - name (may be null)
public int numOfNodes()
public Node read(java.io.DataInput in)
in - Data-Input
public boolean removeNode(Node node)
node - node to be removed
public void setMinScaleArray(int[] newMinScale)
newMinScale - Maßstabsgrenzenpublic void setMinTextScaleArray(int[] newMinTextScale)
newMinTextScale - Text-Maßstabsgrenzenpublic void setNumOfClasses(int num)
num - number of node classes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||