Skip to main content
summaryrefslogtreecommitdiffstats
blob: 96ac0a3a71bb077e80a051464cbdd1fce44cffce (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.eclipse.papyrus.conversion.di2;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

import org.eclipse.swt.graphics.RGB;

/**
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Diagram Element</b></em>'.
 * <!-- end-user-doc -->
 * 
 * <p>
 * The following features are supported:
 * <ul>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getProperty <em>Property</em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#isIsVisible <em>Is Visible
 * </em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getReference <em>Reference
 * </em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getContainer <em>Container
 * </em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getFontFamily <em>Font Family
 * </em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getFontSize <em>Font Size</em>}
 * </li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getLineStyle <em>Line Style
 * </em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getLineThickness <em>Line
 * Thickness</em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getFontColor <em>Font Color
 * </em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getForegroundColor <em>
 * Foreground Color</em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getBackgroundColor <em>
 * Background Color</em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getBorderColor <em>Border Color
 * </em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#isTranslucent <em>Translucent
 * </em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticParent <em>Semantic
 * Parent</em>}</li>
 * <li>{@link org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticChild <em>Semantic
 * Child</em>}</li>
 * </ul>
 * </p>
 * 
 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement()
 * @model
 * @generated
 */
public interface DiagramElement extends EObject {

	/**
	 * Returns the value of the '<em><b>Property</b></em>' containment reference list. The list
	 * contents are of type {@link org.eclipse.papyrus.conversion.di2.Property}. <!--
	 * begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Property</em>' containment reference list isn't clear, there
	 * really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Property</em>' containment reference list.
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_Property()
	 * @model containment="true"
	 * @generated
	 */
	EList<Property> getProperty();

	/**
	 * Returns the value of the '<em><b>Is Visible</b></em>' attribute. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Is Visible</em>' attribute isn't clear, there really should be
	 * more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Is Visible</em>' attribute.
	 * @see #setIsVisible(boolean)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_IsVisible()
	 * @model dataType="org.eclipse.uml2.uml.Boolean"
	 * @generated
	 */
	boolean isIsVisible();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#isIsVisible
	 * <em>Is Visible</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Is Visible</em>' attribute.
	 * @see #isIsVisible()
	 * @generated
	 */
	void setIsVisible(boolean value);

	/**
	 * Returns the value of the '<em><b>Reference</b></em>' reference list. The list contents are of
	 * type {@link org.eclipse.papyrus.conversion.di2.Reference}. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Reference</em>' reference list isn't clear, there really should be
	 * more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Reference</em>' reference list.
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_Reference()
	 * @model
	 * @generated
	 */
	EList<Reference> getReference();

	/**
	 * Returns the value of the '<em><b>Container</b></em>' container reference. It is bidirectional
	 * and its opposite is '
	 * {@link org.eclipse.papyrus.conversion.di2.GraphElement#getContained <em>Contained</em>}
	 * '. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Container</em>' container reference isn't clear, there really
	 * should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Container</em>' container reference.
	 * @see #setContainer(GraphElement)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_Container()
	 * @see org.eclipse.papyrus.conversion.di2.GraphElement#getContained
	 * @model opposite="contained" transient="false"
	 * @generated
	 */
	GraphElement getContainer();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getContainer
	 * <em>Container</em>}' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Container</em>' container reference.
	 * @see #getContainer()
	 * @generated
	 */
	void setContainer(GraphElement value);

	/**
	 * Returns the value of the '<em><b>Font Family</b></em>' attribute. The default value is
	 * <code>""</code>. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Font Family</em>' attribute isn't clear, there really should be
	 * more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Font Family</em>' attribute.
	 * @see #setFontFamily(String)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_FontFamily()
	 * @model default="" dataType="org.eclipse.uml2.uml.String"
	 * @generated
	 */
	String getFontFamily();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getFontFamily
	 * <em>Font Family</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Font Family</em>' attribute.
	 * @see #getFontFamily()
	 * @generated
	 */
	void setFontFamily(String value);

	/**
	 * Returns the value of the '<em><b>Font Size</b></em>' attribute. The default value is
	 * <code>"10"</code>. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Font Size</em>' attribute isn't clear, there really should be more
	 * of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Font Size</em>' attribute.
	 * @see #setFontSize(int)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_FontSize()
	 * @model default="10" dataType="org.eclipse.uml2.uml.Integer"
	 * @generated
	 */
	int getFontSize();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getFontSize <em>Font Size</em>}
	 * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Font Size</em>' attribute.
	 * @see #getFontSize()
	 * @generated
	 */
	void setFontSize(int value);

	/**
	 * Returns the value of the '<em><b>Line Style</b></em>' attribute. The default value is
	 * <code>""</code>. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Line Style</em>' attribute isn't clear, there really should be
	 * more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Line Style</em>' attribute.
	 * @see #setLineStyle(String)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_LineStyle()
	 * @model default="" dataType="org.eclipse.uml2.uml.String"
	 * @generated
	 */
	String getLineStyle();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getLineStyle
	 * <em>Line Style</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Line Style</em>' attribute.
	 * @see #getLineStyle()
	 * @generated
	 */
	void setLineStyle(String value);

	/**
	 * Returns the value of the '<em><b>Line Thickness</b></em>' attribute. The default value is
	 * <code>"1"</code>. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Line Thickness</em>' attribute isn't clear, there really should be
	 * more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Line Thickness</em>' attribute.
	 * @see #setLineThickness(int)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_LineThickness()
	 * @model default="1" dataType="org.eclipse.uml2.uml.Integer"
	 * @generated
	 */
	int getLineThickness();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getLineThickness
	 * <em>Line Thickness</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Line Thickness</em>' attribute.
	 * @see #getLineThickness()
	 * @generated
	 */
	void setLineThickness(int value);

	/**
	 * Returns the value of the '<em><b>Font Color</b></em>' attribute. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Font Color</em>' attribute isn't clear, there really should be
	 * more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Font Color</em>' attribute.
	 * @see #setFontColor(RGB)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_FontColor()
	 * @model dataType="com.cea.papyrus.diagraminterchange2.di2.RGB"
	 * @generated
	 */
	RGB getFontColor();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getFontColor
	 * <em>Font Color</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Font Color</em>' attribute.
	 * @see #getFontColor()
	 * @generated
	 */
	void setFontColor(RGB value);

	/**
	 * Returns the value of the '<em><b>Foreground Color</b></em>' attribute. <!-- begin-user-doc
	 * -->
	 * <p>
	 * If the meaning of the '<em>Foreground Color</em>' attribute isn't clear, there really should
	 * be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Foreground Color</em>' attribute.
	 * @see #setForegroundColor(RGB)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_ForegroundColor()
	 * @model dataType="com.cea.papyrus.diagraminterchange2.di2.RGB"
	 * @generated
	 */
	RGB getForegroundColor();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getForegroundColor
	 * <em>Foreground Color</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Foreground Color</em>' attribute.
	 * @see #getForegroundColor()
	 * @generated
	 */
	void setForegroundColor(RGB value);

	/**
	 * Returns the value of the '<em><b>Background Color</b></em>' attribute. <!-- begin-user-doc
	 * -->
	 * <p>
	 * If the meaning of the '<em>Background Color</em>' attribute isn't clear, there really should
	 * be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Background Color</em>' attribute.
	 * @see #setBackgroundColor(RGB)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_BackgroundColor()
	 * @model dataType="com.cea.papyrus.diagraminterchange2.di2.RGB"
	 * @generated
	 */
	RGB getBackgroundColor();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getBackgroundColor
	 * <em>Background Color</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Background Color</em>' attribute.
	 * @see #getBackgroundColor()
	 * @generated
	 */
	void setBackgroundColor(RGB value);

	/**
	 * Returns the value of the '<em><b>Border Color</b></em>' attribute. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Border Color</em>' attribute isn't clear, there really should be
	 * more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Border Color</em>' attribute.
	 * @see #setBorderColor(RGB)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_BorderColor()
	 * @model dataType="com.cea.papyrus.diagraminterchange2.di2.RGB"
	 * @generated
	 */
	RGB getBorderColor();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getBorderColor
	 * <em>Border Color</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Border Color</em>' attribute.
	 * @see #getBorderColor()
	 * @generated
	 */
	void setBorderColor(RGB value);

	/**
	 * Returns the value of the '<em><b>Translucent</b></em>' attribute. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Translucent</em>' attribute isn't clear, there really should be
	 * more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Translucent</em>' attribute.
	 * @see #setTranslucent(boolean)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_Translucent()
	 * @model dataType="org.eclipse.uml2.uml.Boolean"
	 * @generated
	 */
	boolean isTranslucent();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#isTranslucent
	 * <em>Translucent</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Translucent</em>' attribute.
	 * @see #isTranslucent()
	 * @generated
	 */
	void setTranslucent(boolean value);

	/**
	 * Returns the value of the '<em><b>Semantic Parent</b></em>' reference. It is bidirectional and
	 * its opposite is '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticChild
	 * <em>Semantic Child</em>}'. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Semantic Parent</em>' reference isn't clear, there really should
	 * be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Semantic Parent</em>' reference.
	 * @see #setSemanticParent(DiagramElement)
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_SemanticParent()
	 * @see org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticChild
	 * @model opposite="semanticChild"
	 * @generated
	 */
	DiagramElement getSemanticParent();

	/**
	 * Sets the value of the '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticParent
	 * <em>Semantic Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @param value
	 *            the new value of the '<em>Semantic Parent</em>' reference.
	 * @see #getSemanticParent()
	 * @generated
	 */
	void setSemanticParent(DiagramElement value);

	/**
	 * Returns the value of the '<em><b>Semantic Child</b></em>' reference list. The list contents
	 * are of type {@link org.eclipse.papyrus.conversion.di2.DiagramElement}. It is
	 * bidirectional and its opposite is '
	 * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticParent
	 * <em>Semantic Parent</em>}'. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Semantic Child</em>' reference list isn't clear, there really
	 * should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @return the value of the '<em>Semantic Child</em>' reference list.
	 * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_SemanticChild()
	 * @see org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticParent
	 * @model opposite="semanticParent"
	 * @generated
	 */
	EList<DiagramElement> getSemanticChild();

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @model keyDataType="org.eclipse.uml2.uml.String" annotation="http://www.eclipse.org/emf/2002/GenModel body='java.util.Iterator it = getProperty().iterator();\r\nwhile (it.hasNext()) {\r\n\tProperty element = (Property) it.next();\r\n\tif(key.equals(element.getKey())) {\r\n\t\treturn element;\r\n\t}\r\n}\r\nreturn null;'"
	 * @generated
	 */
	Property getProperty(String key);

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @model dataType="com.cea.papyrus.diagraminterchange2.di2.String"
	 *        keyDataType="org.eclipse.uml2.uml.String" annotation="http://www.eclipse.org/emf/2002/GenModel body=' if(this.getProperty(key)!=null){\r\n\treturn this.getProperty(key).getValue();}\r\nreturn null;\r\n\t'"
	 * @generated
	 */
	String getPropertyValue(String key);

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> it is used to obtain
	 * the name of the good editpart <!-- end-model-doc -->
	 * 
	 * @model kind="operation" dataType="org.eclipse.uml2.uml.String" annotation="http://www.eclipse.org/emf/2002/GenModel body='return this.getPropertyValue(com.cea.papyrus.diagraminterchange2.di2.PapyrusKeyEnumeration.PAPYRUSEDITPART.getLiteral());'"
	 * @generated
	 */
	String getEditpartName();

} // DiagramElement

Back to the top