jlink.flowchart.graph
Class JLVertexPair

java.lang.Object
  extended by jlink.flowchart.graph.JLVertexPair

public class JLVertexPair
extends java.lang.Object

Author:
jasonkb

Field Summary
protected  JLVertex head
          The head vertex is the JLVertex that is attached to the arrow portion of a JLEdge.
protected  JLVertex tail
          The tail vertex is the JLVertex that is attached to the tail portion of a JLEdge.
 
Constructor Summary
JLVertexPair()
          Constructs an empty JLVertexPair.
JLVertexPair(JLVertex headVertex, JLVertex tailVertex)
          Constructs a new JLVertexPair with corresponding head and tail vertices.
 
Method Summary
 JLVertex getHeadJLVertex()
          Method to access the head vertex.
 JLVertex getTailJLVertex()
          Method to access the tail vertex.
 void setHeadJLVertex(JLVertex v)
          Sets the head vertex of this ordered pair.
 void setTailJLVertex(JLVertex v)
          Sets the tail vertex of this ordered pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

head

protected JLVertex head
The head vertex is the JLVertex that is attached to the arrow portion of a JLEdge.

See Also:
tail

tail

protected JLVertex tail
The tail vertex is the JLVertex that is attached to the tail portion of a JLEdge.

See Also:
head
Constructor Detail

JLVertexPair

public JLVertexPair()
Constructs an empty JLVertexPair.


JLVertexPair

public JLVertexPair(JLVertex headVertex,
                    JLVertex tailVertex)
Constructs a new JLVertexPair with corresponding head and tail vertices.

Parameters:
headVertex - The head JLVertex.
tailVertex - The tail JLVertex.
Method Detail

getHeadJLVertex

public JLVertex getHeadJLVertex()
Method to access the head vertex.

Returns:
The head JLVertex of this ordered pair.
See Also:
head, getTailJLVertex()

setHeadJLVertex

public void setHeadJLVertex(JLVertex v)
Sets the head vertex of this ordered pair.

Parameters:
v - The head JLVertex to set in this ordered pair
See Also:
setTailJLVertex(JLVertex v)

getTailJLVertex

public JLVertex getTailJLVertex()
Method to access the tail vertex.

Returns:
The tail JLVertex of this ordered pair.
See Also:
tail, getHeadJLVertex()

setTailJLVertex

public void setTailJLVertex(JLVertex v)
Sets the tail vertex of this ordered pair.

Parameters:
v - The tail JLVertex to set in this ordered pair
See Also:
setHeadJLVertex(JLVertex v)