Posted By

yoshimov on 08/28/06


Tagged

java jgraph cell create


Versions (?)

Create JGraph Cell


 / Published in: Java
 

  1. DefaultGraphCell cell = new DefaultGraphCell(name);
  2. GraphConstants.setBorderColor(cell.getAttributes(), Color.black);
  3. GraphConstants.setBounds(cell.getAttributes(), new Rectangle2D.Double(posx, posy, 100, 20));
  4. DefaultPort port = new DefaultPort();
  5. cell.add(port);
  6. graph.getGraphLayoutCache().insert(cell);

Report this snippet  

You need to login to post a comment.