com.jgraph.example.mycellview
Class MyCellView

java.lang.Object
  extended by 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

Constructor Summary
MyCellView()
           
 
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
 

Constructor Detail

MyCellView

public MyCellView()
Method Detail

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)