de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph
Class KSlimEdge.Bend

java.lang.Object
  extended by de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.KSlimEdge.Bend
Enclosing class:
KSlimEdge

public static class KSlimEdge.Bend
extends Object

Definition of an edge bend for orthogonal drawing.

Rating red

Nested Class Summary
static class KSlimEdge.Bend.Type
          Type of edge bend, from the perspective of the source node.
 
Constructor Summary
KSlimEdge.Bend(KSlimEdge theedge, KSlimEdge.Bend.Type thetype)
          Creates an edge bend of given type.
 
Method Summary
 KSlimEdge getEdge()
          Returns the slim edge associated with this bend.
 int getIndex()
          Returns the index.
 KSlimEdge.Bend.Type getType()
          Returns the bend type.
 float getXpos()
          Returns the x position.
 float getYpos()
          Returns the y position.
 void setXpos(float thexpos)
          Sets the x position.
 void setYpos(float theypos)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KSlimEdge.Bend

public KSlimEdge.Bend(KSlimEdge theedge,
                      KSlimEdge.Bend.Type thetype)
Creates an edge bend of given type.

Parameters:
theedge - the edge to which the new bend is added
thetype - type of edge bend
Method Detail

getType

public KSlimEdge.Bend.Type getType()
Returns the bend type.

Returns:
the type

setXpos

public void setXpos(float thexpos)
Sets the x position.

Parameters:
thexpos - the x position to set

getXpos

public float getXpos()
Returns the x position.

Returns:
the x position

setYpos

public void setYpos(float theypos)
Parameters:
theypos - the ypos to set

getYpos

public float getYpos()
Returns the y position.

Returns:
the y position

getIndex

public int getIndex()
Returns the index.

Returns:
the index

getEdge

public KSlimEdge getEdge()
Returns the slim edge associated with this bend.

Returns:
the edge

toString

public String toString()

Overrides:
toString in class Object