1 package org.devaki.nextobjects.workspace.models.objects;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import org.devaki.nextobjects.workspace.models.BaseModel;
22 import org.devaki.nextobjects.workspace.models.graphics.ObjectView;
23 import org.devaki.nextobjects.workspace.models.graphics.LabelView;
24
25 /***
26 * This class is responsible for having labels
27 * @author eflorent
28 */
29 public class Label extends BaseClass
30 {
31 /***
32 * The label view
33 */
34 private LabelView labelView;
35
36 /***
37 * Constructor
38 * @param pModel the context model
39 */
40 public Label(final BaseModel pModel)
41 {
42 super(pModel);
43 this.setName("project notes");
44 this.setNotes("Double click to edit");
45 labelView = new LabelView(this);
46 }
47 /***
48 * Construct a new 'Label' object
49 * @param pObject the label to clone
50 */
51 public Label(final Label pObject)
52 {
53 super(pObject.getMyModel());
54 this.setName(pObject.getName());
55 this.setNotes(pObject.getNotes());
56 this.labelView = new LabelView(this);
57 }
58 /***
59 * get the label view
60 * @return labelView
61 */
62 public final ObjectView getObjectView()
63 {
64 return labelView;
65 }
66 }