113114115116117118119120121122123
// Create vertex with the given name DefaultGraphCell cell =null; if(type==0) cell = new WsGraphCell(name); else cell = new WcGraphCell(name); // Set bounds GraphConstants.setBounds(cell.getAttributes(), new Rectangle2D.Double(x, y, w, h));