edu.iastate.metnet.graphmodel
Class MultiVertexView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.VertexView
          extended by edu.iastate.metnet.graphmodel.MultiVertexView
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellView

public class MultiVertexView
extends org.jgraph.graph.VertexView

implement a special vertex view and renderer which can use two background color. We utilize the gradient color so caller only need set the gradient color by GraphConstants

Author:
Jie Li
See Also:
Serialized Form

Nested Class Summary
static class MultiVertexView.MultiVertexRenderer
          customized the renderer to use two background colors for one node
 
Nested classes/interfaces inherited from class org.jgraph.graph.VertexView
org.jgraph.graph.VertexView.SizeHandle
 
Field Summary
static MultiVertexView.MultiVertexRenderer renderer
          special renderer override normal gradient painter
 
Fields inherited from class org.jgraph.graph.VertexView
bounds, defaultBounds, defaultCursors, xCursors, yCursors
 
Fields inherited from class org.jgraph.graph.AbstractCellView
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent
 
Constructor Summary
MultiVertexView()
          special view for special renderer
MultiVertexView(java.lang.Object cell)
          default constructor
 
Method Summary
 org.jgraph.graph.CellViewRenderer getRenderer()
           
 
Methods inherited from class org.jgraph.graph.VertexView
getBounds, getCachedBounds, getCenterPoint, getHandle, getPerimeterPoint, getPerimeterPoint, setCachedBounds, update
 
Methods inherited from class org.jgraph.graph.AbstractCellView
changeAttributes, childUpdated, createAttributeMap, getAllAttributes, getAttributes, getBounds, getCell, getCellAttributes, getCenterPoint, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, includeInGroupBounds, intersects, isLeaf, mergeAttributes, refresh, removeFromParent, scale, setAttributes, setBounds, setCell, translate, updateGroupBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

public static transient MultiVertexView.MultiVertexRenderer renderer
special renderer override normal gradient painter

Constructor Detail

MultiVertexView

public MultiVertexView()
special view for special renderer


MultiVertexView

public MultiVertexView(java.lang.Object cell)
default constructor

Parameters:
cell - the cell
graph - the graph
mapperthe - mapping
Method Detail

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()
Overrides:
getRenderer in class org.jgraph.graph.VertexView