Class DiagramImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.EObjectImpl
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject,GraphicsAlgorithmContainer,AnchorContainer,ContainerShape,Diagram,PictogramElement,Shape,PropertyContainer,StyleContainer
public class DiagramImpl extends ContainerShapeImpl implements Diagram
An implementation of the model object 'Diagram'.The following features are implemented:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.emf.common.util.EList<Color>colorsThe cached value of the 'Colors' containment reference list.protected org.eclipse.emf.common.util.EList<Connection>connectionsThe cached value of the 'Connections' containment reference list.protected static java.lang.StringDIAGRAM_TYPE_ID_EDEFAULTThe default value of the 'Diagram Type Id' attribute.protected java.lang.StringdiagramTypeIdThe cached value of the 'Diagram Type Id' attribute.protected org.eclipse.emf.common.util.EList<Font>fontsThe cached value of the 'Fonts' containment reference list.protected static intGRID_UNIT_EDEFAULTThe default value of the 'Grid Unit' attribute.protected intgridUnitThe cached value of the 'Grid Unit' attribute.protected java.lang.StringnameThe cached value of the 'Name' attribute.protected static java.lang.StringNAME_EDEFAULTThe default value of the 'Name' attribute.protected org.eclipse.emf.common.util.EList<PictogramLink>pictogramLinksThe cached value of the 'Pictogram Links' reference list.protected static booleanSHOW_GUIDES_EDEFAULTDeprecated.This attribute simply exists because of compatibility (after removing it old diagrams would not be readable any more).protected booleanshowGuidesDeprecated.This attribute simply exists because of compatibility (after removing it old diagrams would not be readable any more).protected static booleanSNAP_TO_GRID_EDEFAULTThe default value of the 'Snap To Grid' attribute.protected booleansnapToGridThe cached value of the 'Snap To Grid' attribute.protected org.eclipse.emf.common.util.EList<Style>stylesThe cached value of the 'Styles' containment reference list.protected java.lang.StringversionThe cached value of the 'Version' attribute.protected static java.lang.StringVERSION_EDEFAULTThe default value of the 'Version' attribute.protected static intVERTICAL_GRID_UNIT_EDEFAULTThe default value of the 'Vertical Grid Unit' attribute.protected intverticalGridUnitThe cached value of the 'Vertical Grid Unit' attribute.-
Fields inherited from class org.eclipse.graphiti.mm.pictograms.impl.ContainerShapeImpl
children
-
Fields inherited from class org.eclipse.graphiti.mm.pictograms.impl.AnchorContainerImpl
anchors
-
Fields inherited from class org.eclipse.graphiti.mm.pictograms.impl.PictogramElementImpl
active, ACTIVE_EDEFAULT, graphicsAlgorithm, link, visible, VISIBLE_EDEFAULT
-
Fields inherited from class org.eclipse.graphiti.mm.impl.PropertyContainerImpl
properties
-
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDiagramImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description inteBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)inteDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)java.lang.ObjecteGet(int featureID, boolean resolve, boolean coreType)org.eclipse.emf.common.notify.NotificationChaineInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChaineInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)booleaneIsSet(int featureID)voideSet(int featureID, java.lang.Object newValue)protected org.eclipse.emf.ecore.EClasseStaticClass()voideUnset(int featureID)org.eclipse.emf.common.util.EList<Color>getColors()org.eclipse.emf.common.util.EList<Connection>getConnections()java.lang.StringgetDiagramTypeId()org.eclipse.emf.common.util.EList<Font>getFonts()intgetGridUnit()java.lang.StringgetName()org.eclipse.emf.common.util.EList<PictogramLink>getPictogramLinks()org.eclipse.emf.common.util.EList<Style>getStyles()java.lang.StringgetVersion()intgetVerticalGridUnit()booleanisShowGuides()booleanisSnapToGrid()voidsetDiagramTypeId(java.lang.String newDiagramTypeId)voidsetGridUnit(int newGridUnit)voidsetName(java.lang.String newName)voidsetShowGuides(boolean newShowGuides)voidsetSnapToGrid(boolean newSnapToGrid)voidsetVersion(java.lang.String newVersion)voidsetVerticalGridUnit(int newVerticalGridUnit)java.lang.StringtoString()-
Methods inherited from class org.eclipse.graphiti.mm.pictograms.impl.ContainerShapeImpl
getChildren
-
Methods inherited from class org.eclipse.graphiti.mm.pictograms.impl.ShapeImpl
basicGetContainer, basicSetContainer, eBasicRemoveFromContainerFeature, getContainer, setContainer
-
Methods inherited from class org.eclipse.graphiti.mm.pictograms.impl.AnchorContainerImpl
getAnchors
-
Methods inherited from class org.eclipse.graphiti.mm.pictograms.impl.PictogramElementImpl
basicGetGraphicsAlgorithm, basicGetLink, basicSetGraphicsAlgorithm, basicSetLink, getGraphicsAlgorithm, getLink, isActive, isVisible, setActive, setGraphicsAlgorithm, setLink, setVisible
-
Methods inherited from class org.eclipse.graphiti.mm.impl.PropertyContainerImpl
getProperties
-
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.graphiti.mm.pictograms.AnchorContainer
getAnchors
-
Methods inherited from interface org.eclipse.graphiti.mm.pictograms.ContainerShape
getChildren
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface org.eclipse.graphiti.mm.pictograms.PictogramElement
getGraphicsAlgorithm, getLink, isActive, isVisible, setActive, setGraphicsAlgorithm, setLink, setVisible
-
Methods inherited from interface org.eclipse.graphiti.mm.PropertyContainer
getProperties
-
Methods inherited from interface org.eclipse.graphiti.mm.pictograms.Shape
getContainer, setContainer
-
-
-
-
Field Detail
-
styles
protected org.eclipse.emf.common.util.EList<Style> styles
The cached value of the 'Styles' containment reference list.- See Also:
getStyles()
-
GRID_UNIT_EDEFAULT
protected static final int GRID_UNIT_EDEFAULT
The default value of the 'Grid Unit' attribute.- See Also:
getGridUnit(), Constant Field Values
-
gridUnit
protected int gridUnit
The cached value of the 'Grid Unit' attribute.- See Also:
getGridUnit()
-
DIAGRAM_TYPE_ID_EDEFAULT
protected static final java.lang.String DIAGRAM_TYPE_ID_EDEFAULT
The default value of the 'Diagram Type Id' attribute.- See Also:
getDiagramTypeId()
-
diagramTypeId
protected java.lang.String diagramTypeId
The cached value of the 'Diagram Type Id' attribute.- See Also:
getDiagramTypeId()
-
connections
protected org.eclipse.emf.common.util.EList<Connection> connections
The cached value of the 'Connections' containment reference list.- See Also:
getConnections()
-
NAME_EDEFAULT
protected static final java.lang.String NAME_EDEFAULT
The default value of the 'Name' attribute.- See Also:
getName()
-
SNAP_TO_GRID_EDEFAULT
protected static final boolean SNAP_TO_GRID_EDEFAULT
The default value of the 'Snap To Grid' attribute.- See Also:
isSnapToGrid(), Constant Field Values
-
snapToGrid
protected boolean snapToGrid
The cached value of the 'Snap To Grid' attribute.- See Also:
isSnapToGrid()
-
SHOW_GUIDES_EDEFAULT
protected static final boolean SHOW_GUIDES_EDEFAULT
Deprecated.This attribute simply exists because of compatibility (after removing it old diagrams would not be readable any more). It is never evaluated, instead the Graphiti framework queries the tool behaviour provider if guides shall be shown in a diagram editor.
The default value of the 'Show Guides' attribute.- See Also:
isShowGuides(), Constant Field Values
-
showGuides
protected boolean showGuides
Deprecated.This attribute simply exists because of compatibility (after removing it old diagrams would not be readable any more). It is never evaluated, instead the Graphiti framework queries the tool behaviour provider if guides shall be shown in a diagram editor.
The cached value of the 'Show Guides' attribute.- See Also:
isShowGuides()
-
colors
protected org.eclipse.emf.common.util.EList<Color> colors
The cached value of the 'Colors' containment reference list.- See Also:
getColors()
-
fonts
protected org.eclipse.emf.common.util.EList<Font> fonts
The cached value of the 'Fonts' containment reference list.- See Also:
getFonts()
-
pictogramLinks
protected org.eclipse.emf.common.util.EList<PictogramLink> pictogramLinks
The cached value of the 'Pictogram Links' reference list.- See Also:
getPictogramLinks()
-
VERTICAL_GRID_UNIT_EDEFAULT
protected static final int VERTICAL_GRID_UNIT_EDEFAULT
The default value of the 'Vertical Grid Unit' attribute.- See Also:
getVerticalGridUnit(), Constant Field Values
-
verticalGridUnit
protected int verticalGridUnit
The cached value of the 'Vertical Grid Unit' attribute.- See Also:
getVerticalGridUnit()
-
VERSION_EDEFAULT
protected static final java.lang.String VERSION_EDEFAULT
The default value of the 'Version' attribute.- See Also:
getVersion(), Constant Field Values
-
version
protected java.lang.String version
The cached value of the 'Version' attribute.- See Also:
getVersion()
-
-
Method Detail
-
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
- Overrides:
eStaticClassin classContainerShapeImpl
-
getStyles
public org.eclipse.emf.common.util.EList<Style> getStyles()
- Specified by:
getStylesin interfaceStyleContainer- Returns:
- the value of the 'Styles' containment reference list.
- See Also:
MmPackage.getStyleContainer_Styles(),Style.getStyleContainer()
-
getGridUnit
public int getGridUnit()
- Specified by:
getGridUnitin interfaceDiagram- Returns:
- the value of the 'Grid Unit' attribute.
- See Also:
Diagram.setGridUnit(int),PictogramsPackage.getDiagram_GridUnit()
-
setGridUnit
public void setGridUnit(int newGridUnit)
- Specified by:
setGridUnitin interfaceDiagram- Parameters:
newGridUnit- the new value of the 'Grid Unit' attribute.- See Also:
Diagram.getGridUnit()
-
getDiagramTypeId
public java.lang.String getDiagramTypeId()
- Specified by:
getDiagramTypeIdin interfaceDiagram- Returns:
- the value of the 'Diagram Type Id' attribute.
- See Also:
Diagram.setDiagramTypeId(String),PictogramsPackage.getDiagram_DiagramTypeId()
-
setDiagramTypeId
public void setDiagramTypeId(java.lang.String newDiagramTypeId)
- Specified by:
setDiagramTypeIdin interfaceDiagram- Parameters:
newDiagramTypeId- the new value of the 'Diagram Type Id' attribute.- See Also:
Diagram.getDiagramTypeId()
-
getConnections
public org.eclipse.emf.common.util.EList<Connection> getConnections()
- Specified by:
getConnectionsin interfaceDiagram- Returns:
- the value of the 'Connections' containment reference list.
- See Also:
PictogramsPackage.getDiagram_Connections(),Connection.getParent()
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceDiagram- Returns:
- the value of the 'Name' attribute.
- See Also:
Diagram.setName(String),PictogramsPackage.getDiagram_Name()
-
setName
public void setName(java.lang.String newName)
- Specified by:
setNamein interfaceDiagram- Parameters:
newName- the new value of the 'Name' attribute.- See Also:
Diagram.getName()
-
isSnapToGrid
public boolean isSnapToGrid()
- Specified by:
isSnapToGridin interfaceDiagram- Returns:
- the value of the 'Snap To Grid' attribute.
- See Also:
Diagram.setSnapToGrid(boolean),PictogramsPackage.getDiagram_SnapToGrid()
-
setSnapToGrid
public void setSnapToGrid(boolean newSnapToGrid)
- Specified by:
setSnapToGridin interfaceDiagram- Parameters:
newSnapToGrid- the new value of the 'Snap To Grid' attribute.- See Also:
Diagram.isSnapToGrid()
-
isShowGuides
public boolean isShowGuides()
-
setShowGuides
public void setShowGuides(boolean newShowGuides)
-
getColors
public org.eclipse.emf.common.util.EList<Color> getColors()
- Specified by:
getColorsin interfaceDiagram- Returns:
- the value of the 'Colors' containment reference list.
- See Also:
PictogramsPackage.getDiagram_Colors()
-
getFonts
public org.eclipse.emf.common.util.EList<Font> getFonts()
- Specified by:
getFontsin interfaceDiagram- Returns:
- the value of the 'Fonts' containment reference list.
- See Also:
PictogramsPackage.getDiagram_Fonts()
-
getPictogramLinks
public org.eclipse.emf.common.util.EList<PictogramLink> getPictogramLinks()
- Specified by:
getPictogramLinksin interfaceDiagram- Returns:
- the value of the 'Pictogram Links' reference list.
- See Also:
PictogramsPackage.getDiagram_PictogramLinks()
-
getVerticalGridUnit
public int getVerticalGridUnit()
- Specified by:
getVerticalGridUnitin interfaceDiagram- Returns:
- the value of the 'Vertical Grid Unit' attribute.
- See Also:
Diagram.setVerticalGridUnit(int),PictogramsPackage.getDiagram_VerticalGridUnit()
-
setVerticalGridUnit
public void setVerticalGridUnit(int newVerticalGridUnit)
- Specified by:
setVerticalGridUnitin interfaceDiagram- Parameters:
newVerticalGridUnit- the new value of the 'Vertical Grid Unit' attribute.- See Also:
Diagram.getVerticalGridUnit()
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersionin interfaceDiagram- Returns:
- the value of the 'Version' attribute.
- See Also:
PictogramsPackage.getDiagram_Version()
-
setVersion
public void setVersion(java.lang.String newVersion)
-
eInverseAdd
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)- Overrides:
eInverseAddin classContainerShapeImpl
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)- Overrides:
eInverseRemovein classContainerShapeImpl
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)- Specified by:
eGetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eGetin classContainerShapeImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)- Specified by:
eSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eSetin classContainerShapeImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnsetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eUnsetin classContainerShapeImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eIsSetin classContainerShapeImpl
-
eBaseStructuralFeatureID
public int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)- Specified by:
eBaseStructuralFeatureIDin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eBaseStructuralFeatureIDin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eDerivedStructuralFeatureID
public int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)- Specified by:
eDerivedStructuralFeatureIDin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eDerivedStructuralFeatureIDin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classPictogramElementImpl
-
-