| /****************************************************************************** |
| * Copyright (c) 2004, 2006 IBM Corporation and others. |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| ****************************************************************************/ |
| |
| package org.eclipse.gmf.runtime.notation; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| /** |
| * <!-- begin-user-doc --> A representation of the model object |
| * '<em><b>Node</b></em>'. |
| * <p> |
| * A node is a view that can composed and laid out in a container view. |
| * </p> |
| * <!-- end-user-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.gmf.runtime.notation.Node#getLayoutConstraint |
| * <em>Layout Constraint</em>}</li> |
| * </ul> |
| * |
| * @see org.eclipse.gmf.runtime.notation.NotationPackage#getNode() |
| * @model |
| * @generated |
| */ |
| /* |
| * @canBeSeenBy %partners |
| */ |
| public interface Node extends View { |
| /** |
| * Returns the value of the '<em><b>Layout Constraint</b></em>' containment |
| * reference. <!-- begin-user-doc --> |
| * <p> |
| * Layout constraints are used by layout managers to properly set the bounds of |
| * the node's visuals |
| * </p> |
| * <!-- end-user-doc --> |
| * |
| * @return the value of the '<em>Layout Constraint</em>' containment reference. |
| * @see #setLayoutConstraint(LayoutConstraint) |
| * @see org.eclipse.gmf.runtime.notation.NotationPackage#getNode_LayoutConstraint() |
| * @model containment="true" |
| * @generated |
| */ |
| LayoutConstraint getLayoutConstraint(); |
| |
| /** |
| * Sets the value of the |
| * '{@link org.eclipse.gmf.runtime.notation.Node#getLayoutConstraint <em>Layout |
| * Constraint</em>}' containment reference. <!-- begin-user-doc --> |
| * <p> |
| * Layout constraints are used by layout managers to properly set the bounds of |
| * the node's visuals |
| * </p> |
| * <!-- end-user-doc --> |
| * |
| * @param value the new value of the '<em>Layout Constraint</em>' containment |
| * reference. |
| * @see #getLayoutConstraint() |
| * @generated |
| */ |
| void setLayoutConstraint(LayoutConstraint value); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <p> |
| * A utility method to create a <code>LayoutConstraint</code> object from the |
| * given <code>EClass</code> and then sets the node's <em>LayoutConstraint</em> |
| * property to the new object. |
| * </p> |
| * |
| * @param eClass the <code>EClass</code> to be used in creating the |
| * <code>LayoutConstraint</code> object <!-- end-user-doc --> |
| * @model |
| * @generated |
| */ |
| LayoutConstraint createLayoutConstraint(EClass eClass); |
| |
| } // Node |