Return to Snippet

Revision: 1001
at August 28, 2006 04:36 by yoshimov


Initial Code
DefaultGraphCell cell = new DefaultGraphCell(name);
GraphConstants.setBorderColor(cell.getAttributes(), Color.black);
GraphConstants.setBounds(cell.getAttributes(), new Rectangle2D.Double(posx, posy, 100, 20));
DefaultPort port = new DefaultPort();
cell.add(port);
graph.getGraphLayoutCache().insert(cell);

Initial URL

                                

Initial Description

                                

Initial Title
Create JGraph Cell

Initial Tags
java

Initial Language
Java