|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.klodd.hierarchical.structures.LinearSegment
public class LinearSegment
A linear segment of layer elements that represents a long edge in a layered graph.
Constructor Summary | |
---|---|
LinearSegment()
|
Method Summary | |
---|---|
int |
compareTo(LinearSegment other)
Compares this with another Object. |
boolean |
equals(Object obj)
|
List<LayerElement> |
getElements()
Returns the elements. |
int |
getRank()
Returns the rank. |
boolean |
hasFollowing(LayerElement elem)
Determines whether the given element has following elements in this linear segment. |
int |
hashCode()
|
boolean |
hasPreceding(LayerElement elem)
Determines whether the given element has preceding elements in this linear segment. |
void |
setRank(int therank)
Sets the rank. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinearSegment()
Method Detail |
---|
public boolean hasPreceding(LayerElement elem)
elem
- element to test
elem
public boolean hasFollowing(LayerElement elem)
elem
- element to test
elem
public String toString()
toString
in class Object
public int compareTo(LinearSegment other)
compareTo
in interface Comparable<LinearSegment>
other
- the object to compare with
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public List<LayerElement> getElements()
public void setRank(int therank)
therank
- the rank to setpublic int getRank()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |