com.jgraph.example.mycellview
Class MyCellView
java.lang.Object
com.jgraph.example.mycellview.MyCellView
public class MyCellView
- extends java.lang.Object
This example is an evolution of the hello world example. This time,
we demonstrate the use of a custom graph cell view factory able to
provide different view indirections for various cells. Then all is about
using Java2D features in the view renderer to get draw the shape you want.
- Author:
- rvalyi
Method Summary |
static org.jgraph.graph.DefaultGraphCell |
createVertex(double x,
double y,
double w,
double h,
java.awt.Color bg,
boolean raised,
org.jgraph.graph.DefaultGraphCell cell,
java.lang.String viewClass)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyCellView
public MyCellView()
main
public static void main(java.lang.String[] args)
createVertex
public static org.jgraph.graph.DefaultGraphCell createVertex(double x,
double y,
double w,
double h,
java.awt.Color bg,
boolean raised,
org.jgraph.graph.DefaultGraphCell cell,
java.lang.String viewClass)