/** * * * * $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; /** * A representation of the model object 'Diagram Element'. * * *

* The following features are supported: *

*

* * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement() * @model * @generated */ public interface DiagramElement extends EObject { /** * Returns the value of the 'Property' containment reference list. The list * contents are of type {@link org.eclipse.papyrus.conversion.di2.Property}. *

* If the meaning of the 'Property' containment reference list isn't clear, there * really should be more of a description here... *

* * * @return the value of the 'Property' containment reference list. * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_Property() * @model containment="true" * @generated */ EList getProperty(); /** * Returns the value of the 'Is Visible' attribute. *

* If the meaning of the 'Is Visible' attribute isn't clear, there really should be * more of a description here... *

* * * @return the value of the 'Is Visible' 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 * Is Visible}' attribute. * * @param value * the new value of the 'Is Visible' attribute. * @see #isIsVisible() * @generated */ void setIsVisible(boolean value); /** * Returns the value of the 'Reference' reference list. The list contents are of * type {@link org.eclipse.papyrus.conversion.di2.Reference}. *

* If the meaning of the 'Reference' reference list isn't clear, there really should be * more of a description here... *

* * * @return the value of the 'Reference' reference list. * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_Reference() * @model * @generated */ EList getReference(); /** * Returns the value of the 'Container' container reference. It is bidirectional * and its opposite is ' * {@link org.eclipse.papyrus.conversion.di2.GraphElement#getContained Contained} * '. *

* If the meaning of the 'Container' container reference isn't clear, there really * should be more of a description here... *

* * * @return the value of the 'Container' 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 * Container}' container reference. * * @param value * the new value of the 'Container' container reference. * @see #getContainer() * @generated */ void setContainer(GraphElement value); /** * Returns the value of the 'Font Family' attribute. The default value is * "". *

* If the meaning of the 'Font Family' attribute isn't clear, there really should be * more of a description here... *

* * * @return the value of the 'Font Family' 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 * Font Family}' attribute. * * @param value * the new value of the 'Font Family' attribute. * @see #getFontFamily() * @generated */ void setFontFamily(String value); /** * Returns the value of the 'Font Size' attribute. The default value is * "10". *

* If the meaning of the 'Font Size' attribute isn't clear, there really should be more * of a description here... *

* * * @return the value of the 'Font Size' 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 Font Size} * ' attribute. * * @param value * the new value of the 'Font Size' attribute. * @see #getFontSize() * @generated */ void setFontSize(int value); /** * Returns the value of the 'Line Style' attribute. The default value is * "". *

* If the meaning of the 'Line Style' attribute isn't clear, there really should be * more of a description here... *

* * * @return the value of the 'Line Style' 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 * Line Style}' attribute. * * @param value * the new value of the 'Line Style' attribute. * @see #getLineStyle() * @generated */ void setLineStyle(String value); /** * Returns the value of the 'Line Thickness' attribute. The default value is * "1". *

* If the meaning of the 'Line Thickness' attribute isn't clear, there really should be * more of a description here... *

* * * @return the value of the 'Line Thickness' 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 * Line Thickness}' attribute. * * @param value * the new value of the 'Line Thickness' attribute. * @see #getLineThickness() * @generated */ void setLineThickness(int value); /** * Returns the value of the 'Font Color' attribute. *

* If the meaning of the 'Font Color' attribute isn't clear, there really should be * more of a description here... *

* * * @return the value of the 'Font Color' 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 * Font Color}' attribute. * * @param value * the new value of the 'Font Color' attribute. * @see #getFontColor() * @generated */ void setFontColor(RGB value); /** * Returns the value of the 'Foreground Color' attribute. *

* If the meaning of the 'Foreground Color' attribute isn't clear, there really should * be more of a description here... *

* * * @return the value of the 'Foreground Color' 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 * Foreground Color}' attribute. * * @param value * the new value of the 'Foreground Color' attribute. * @see #getForegroundColor() * @generated */ void setForegroundColor(RGB value); /** * Returns the value of the 'Background Color' attribute. *

* If the meaning of the 'Background Color' attribute isn't clear, there really should * be more of a description here... *

* * * @return the value of the 'Background Color' 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 * Background Color}' attribute. * * @param value * the new value of the 'Background Color' attribute. * @see #getBackgroundColor() * @generated */ void setBackgroundColor(RGB value); /** * Returns the value of the 'Border Color' attribute. *

* If the meaning of the 'Border Color' attribute isn't clear, there really should be * more of a description here... *

* * * @return the value of the 'Border Color' 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 * Border Color}' attribute. * * @param value * the new value of the 'Border Color' attribute. * @see #getBorderColor() * @generated */ void setBorderColor(RGB value); /** * Returns the value of the 'Translucent' attribute. *

* If the meaning of the 'Translucent' attribute isn't clear, there really should be * more of a description here... *

* * * @return the value of the 'Translucent' 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 * Translucent}' attribute. * * @param value * the new value of the 'Translucent' attribute. * @see #isTranslucent() * @generated */ void setTranslucent(boolean value); /** * Returns the value of the 'Semantic Parent' reference. It is bidirectional and * its opposite is ' * {@link org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticChild * Semantic Child}'. *

* If the meaning of the 'Semantic Parent' reference isn't clear, there really should * be more of a description here... *

* * * @return the value of the 'Semantic Parent' 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 * Semantic Parent}' reference. * * @param value * the new value of the 'Semantic Parent' reference. * @see #getSemanticParent() * @generated */ void setSemanticParent(DiagramElement value); /** * Returns the value of the 'Semantic Child' 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 * Semantic Parent}'. *

* If the meaning of the 'Semantic Child' reference list isn't clear, there really * should be more of a description here... *

* * * @return the value of the 'Semantic Child' reference list. * @see org.eclipse.papyrus.conversion.di2.Di2Package#getDiagramElement_SemanticChild() * @see org.eclipse.papyrus.conversion.di2.DiagramElement#getSemanticParent * @model opposite="semanticParent" * @generated */ EList getSemanticChild(); /** * * * @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); /** * * * @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); /** * it is used to obtain * the name of the good editpart * * @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