Graph Common

pl.psnc.graph.view
Class ImageVertexView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.VertexView
          extended by pl.psnc.graph.view.ImageVertexView
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellView

public class ImageVertexView
extends org.jgraph.graph.VertexView

ImageVertexView class - image vertex view. Overrides the default JGraph vertex view to support image as cells.

Author:
Dominik Stoklosa (~osa~)
See Also:
Serialized Form
Email address
osa@man.poznan.pl

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgraph.graph.VertexView
org.jgraph.graph.VertexView.SizeHandle
 
Field Summary
 
Fields inherited from class org.jgraph.graph.VertexView
bounds, defaultBounds, defaultCursors, renderer, xCursors, yCursors
 
Fields inherited from class org.jgraph.graph.AbstractCellView
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent
 
Constructor Summary
ImageVertexView(java.lang.Object cell)
          Creates new instance of ImageVertexView
 
Method Summary
 org.jgraph.graph.CellViewRenderer getRenderer()
           
 void update(org.jgraph.JGraph graph, java.awt.geom.Point2D p)
          Update
 
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
 

Constructor Detail

ImageVertexView

public ImageVertexView(java.lang.Object cell)
Creates new instance of ImageVertexView

Parameters:
cell - cell object
Method Detail

getRenderer

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

update

public void update(org.jgraph.JGraph graph,
                   java.awt.geom.Point2D p)
Update

Parameters:
graph - instance of JGraph
p - point

Graph Common

Copyright 2008 by VLAB Dominik Stoklosa