blob: 551ec51a66f1f8ad1a38a2acaa329156765aa47c (
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
|
/**
* Copyright (c) 2014 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* CEA LIST - Initial API and implementation
*/
package org.eclipse.papyrus.dd.dc;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc --> A representation of the model object '
* <em><b>Dimension</b></em>'. <!-- end-user-doc -->
*
* <!-- begin-model-doc --> Dimension specifies two lengths (width and height)
* along the x and y axes in some x-y coordinate system. <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.papyrus.dd.dc.Dimension#getWidth <em>Width</em>}</li>
* <li>{@link org.eclipse.papyrus.dd.dc.Dimension#getHeight <em>Height</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.papyrus.dd.dc.DCPackage#getDimension()
* @model
* @generated
*/
public interface Dimension extends EObject {
/**
* Returns the value of the '<em><b>Width</b></em>' attribute. <!--
* begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> a real
* number (>=0) that represents a length along the x-axis. <!--
* end-model-doc -->
*
* @return the value of the '<em>Width</em>' attribute.
* @see #setWidth(double)
* @see org.eclipse.papyrus.dd.dc.DCPackage#getDimension_Width()
* @model dataType="org.eclipse.papyrus.dd.dc.Real" required="true"
* ordered="false"
* @generated
*/
double getWidth();
/**
* Sets the value of the '
* {@link org.eclipse.papyrus.dd.dc.Dimension#getWidth <em>Width</em>}'
* attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Width</em>' attribute.
* @see #getWidth()
* @generated
*/
void setWidth(double value);
/**
* Returns the value of the '<em><b>Height</b></em>' attribute. <!--
* begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> a real
* number (>=0) that represents a length along the y-axis. <!--
* end-model-doc -->
*
* @return the value of the '<em>Height</em>' attribute.
* @see #setHeight(double)
* @see org.eclipse.papyrus.dd.dc.DCPackage#getDimension_Height()
* @model dataType="org.eclipse.papyrus.dd.dc.Real" required="true"
* ordered="false"
* @generated
*/
double getHeight();
/**
* Sets the value of the '
* {@link org.eclipse.papyrus.dd.dc.Dimension#getHeight <em>Height</em>}'
* attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Height</em>' attribute.
* @see #getHeight()
* @generated
*/
void setHeight(double value);
/**
* <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
* the width and height of a dimension cannot be negative
*
* @param diagnostics
* The chain of diagnostics to which problems are to be appended.
* @param context
* The cache of context-specific information. <!-- end-model-doc
* -->
* @model annotation=
* "http://www.eclipse.org/emf/2002/Ecore/OCL body='width >= 0 and height >=0'"
* @generated
*/
boolean nonNegativeDimension(DiagnosticChain diagnostics,
Map<Object, Object> context);
} // Dimension
|