com.rapidminer.gui.graphs
Class AssociationRulesGraphCreator

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

public class AssociationRulesGraphCreator
extends GraphCreatorAdaptor
implements AssociationRuleFilterListener

Creates a graph model for a set of association rules.

Author:
Ingo Mierswa

Field Summary
 
Fields inherited from interface com.rapidminer.gui.viewer.AssociationRuleFilterListener
CONJUNCTION_AND, CONJUNCTION_NAMES, CONJUNCTION_OR
 
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
AssociationRulesGraphCreator(AssociationRules rules)
           
 
Method Summary
 edu.uci.ics.jung.graph.Graph<java.lang.String,java.lang.String> createGraph()
          Creates the graph.
 java.lang.String getEdgeName(java.lang.String id)
          Returns null.
 int getEdgeShape()
          Returns the shape of the edges.
 int getLabelOffset()
          Returns the label offset.
 int getNumberOfOptionComponents()
          Returns 0.
 java.lang.Object getObject(java.lang.String id)
          Returns null.
 javax.swing.JComponent getOptionComponent(GraphViewer viewer, int index)
          Returns null.
 java.lang.String getVertexName(java.lang.String id)
          Returns null.
 java.lang.String getVertexToolTip(java.lang.String id)
          Returns null.
 boolean isBold(java.lang.String id)
          Returns true for rule nodes.
 boolean isLeaf(java.lang.String id)
          Returns true for rule nodes.
 void setFilter(boolean[] filter)
           
 boolean showEdgeLabelsDefault()
          Returns false.
 boolean showVertexLabelsDefault()
          Returns false.
 
Methods inherited from class com.rapidminer.gui.graphs.GraphCreatorAdaptor
getEdgeLabelRenderer, getEdgeStrength, getMinLeafHeight, getMinLeafWidth, getObjectViewer, getVertexLabelRenderer, getVertexPaintTransformer, getVertexRenderer, isEdgeLabelDecorating, isRotatingEdgeLabels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationRulesGraphCreator

public AssociationRulesGraphCreator(AssociationRules rules)
Method Detail

createGraph

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

Specified by:
createGraph in interface GraphCreator<java.lang.String,java.lang.String>

isBold

public boolean isBold(java.lang.String id)
Returns true for rule nodes.

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

isLeaf

public boolean isLeaf(java.lang.String id)
Returns true for rule nodes.

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

getVertexToolTip

public java.lang.String getVertexToolTip(java.lang.String id)
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 id)
Description copied from class: GraphCreatorAdaptor
Returns null.

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

getVertexName

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

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

getLabelOffset

public int getLabelOffset()
Returns the label offset. In most case, using -1 is just fine (default offset). Some tree like graphs might prefer to use 0 since they manage the offset themself.

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

showEdgeLabelsDefault

public boolean showEdgeLabelsDefault()
Returns false.

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

showVertexLabelsDefault

public boolean showVertexLabelsDefault()
Returns false.

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

getEdgeShape

public int getEdgeShape()
Returns the shape of the edges.

Specified by:
getEdgeShape in interface GraphCreator<java.lang.String,java.lang.String>
Overrides:
getEdgeShape 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

getNumberOfOptionComponents

public int getNumberOfOptionComponents()
Description copied from class: GraphCreatorAdaptor
Returns 0.

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

getOptionComponent

public javax.swing.JComponent getOptionComponent(GraphViewer viewer,
                                                 int index)
Description copied from class: GraphCreatorAdaptor
Returns null.

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

setFilter

public void setFilter(boolean[] filter)
Specified by:
setFilter in interface AssociationRuleFilterListener


Copyright © 2001-2009 by Rapid-I