org.jgraph.cellview
Class JGraphDiamondView

java.lang.Object
  extended byVertexView
      extended byorg.jgraph.cellview.JGraphDiamondView

public class JGraphDiamondView
extends VertexView

Creates a diamond shaped graph cell. Correctly calculates perimeter, and manage a shape with different height and width parameters.

See Also:
Serialized Form

Nested Class Summary
static class JGraphDiamondView.JGraphDiamondRenderer
           
 
Field Summary
static JGraphDiamondView.JGraphDiamondRenderer renderer
           
 
Constructor Summary
JGraphDiamondView()
           
JGraphDiamondView(java.lang.Object cell)
           
 
Method Summary
 java.awt.geom.Point2D getPerimeterPoint(java.awt.geom.Point2D source, java.awt.geom.Point2D p)
           
 CellViewRenderer getRenderer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

public static transient JGraphDiamondView.JGraphDiamondRenderer renderer
Constructor Detail

JGraphDiamondView

public JGraphDiamondView()

JGraphDiamondView

public JGraphDiamondView(java.lang.Object cell)
Method Detail

getPerimeterPoint

public java.awt.geom.Point2D getPerimeterPoint(java.awt.geom.Point2D source,
                                               java.awt.geom.Point2D p)

getRenderer

public CellViewRenderer getRenderer()