edu.iastate.metnet.graphmodel
Class PathwayElementMetaphor

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

public class PathwayElementMetaphor
extends AbstractGraphMetaphor

metaphor for selected element. Highlight the selected pathways

Author:
Jie Li

Field Summary
(package private)  java.util.Set blockIdSet
          blockid need to be highlighted
 
Fields inherited from class edu.iastate.metnet.graphmodel.AbstractGraphMetaphor
DEFAULT_BACKGROUND, DEFAULT_FOREGROUND, DEFAULT_LINE_WIDTH, logger
 
Constructor Summary
PathwayElementMetaphor(java.util.Set blockIdSet)
          default constructor
 
Method Summary
 void run(org.jgraph.JGraph graph, java.lang.Object[] cells)
          color the graph according to FCModeler
 
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

blockIdSet

java.util.Set blockIdSet
blockid need to be highlighted

Constructor Detail

PathwayElementMetaphor

public PathwayElementMetaphor(java.util.Set blockIdSet)
default constructor

Parameters:
blockIdSet - the blockid list that need to be highlighted
Method Detail

run

public void run(org.jgraph.JGraph graph,
                java.lang.Object[] cells)
color the graph according to FCModeler

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