Class Edge
java.lang.Object
weka.gui.treevisualizer.Edge
This class is used in conjunction with the Node class to form a tree
structure.
This in particular contains information about an edges in the tree.
- Version:
- $Revision: 7059 $
- Author:
- Malcolm Ware (mfw4@cs.waikato.ac.nz)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Get the value of label.getLine(int n) Returns line number nGet the value of rsource.Get the value of rtarget.Get the value of source.Get the value of target.voidsetRsource(String v) Set the value of rsource.voidsetRtarget(String v) Set the value of rtarget.voidSet the value of source.voidSet the value of target.This will calculate how large a rectangle using the FontMetrics passed that the lines of the label will take up
-
Constructor Details
-
Edge
-
-
Method Details
-
getLabel
-
stringSize
This will calculate how large a rectangle using the FontMetrics passed that the lines of the label will take up- Parameters:
f- The size information for a particular Font- Returns:
- A Dimension containing the size and width of the text
-
getLine
Returns line number n- Parameters:
n- The number of the line requested- Returns:
- The string for the line number or NULL if it didn't exist
-
getRsource
-
setRsource
Set the value of rsource.- Parameters:
v- Value to assign to rsource.
-
getRtarget
-
setRtarget
Set the value of rtarget.- Parameters:
v- Value to assign to rtarget.
-
getSource
-
setSource
Set the value of source. And then call v.addChild to add the edge to the Node.- Parameters:
v- Value to assign to source.
-
getTarget
-
setTarget
Set the value of target. And then call v.addParent to add the edge to the Node.- Parameters:
v- Value to assign to target.
-