edu.iastate.metnet.graphmodel
Class ComparativeMetaphor

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

public class ComparativeMetaphor
extends AbstractGraphMetaphor

in the case of multiple pathways in a preview window.

Author:
Jie Li

Field Summary
(package private) static org.apache.log4j.Logger logger
          log4j facility
 
Fields inherited from class edu.iastate.metnet.graphmodel.AbstractGraphMetaphor
DEFAULT_BACKGROUND, DEFAULT_FOREGROUND, DEFAULT_LINE_WIDTH
 
Constructor Summary
ComparativeMetaphor()
          default constructor
 
Method Summary
 java.util.Map getColorMap(org.jgraph.JGraph graph)
          assign the color map
 void run(org.jgraph.JGraph graph, java.lang.Object[] cells)
          apply metaphor for the graph
 
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

static org.apache.log4j.Logger logger
log4j facility

Constructor Detail

ComparativeMetaphor

public ComparativeMetaphor()
default constructor

Method Detail

run

public void run(org.jgraph.JGraph graph,
                java.lang.Object[] cells)
apply metaphor for the graph

Specified by:
run in interface IGraphMetaphor
Overrides:
run in class AbstractGraphMetaphor
Parameters:
graph - the graph object
cells - the cell objects

getColorMap

public java.util.Map getColorMap(org.jgraph.JGraph graph)
assign the color map

Parameters:
graph - the jgraph object
Returns:
the color map for this jgraph