1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 package org.otvl.sbxbsamp.simple;
31
32
33
34
35 /***
36 * A drawing, collection of abstract shapes.
37 * @author
38 * @version
39 */
40
41
42 public class Drawing
43 {
44
45
46
47 /***
48 *
49 */
50 private String paper;
51
52
53
54
55
56 /***
57 *
58 */
59 private java.util.List theShapes = new java.util.ArrayList() ;
60
61
62
63
64
65
66
67
68
69
70
71
72
73 /***
74 * Returns the paper.<br/>
75 *
76 * @return String
77 */
78 public String getPaper() {
79 String vPaper = paper;
80 return vPaper;
81 }
82
83 /***
84 * Sets the paper.<br/>
85 *
86 * @param paper The paper to set
87 */
88 public void setPaper(String paper) {
89 this.paper = paper;
90 }
91
92
93
94
95
96
97
98
99
100 /***
101 * Returns a target in link theShapes.<br/>
102 *
103 * @param index offset in the array
104 * @return Shape
105 */
106 public Shape getTheShapes(int index) {
107 Shape vTheShapes = (Shape)theShapes.get(index);
108 return vTheShapes;
109 }
110 /***
111 * Returns an iterator for targets in links theShapes
112 * @return java.util.Iterator
113 */
114 public java.util.Iterator iteratorTheShapes() {
115 java.util.Iterator vIterator = theShapes.iterator();
116 return vIterator;
117 }
118 /***
119 * Returns the size of the collection theShapes
120 * @return int
121 */
122 public int sizeTheShapes() {
123 int vSize = theShapes.size();
124 return vSize;
125 }
126
127 /***
128 * Inserts a target in link theShapes.<br/>
129 *
130 * @param index offset in the list
131 * @param aShape The Shape to insert
132 */
133 public void addTheShapes(int index, Shape aShape) {
134 this.theShapes.add(index, aShape);
135 }
136 /***
137 * Adds a target at end of link theShapes.<br/>
138 *
139 * @param aShape The Shape to insert
140 */
141 public void addTheShapes(Shape aShape) {
142 this.theShapes.add(this.theShapes.size(), aShape);
143 }
144
145 /***
146 * Removes a target in link theShapes
147 * @param index offset in the list
148 */
149 public void removeTheShapes(int index) {
150 this.theShapes.remove(index);
151 }
152
153 /***
154 * Clears all targets in link theShapes
155 */
156 public void clearTheShapes() {
157 this.theShapes.clear();
158 }
159
160
161
162
163 }