public class Edge
extends java.lang.Object
Constructor and Description |
---|
Edge(java.lang.String label,
java.lang.String source,
java.lang.String target)
This constructs an Edge with the specified label
and parent , child serial tags.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Get the value of label.
|
java.lang.String |
getLine(int n)
Returns line number n
|
java.lang.String |
getRsource()
Get the value of rsource.
|
java.lang.String |
getRtarget()
Get the value of rtarget.
|
Node |
getSource()
Get the value of source.
|
Node |
getTarget()
Get the value of target.
|
void |
setRsource(java.lang.String v)
Set the value of rsource.
|
void |
setRtarget(java.lang.String v)
Set the value of rtarget.
|
void |
setSource(Node v)
Set the value of source.
|
void |
setTarget(Node v)
Set the value of target.
|
java.awt.Dimension |
stringSize(java.awt.FontMetrics f)
This will calculate how large a rectangle using the FontMetrics
passed that the lines of the label will take up
|
public Edge(java.lang.String label, java.lang.String source, java.lang.String target)
label
- The text caption for the edge.source
- The ID string for this edges parent.target
- The ID string for this edges child.public java.lang.String getLabel()
public java.awt.Dimension stringSize(java.awt.FontMetrics f)
f
- The size information for a particular Fontpublic java.lang.String getLine(int n)
n
- The number of the line requestedpublic java.lang.String getRsource()
public void setRsource(java.lang.String v)
v
- Value to assign to rsource.public java.lang.String getRtarget()
public void setRtarget(java.lang.String v)
v
- Value to assign to rtarget.public Node getSource()
public void setSource(Node v)
v
- Value to assign to source.public Node getTarget()
public void setTarget(Node v)
v
- Value to assign to target.