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 EllipseCell extends DefaultGraphCell {
16
17 public EllipseCell() {
18 this(null);
19 }
20
21 public EllipseCell(Object userObject) {
22 super(userObject);
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 }