com.rapidminer.gui.graphs
Class TreeModelGraphCreator

java.lang.Object
  extended by com.rapidminer.gui.graphs.GraphCreatorAdaptor
      extended by com.rapidminer.gui.graphs.TreeModelGraphCreator
All Implemented Interfaces:
GraphCreator<java.lang.String,java.lang.String>

public class TreeModelGraphCreator
extends GraphCreatorAdaptor

Creates a graph model for a learned tree model.

Author:
Ingo Mierswa

Field Summary
 
Fields inherited from interface com.rapidminer.gui.graphs.GraphCreator
EDGE_SHAPE_BENT_LINE, EDGE_SHAPE_CUBIC_CURVE, EDGE_SHAPE_LINE, EDGE_SHAPE_QUAD_CURVE, EDGE_SHAPE_WEDGE
 
Constructor Summary
TreeModelGraphCreator(TreeModel model)
           
 
Method Summary
 edu.uci.ics.jung.graph.Graph<java.lang.String,java.lang.String> createGraph()
          Creates the graph.
 edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<java.lang.String,java.lang.String> getEdgeLabelRenderer()
          Returns null.
 java.lang.String getEdgeName(java.lang.String object)
          Returns null.
 double getEdgeStrength(java.lang.String id)
          Returns 1.
 int getLabelOffset()
          Returns 0 (for other values the edge label painting will not work).
 int getMinLeafHeight()
          Returns -1.
 int getMinLeafWidth()
          Returns -1.
 TreeModel getModel()
          Returns the model.
 java.lang.Object getObject(java.lang.String id)
          Returns null.
 Tree getTree(java.lang.String id)
           
 edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel<java.lang.String,java.lang.String> getVertexLabelRenderer()
          Returns null.
 java.lang.String getVertexName(java.lang.String object)
          Returns null.
 edu.uci.ics.jung.visualization.renderers.Renderer.Vertex<java.lang.String,java.lang.String> getVertexRenderer()
          Returns null.
 java.lang.String getVertexToolTip(java.lang.String object)
          Returns null.
 boolean isBold(java.lang.String id)
          Returns false.
 boolean isEdgeLabelDecorating()
          Returns false.
 boolean isLeaf(java.lang.String object)
          Returns false.
 boolean isRotatingEdgeLabels()
          Returns true.
 
Methods inherited from class com.rapidminer.gui.graphs.GraphCreatorAdaptor
getEdgeShape, getNumberOfOptionComponents, getObjectViewer, getOptionComponent, getVertexPaintTransformer, showEdgeLabelsDefault, showVertexLabelsDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeModelGraphCreator

public TreeModelGraphCreator(TreeModel model)
Method Detail

getTree

public Tree getTree(java.lang.String id)

getVertexName

public java.lang.String getVertexName(java.lang.String object)
Description copied from class: GraphCreatorAdaptor
Returns null.

Specified by:
getVertexName in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getVertexName in class GraphCreatorAdaptor

getVertexToolTip

public java.lang.String getVertexToolTip(java.lang.String object)
Description copied from class: GraphCreatorAdaptor
Returns null.

Specified by:
getVertexToolTip in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getVertexToolTip in class GraphCreatorAdaptor

getEdgeName

public java.lang.String getEdgeName(java.lang.String object)
Description copied from class: GraphCreatorAdaptor
Returns null.

Specified by:
getEdgeName in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getEdgeName in class GraphCreatorAdaptor

isLeaf

public boolean isLeaf(java.lang.String object)
Description copied from class: GraphCreatorAdaptor
Returns false.

Specified by:
isLeaf in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
isLeaf in class GraphCreatorAdaptor

createGraph

public edu.uci.ics.jung.graph.Graph<java.lang.String,java.lang.String> createGraph()
Description copied from interface: GraphCreator
Creates the graph.


getModel

public TreeModel getModel()
Returns the model.


getVertexRenderer

public edu.uci.ics.jung.visualization.renderers.Renderer.Vertex<java.lang.String,java.lang.String> getVertexRenderer()
Description copied from class: GraphCreatorAdaptor
Returns null.

Specified by:
getVertexRenderer in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getVertexRenderer in class GraphCreatorAdaptor

getEdgeLabelRenderer

public edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<java.lang.String,java.lang.String> getEdgeLabelRenderer()
Description copied from class: GraphCreatorAdaptor
Returns null.

Specified by:
getEdgeLabelRenderer in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getEdgeLabelRenderer in class GraphCreatorAdaptor

getVertexLabelRenderer

public edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel<java.lang.String,java.lang.String> getVertexLabelRenderer()
Description copied from class: GraphCreatorAdaptor
Returns null.

Specified by:
getVertexLabelRenderer in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getVertexLabelRenderer in class GraphCreatorAdaptor

isEdgeLabelDecorating

public boolean isEdgeLabelDecorating()
Description copied from class: GraphCreatorAdaptor
Returns false.

Specified by:
isEdgeLabelDecorating in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
isEdgeLabelDecorating in class GraphCreatorAdaptor

getMinLeafHeight

public int getMinLeafHeight()
Description copied from class: GraphCreatorAdaptor
Returns -1.

Specified by:
getMinLeafHeight in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getMinLeafHeight in class GraphCreatorAdaptor

getMinLeafWidth

public int getMinLeafWidth()
Description copied from class: GraphCreatorAdaptor
Returns -1.

Specified by:
getMinLeafWidth in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getMinLeafWidth in class GraphCreatorAdaptor

isBold

public boolean isBold(java.lang.String id)
Description copied from class: GraphCreatorAdaptor
Returns false.

Specified by:
isBold in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
isBold in class GraphCreatorAdaptor

isRotatingEdgeLabels

public boolean isRotatingEdgeLabels()
Description copied from class: GraphCreatorAdaptor
Returns true.

Specified by:
isRotatingEdgeLabels in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
isRotatingEdgeLabels in class GraphCreatorAdaptor

getEdgeStrength

public double getEdgeStrength(java.lang.String id)
Description copied from class: GraphCreatorAdaptor
Returns 1.

Specified by:
getEdgeStrength in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getEdgeStrength in class GraphCreatorAdaptor

getObject

public java.lang.Object getObject(java.lang.String id)
Description copied from class: GraphCreatorAdaptor
Returns null.

Specified by:
getObject in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getObject in class GraphCreatorAdaptor

getLabelOffset

public int getLabelOffset()
Returns 0 (for other values the edge label painting will not work).

Specified by:
getLabelOffset in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getLabelOffset in class GraphCreatorAdaptor


Copyright © 2001-2009 by Rapid-I