org.jgraph.cellview
Class JGraphDiamondView
java.lang.Object
VertexView
org.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
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 |
renderer
public static transient JGraphDiamondView.JGraphDiamondRenderer renderer
JGraphDiamondView
public JGraphDiamondView()
JGraphDiamondView
public JGraphDiamondView(java.lang.Object cell)
getPerimeterPoint
public java.awt.geom.Point2D getPerimeterPoint(java.awt.geom.Point2D source,
java.awt.geom.Point2D p)
getRenderer
public CellViewRenderer getRenderer()