public class Edge extends Object
Constructor and Description |
---|
Edge(String label,
String source,
String target)
This constructs an Edge with the specified label
and parent , child serial tags.
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
Get the value of label.
|
String |
getLine(int n)
Returns line number n
|
String |
getRsource()
Get the value of rsource.
|
String |
getRtarget()
Get the value of rtarget.
|
Node |
getSource()
Get the value of source.
|
Node |
getTarget()
Get the value of target.
|
void |
setRsource(String v)
Set the value of rsource.
|
void |
setRtarget(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.
|
Dimension |
stringSize(FontMetrics f)
This will calculate how large a rectangle using the FontMetrics
passed that the lines of the label will take up
|
public String getLabel()
public Dimension stringSize(FontMetrics f)
f
- The size information for a particular Fontpublic String getLine(int n)
n
- The number of the line requestedpublic String getRsource()
public void setRsource(String v)
v
- Value to assign to rsource.public String getRtarget()
public void setRtarget(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.Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.