edu.iastate.metnet.graphmodel
Class ValidityMetaphor

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

public class ValidityMetaphor
extends AbstractGraphMetaphor

highlight the nodes and edges that have problems

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
ValidityMetaphor(GraphValidity graphValidity, java.util.Map modelIdCellMap)
          default constructor
 
Method Summary
 GraphValidity getGraphValidity()
           
 java.util.Map getModelIdCellMap()
           
 void run(org.jgraph.JGraph graph, java.lang.Object[] cells)
          color the graph according to graph validity
 void setGraphValidity(GraphValidity graphValidity)
           
 void setModelIdCellMap(java.util.Map modelIdCellMap)
           
 
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

ValidityMetaphor

public ValidityMetaphor(GraphValidity graphValidity,
                        java.util.Map modelIdCellMap)
default constructor

Parameters:
graphValidity - the graph validity
modelIdCellMap - the model id cell map
Method Detail

run

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

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

getGraphValidity

public GraphValidity getGraphValidity()
Returns:
the graphValidity

setGraphValidity

public void setGraphValidity(GraphValidity graphValidity)
Parameters:
graphValidity - the graphValidity to set

getModelIdCellMap

public java.util.Map getModelIdCellMap()
Returns:
the modelIdCellMap

setModelIdCellMap

public void setModelIdCellMap(java.util.Map modelIdCellMap)
Parameters:
modelIdCellMap - the modelIdCellMap to set