edu.iastate.metnet.graphmodel
Class CompositionRelationMetaphor

java.lang.Object
  extended by edu.iastate.metnet.graphmodel.AbstractGraphMetaphor
      extended by edu.iastate.metnet.graphmodel.CompositionRelationMetaphor
All Implemented Interfaces:
IGraphMetaphor

public class CompositionRelationMetaphor
extends AbstractGraphMetaphor

use normal location metaphor and color the and relation as red, or relation as blue

Author:
Jie Li

Field Summary
(package private)  org.apache.log4j.Logger logger
           
 
Fields inherited from class edu.iastate.metnet.graphmodel.AbstractGraphMetaphor
DEFAULT_BACKGROUND, DEFAULT_FOREGROUND, DEFAULT_LINE_WIDTH
 
Constructor Summary
CompositionRelationMetaphor(CompositionGraphModel compositionGraphModel)
          mandatory construct the class with argument
 
Method Summary
 void run(org.jgraph.JGraph graph, java.lang.Object[] cells)
          make the graph black and white
 
Methods inherited from class edu.iastate.metnet.graphmodel.AbstractGraphMetaphor
autoSizeBox, changeEdgeColor, changeEdgeDualColor, changeEdgePattern, changeEdgeWidth, changeVertexBackgroundColor, changeVertexBorderColor, changeVertexBorderWidth, changeVertexDualColor, changeVertexForegroundColor, getEdgeType, getIncomingEdges, getIncomingNodes, getInteractionColorForEdge, getInteractionWidthForEdge, getIntersectionNodes, getLocationColorForVertex, getOutgoingEdges, getOutgoingNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

org.apache.log4j.Logger logger
Constructor Detail

CompositionRelationMetaphor

public CompositionRelationMetaphor(CompositionGraphModel compositionGraphModel)
mandatory construct the class with argument

Method Detail

run

public void run(org.jgraph.JGraph graph,
                java.lang.Object[] cells)
Description copied from class: AbstractGraphMetaphor
make the graph black and white

Specified by:
run in interface IGraphMetaphor
Overrides:
run in class AbstractGraphMetaphor
Parameters:
graph - the jgraph instance
cells - the selected cells or all cells