| /** |
| * 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.dg; |
| |
| import java.util.Map; |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| import org.eclipse.papyrus.dd.dc.Bounds; |
| |
| /** |
| * <!-- begin-user-doc --> A representation of the model object ' <em><b>Rectangle</b></em>'. <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * Rectangle is a graphical element that defines a rectangular shape with given bounds. A rectangle may be given rounded corners by setting its corner |
| * radius. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.papyrus.dd.dg.Rectangle#getBounds <em>Bounds</em>}</li> |
| * <li>{@link org.eclipse.papyrus.dd.dg.Rectangle#getCornerRadius <em>Corner Radius</em>}</li> |
| * </ul> |
| * |
| * @see org.eclipse.papyrus.dd.dg.DGPackage#getRectangle() |
| * @model |
| * @generated |
| */ |
| public interface Rectangle extends GraphicalElement { |
| |
| /** |
| * Returns the value of the '<em><b>Bounds</b></em>' containment reference. |
| * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> |
| * the bounds of the rectangle in the x-y coordinate system. <!-- |
| * end-model-doc --> |
| * |
| * @return the value of the '<em>Bounds</em>' containment reference. |
| * @see #setBounds(Bounds) |
| * @see org.eclipse.papyrus.dd.dg.DGPackage#getRectangle_Bounds() |
| * @model containment="true" required="true" ordered="false" |
| * @generated |
| */ |
| Bounds getBounds(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.papyrus.dd.dg.Rectangle#getBounds <em>Bounds</em>}' containment reference. |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @param value |
| * the new value of the '<em>Bounds</em>' containment reference. |
| * @see #getBounds() |
| * @generated |
| */ |
| void setBounds(Bounds value); |
| |
| /** |
| * Returns the value of the '<em><b>Corner Radius</b></em>' attribute. The |
| * default value is <code>"0"</code>. <!-- begin-user-doc --> <!-- |
| * end-user-doc --> <!-- begin-model-doc --> a radius for the rectangle's |
| * rounded corners. When the radius is 0, the rectangle is drawn with sharp |
| * corners. <!-- end-model-doc --> |
| * |
| * @return the value of the '<em>Corner Radius</em>' attribute. |
| * @see #isSetCornerRadius() |
| * @see #unsetCornerRadius() |
| * @see #setCornerRadius(double) |
| * @see org.eclipse.papyrus.dd.dg.DGPackage#getRectangle_CornerRadius() |
| * @model default="0" unsettable="true" |
| * dataType="org.eclipse.papyrus.dd.dc.Real" ordered="false" |
| * @generated |
| */ |
| double getCornerRadius(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.papyrus.dd.dg.Rectangle#getCornerRadius <em>Corner Radius</em>}' attribute. |
| * <!-- begin-user-doc --> <!-- |
| * end-user-doc --> |
| * |
| * @param value |
| * the new value of the '<em>Corner Radius</em>' attribute. |
| * @see #isSetCornerRadius() |
| * @see #unsetCornerRadius() |
| * @see #getCornerRadius() |
| * @generated |
| */ |
| void setCornerRadius(double value); |
| |
| /** |
| * Unsets the value of the '{@link org.eclipse.papyrus.dd.dg.Rectangle#getCornerRadius <em>Corner Radius</em>}' attribute. |
| * <!-- begin-user-doc --> <!-- |
| * end-user-doc --> |
| * |
| * @see #isSetCornerRadius() |
| * @see #getCornerRadius() |
| * @see #setCornerRadius(double) |
| * @generated |
| */ |
| void unsetCornerRadius(); |
| |
| /** |
| * Returns whether the value of the '{@link org.eclipse.papyrus.dd.dg.Rectangle#getCornerRadius <em>Corner Radius</em>}' attribute is set. |
| * <!-- begin-user-doc --> <!-- |
| * end-user-doc --> |
| * |
| * @return whether the value of the '<em>Corner Radius</em>' attribute is set. |
| * @see #unsetCornerRadius() |
| * @see #getCornerRadius() |
| * @see #setCornerRadius(double) |
| * @generated |
| */ |
| boolean isSetCornerRadius(); |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> |
| * |
| * @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='cornerRadius >= 0'" |
| * @generated |
| */ |
| boolean nonNegativeCornerRadius(DiagnosticChain diagnostics, Map<Object, Object> context); |
| } // Rectangle |