public class TreeViz
extends java.lang.Object
implements java.io.Serializable, weka.gui.visualize.plugins.GraphVisualizePlugin
prefuse.demos.GraphView
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
TreeViz.BIFToGraphML
Turns the XML BIF
format into GraphML XML
format.
|
static class |
TreeViz.GraphPanel
A panel for displaying a prefuse graph.
|
Constructor and Description |
---|
TreeViz() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
convert(java.lang.String bif)
Converts the XML BIF format to GraphML.
|
protected void |
display(java.lang.String bif,
java.lang.String name)
Displays the graph.
|
protected void |
displayError(java.lang.String msg)
Displays the error.
|
java.lang.String |
getDesignVersion()
Get the specific version of Weka the class is designed for.
|
java.lang.String |
getMaxVersion()
Get the maximum version of Weka, exclusive, the class
is designed to work with.
|
java.lang.String |
getMinVersion()
Get the minimum version of Weka, inclusive, the class
is designed to work with.
|
javax.swing.JMenuItem |
getVisualizeMenuItem(java.lang.String bif,
java.lang.String name)
Get a JMenu or JMenuItem which contain action listeners
that perform the visualization of the graph in XML BIF format.
|
protected prefuse.data.Graph |
parse(java.lang.String graphml)
Parses the graph in GraphML and returns the built graph.
|
public java.lang.String getMinVersion()
3.5.0
getMinVersion
in interface weka.gui.visualize.plugins.GraphVisualizePlugin
public java.lang.String getMaxVersion()
3.6.0
getMaxVersion
in interface weka.gui.visualize.plugins.GraphVisualizePlugin
public java.lang.String getDesignVersion()
3.5.1
getDesignVersion
in interface weka.gui.visualize.plugins.GraphVisualizePlugin
public javax.swing.JMenuItem getVisualizeMenuItem(java.lang.String bif, java.lang.String name)
getVisualizeMenuItem
in interface weka.gui.visualize.plugins.GraphVisualizePlugin
bif
- the graph in XML BIF formatname
- the name of the item (in the Explorer's history list)NoClassDefFoundError
,
IncompatibleClassChangeError
protected void displayError(java.lang.String msg)
msg
- the error to displayprotected java.lang.String convert(java.lang.String bif)
bif
- the graph in XML BIF formatprotected prefuse.data.Graph parse(java.lang.String graphml)
graphml
- the graph in GraphMLprotected void display(java.lang.String bif, java.lang.String name)
bif
- the graph in XML BIF formatname
- the name of the graph