1
2
3
4
5
6
7 package com.vikash.firsttool.ProfileImpl;
8
9 import org.jgraph.graph.DefaultGraphCell;
10 import org.jgraph.graph.GraphConstants;
11 /***
12 *
13 * @author studajb
14 */
15 public class RectangleGraphCell extends DefaultGraphCell{
16
17 /*** Creates a new instance of RectangleGraphCell */
18 public RectangleGraphCell() {
19 this(null);
20 }
21 public RectangleGraphCell(Object object) {
22 super(object);
23 }
24
25 public String toString() {
26 if (userObject == null) {
27 Object[] labels=GraphConstants.getExtraLabels(this.getAttributes());
28 Object cellname=String.valueOf(labels[0]);
29 return ("New"+cellname.toString());
30 } else {
31 return userObject.toString();
32 }
33 }
34 }