edu.iastate.metnet.graphmodel
Class ValidityMetaphor
java.lang.Object
edu.iastate.metnet.graphmodel.AbstractGraphMetaphor
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 |
| 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 |
logger
static org.apache.log4j.Logger logger
- log4j facility
ValidityMetaphor
public ValidityMetaphor(GraphValidity graphValidity,
java.util.Map modelIdCellMap)
- default constructor
- Parameters:
graphValidity - the graph validitymodelIdCellMap - the model id cell map
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 graphcells - 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