org.eclipse.graphiti.mm.algorithms.impl
Class GraphicsAlgorithmImpl

java.lang.Object
  extended by EObjectImpl
      extended by org.eclipse.graphiti.mm.impl.PropertyContainerImpl
          extended by org.eclipse.graphiti.mm.impl.GraphicsAlgorithmContainerImpl
              extended by org.eclipse.graphiti.mm.algorithms.impl.GraphicsAlgorithmImpl
All Implemented Interfaces:
GraphicsAlgorithm, AbstractStyle, GraphicsAlgorithmContainer, PropertyContainer
Direct Known Subclasses:
AbstractTextImpl, EllipseImpl, ImageImpl, PlatformGraphicsAlgorithmImpl, PolylineImpl, RectangleImpl, RoundedRectangleImpl

public abstract class GraphicsAlgorithmImpl
extends GraphicsAlgorithmContainerImpl
implements GraphicsAlgorithm

An implementation of the model object 'Graphics Algorithm'.

The following features are implemented:


Field Summary
protected  Color background
          The cached value of the 'Background' reference.
protected  java.lang.Boolean filled
          The cached value of the 'Filled' attribute.
protected static java.lang.Boolean FILLED_EDEFAULT
          The default value of the 'Filled' attribute.
protected  Color foreground
          The cached value of the 'Foreground' reference.
protected   graphicsAlgorithmChildren
          The cached value of the 'Graphics Algorithm Children' containment reference list.
protected  int height
          The cached value of the 'Height' attribute.
protected static int HEIGHT_EDEFAULT
          The default value of the 'Height' attribute.
protected static LineStyle LINE_STYLE_EDEFAULT
          The default value of the 'Line Style' attribute.
protected static java.lang.Boolean LINE_VISIBLE_EDEFAULT
          The default value of the 'Line Visible' attribute.
protected static java.lang.Integer LINE_WIDTH_EDEFAULT
          The default value of the 'Line Width' attribute.
protected  LineStyle lineStyle
          The cached value of the 'Line Style' attribute.
protected  java.lang.Boolean lineVisible
          The cached value of the 'Line Visible' attribute.
protected  java.lang.Integer lineWidth
          The cached value of the 'Line Width' attribute.
protected  RenderingStyle renderingStyle
          The cached value of the 'Rendering Style' containment reference.
protected  Style style
          The cached value of the 'Style' reference.
protected  java.lang.Double transparency
          The cached value of the 'Transparency' attribute.
protected static java.lang.Double TRANSPARENCY_EDEFAULT
          The default value of the 'Transparency' attribute.
protected  int width
          The cached value of the 'Width' attribute.
protected static int WIDTH_EDEFAULT
          The default value of the 'Width' attribute.
protected  int x
          The cached value of the 'X' attribute.
protected static int X_EDEFAULT
          The default value of the 'X' attribute.
protected  int y
          The cached value of the 'Y' attribute.
protected static int Y_EDEFAULT
          The default value of the 'Y' attribute.
 
Fields inherited from class org.eclipse.graphiti.mm.impl.PropertyContainerImpl
properties
 
Constructor Summary
protected GraphicsAlgorithmImpl()
           
 
Method Summary
 Color basicGetBackground()
           
 Color basicGetForeground()
           
 GraphicsAlgorithm basicGetParentGraphicsAlgorithm()
           
 PictogramElement basicGetPictogramElement()
           
 RenderingStyle basicGetRenderingStyle()
           
 Style basicGetStyle()
           
 NotificationChain basicSetParentGraphicsAlgorithm(GraphicsAlgorithm newParentGraphicsAlgorithm, NotificationChain msgs)
           
 NotificationChain basicSetPictogramElement(PictogramElement newPictogramElement, NotificationChain msgs)
           
 NotificationChain basicSetRenderingStyle(RenderingStyle newRenderingStyle, NotificationChain msgs)
           
 int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
           
 NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
           
 int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 Color getBackground()
           
 java.lang.Boolean getFilled()
           
 Color getForeground()
           
  getGraphicsAlgorithmChildren()
           
 int getHeight()
           
 LineStyle getLineStyle()
           
 java.lang.Boolean getLineVisible()
           
 java.lang.Integer getLineWidth()
           
 GraphicsAlgorithm getParentGraphicsAlgorithm()
           
 PictogramElement getPictogramElement()
           
 RenderingStyle getRenderingStyle()
           
 Style getStyle()
           
 java.lang.Double getTransparency()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 void setBackground(Color newBackground)
           
 void setFilled(java.lang.Boolean newFilled)
           
 void setForeground(Color newForeground)
           
 void setHeight(int newHeight)
           
 void setLineStyle(LineStyle newLineStyle)
           
 void setLineVisible(java.lang.Boolean newLineVisible)
           
 void setLineWidth(java.lang.Integer newLineWidth)
           
 void setParentGraphicsAlgorithm(GraphicsAlgorithm newParentGraphicsAlgorithm)
           
 void setPictogramElement(PictogramElement newPictogramElement)
           
 void setRenderingStyle(RenderingStyle newRenderingStyle)
           
 void setStyle(Style newStyle)
           
 void setTransparency(java.lang.Double newTransparency)
           
 void setWidth(int newWidth)
           
 void setX(int newX)
           
 void setY(int newY)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.graphiti.mm.impl.PropertyContainerImpl
getProperties
 
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.PropertyContainer
getProperties
 

Field Detail

background

protected Color background
The cached value of the 'Background' reference.

See Also:
getBackground()

foreground

protected Color foreground
The cached value of the 'Foreground' reference.

See Also:
getForeground()

LINE_WIDTH_EDEFAULT

protected static final java.lang.Integer LINE_WIDTH_EDEFAULT
The default value of the 'Line Width' attribute.

See Also:
getLineWidth()

lineWidth

protected java.lang.Integer lineWidth
The cached value of the 'Line Width' attribute.

See Also:
getLineWidth()

LINE_STYLE_EDEFAULT

protected static final LineStyle LINE_STYLE_EDEFAULT
The default value of the 'Line Style' attribute.

See Also:
getLineStyle()

lineStyle

protected LineStyle lineStyle
The cached value of the 'Line Style' attribute.

See Also:
getLineStyle()

FILLED_EDEFAULT

protected static final java.lang.Boolean FILLED_EDEFAULT
The default value of the 'Filled' attribute.

See Also:
getFilled()

filled

protected java.lang.Boolean filled
The cached value of the 'Filled' attribute.

See Also:
getFilled()

LINE_VISIBLE_EDEFAULT

protected static final java.lang.Boolean LINE_VISIBLE_EDEFAULT
The default value of the 'Line Visible' attribute.

See Also:
getLineVisible()

lineVisible

protected java.lang.Boolean lineVisible
The cached value of the 'Line Visible' attribute.

See Also:
getLineVisible()

renderingStyle

protected RenderingStyle renderingStyle
The cached value of the 'Rendering Style' containment reference.

See Also:
getRenderingStyle()

TRANSPARENCY_EDEFAULT

protected static final java.lang.Double TRANSPARENCY_EDEFAULT
The default value of the 'Transparency' attribute.

See Also:
getTransparency()

transparency

protected java.lang.Double transparency
The cached value of the 'Transparency' attribute.

See Also:
getTransparency()

graphicsAlgorithmChildren

protected  graphicsAlgorithmChildren
The cached value of the 'Graphics Algorithm Children' containment reference list.

See Also:
getGraphicsAlgorithmChildren()

WIDTH_EDEFAULT

protected static final int WIDTH_EDEFAULT
The default value of the 'Width' attribute.

See Also:
getWidth(), Constant Field Values

width

protected int width
The cached value of the 'Width' attribute.

See Also:
getWidth()

HEIGHT_EDEFAULT

protected static final int HEIGHT_EDEFAULT
The default value of the 'Height' attribute.

See Also:
getHeight(), Constant Field Values

height

protected int height
The cached value of the 'Height' attribute.

See Also:
getHeight()

X_EDEFAULT

protected static final int X_EDEFAULT
The default value of the 'X' attribute.

See Also:
getX(), Constant Field Values

x

protected int x
The cached value of the 'X' attribute.

See Also:
getX()

Y_EDEFAULT

protected static final int Y_EDEFAULT
The default value of the 'Y' attribute.

See Also:
getY(), Constant Field Values

y

protected int y
The cached value of the 'Y' attribute.

See Also:
getY()

style

protected Style style
The cached value of the 'Style' reference.

See Also:
getStyle()
Constructor Detail

GraphicsAlgorithmImpl

protected GraphicsAlgorithmImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class GraphicsAlgorithmContainerImpl

getBackground

public Color getBackground()

Specified by:
getBackground in interface AbstractStyle
Returns:
the value of the 'Background' reference.
See Also:
AbstractStyle.setBackground(Color), StylesPackage.getAbstractStyle_Background()

basicGetBackground

public Color basicGetBackground()


setBackground

public void setBackground(Color newBackground)

Specified by:
setBackground in interface AbstractStyle
Parameters:
newBackground - the new value of the 'Background' reference.
See Also:
AbstractStyle.getBackground()

getForeground

public Color getForeground()

Specified by:
getForeground in interface AbstractStyle
Returns:
the value of the 'Foreground' reference.
See Also:
AbstractStyle.setForeground(Color), StylesPackage.getAbstractStyle_Foreground()

basicGetForeground

public Color basicGetForeground()


setForeground

public void setForeground(Color newForeground)

Specified by:
setForeground in interface AbstractStyle
Parameters:
newForeground - the new value of the 'Foreground' reference.
See Also:
AbstractStyle.getForeground()

getLineWidth

public java.lang.Integer getLineWidth()

Specified by:
getLineWidth in interface AbstractStyle
Returns:
the value of the 'Line Width' attribute.
See Also:
AbstractStyle.setLineWidth(Integer), StylesPackage.getAbstractStyle_LineWidth()

setLineWidth

public void setLineWidth(java.lang.Integer newLineWidth)

Specified by:
setLineWidth in interface AbstractStyle
Parameters:
newLineWidth - the new value of the 'Line Width' attribute.
See Also:
AbstractStyle.getLineWidth()

getLineStyle

public LineStyle getLineStyle()

Specified by:
getLineStyle in interface AbstractStyle
Returns:
the value of the 'Line Style' attribute.
See Also:
LineStyle, AbstractStyle.setLineStyle(LineStyle), StylesPackage.getAbstractStyle_LineStyle()

setLineStyle

public void setLineStyle(LineStyle newLineStyle)

Specified by:
setLineStyle in interface AbstractStyle
Parameters:
newLineStyle - the new value of the 'Line Style' attribute.
See Also:
LineStyle, AbstractStyle.getLineStyle()

getFilled

public java.lang.Boolean getFilled()

Specified by:
getFilled in interface AbstractStyle
Returns:
the value of the 'Filled' attribute.
See Also:
AbstractStyle.setFilled(Boolean), StylesPackage.getAbstractStyle_Filled()

setFilled

public void setFilled(java.lang.Boolean newFilled)

Specified by:
setFilled in interface AbstractStyle
Parameters:
newFilled - the new value of the 'Filled' attribute.
See Also:
AbstractStyle.getFilled()

getLineVisible

public java.lang.Boolean getLineVisible()

Specified by:
getLineVisible in interface AbstractStyle
Returns:
the value of the 'Line Visible' attribute.
See Also:
AbstractStyle.setLineVisible(Boolean), StylesPackage.getAbstractStyle_LineVisible()

setLineVisible

public void setLineVisible(java.lang.Boolean newLineVisible)

Specified by:
setLineVisible in interface AbstractStyle
Parameters:
newLineVisible - the new value of the 'Line Visible' attribute.
See Also:
AbstractStyle.getLineVisible()

getRenderingStyle

public RenderingStyle getRenderingStyle()

Specified by:
getRenderingStyle in interface AbstractStyle
Returns:
the value of the 'Rendering Style' containment reference.
See Also:
AbstractStyle.setRenderingStyle(RenderingStyle), StylesPackage.getAbstractStyle_RenderingStyle()

basicGetRenderingStyle

public RenderingStyle basicGetRenderingStyle()


basicSetRenderingStyle

public NotificationChain basicSetRenderingStyle(RenderingStyle newRenderingStyle,
                                                NotificationChain msgs)


setRenderingStyle

public void setRenderingStyle(RenderingStyle newRenderingStyle)

Specified by:
setRenderingStyle in interface AbstractStyle
Parameters:
newRenderingStyle - the new value of the 'Rendering Style' containment reference.
See Also:
AbstractStyle.getRenderingStyle()

getTransparency

public java.lang.Double getTransparency()

Specified by:
getTransparency in interface AbstractStyle
Returns:
the value of the 'Transparency' attribute.
See Also:
AbstractStyle.setTransparency(Double), StylesPackage.getAbstractStyle_Transparency()

setTransparency

public void setTransparency(java.lang.Double newTransparency)

Specified by:
setTransparency in interface AbstractStyle
Parameters:
newTransparency - the new value of the 'Transparency' attribute.
See Also:
AbstractStyle.getTransparency()

getGraphicsAlgorithmChildren

public  getGraphicsAlgorithmChildren()

Specified by:
getGraphicsAlgorithmChildren in interface GraphicsAlgorithm
Returns:
the value of the 'Graphics Algorithm Children' containment reference list.
See Also:
AlgorithmsPackage.getGraphicsAlgorithm_GraphicsAlgorithmChildren(), GraphicsAlgorithm.getParentGraphicsAlgorithm()

getParentGraphicsAlgorithm

public GraphicsAlgorithm getParentGraphicsAlgorithm()

Specified by:
getParentGraphicsAlgorithm in interface GraphicsAlgorithm
Returns:
the value of the 'Parent Graphics Algorithm' container reference.
See Also:
GraphicsAlgorithm.setParentGraphicsAlgorithm(GraphicsAlgorithm), AlgorithmsPackage.getGraphicsAlgorithm_ParentGraphicsAlgorithm(), GraphicsAlgorithm.getGraphicsAlgorithmChildren()

basicGetParentGraphicsAlgorithm

public GraphicsAlgorithm basicGetParentGraphicsAlgorithm()


basicSetParentGraphicsAlgorithm

public NotificationChain basicSetParentGraphicsAlgorithm(GraphicsAlgorithm newParentGraphicsAlgorithm,
                                                         NotificationChain msgs)


setParentGraphicsAlgorithm

public void setParentGraphicsAlgorithm(GraphicsAlgorithm newParentGraphicsAlgorithm)

Specified by:
setParentGraphicsAlgorithm in interface GraphicsAlgorithm
Parameters:
newParentGraphicsAlgorithm - the new value of the 'Parent Graphics Algorithm' container reference.
See Also:
GraphicsAlgorithm.getParentGraphicsAlgorithm()

getPictogramElement

public PictogramElement getPictogramElement()

Specified by:
getPictogramElement in interface GraphicsAlgorithm
Returns:
the value of the 'Pictogram Element' container reference.
See Also:
GraphicsAlgorithm.setPictogramElement(PictogramElement), AlgorithmsPackage.getGraphicsAlgorithm_PictogramElement(), PictogramElement.getGraphicsAlgorithm()

basicGetPictogramElement

public PictogramElement basicGetPictogramElement()


basicSetPictogramElement

public NotificationChain basicSetPictogramElement(PictogramElement newPictogramElement,
                                                  NotificationChain msgs)


setPictogramElement

public void setPictogramElement(PictogramElement newPictogramElement)

Specified by:
setPictogramElement in interface GraphicsAlgorithm
Parameters:
newPictogramElement - the new value of the 'Pictogram Element' container reference.
See Also:
GraphicsAlgorithm.getPictogramElement()

getWidth

public int getWidth()

Specified by:
getWidth in interface GraphicsAlgorithm
Returns:
the value of the 'Width' attribute.
See Also:
GraphicsAlgorithm.setWidth(int), AlgorithmsPackage.getGraphicsAlgorithm_Width()

setWidth

public void setWidth(int newWidth)

Specified by:
setWidth in interface GraphicsAlgorithm
Parameters:
newWidth - the new value of the 'Width' attribute.
See Also:
GraphicsAlgorithm.getWidth()

getHeight

public int getHeight()

Specified by:
getHeight in interface GraphicsAlgorithm
Returns:
the value of the 'Height' attribute.
See Also:
GraphicsAlgorithm.setHeight(int), AlgorithmsPackage.getGraphicsAlgorithm_Height()

setHeight

public void setHeight(int newHeight)

Specified by:
setHeight in interface GraphicsAlgorithm
Parameters:
newHeight - the new value of the 'Height' attribute.
See Also:
GraphicsAlgorithm.getHeight()

getX

public int getX()

Specified by:
getX in interface GraphicsAlgorithm
Returns:
the value of the 'X' attribute.
See Also:
GraphicsAlgorithm.setX(int), AlgorithmsPackage.getGraphicsAlgorithm_X()

setX

public void setX(int newX)

Specified by:
setX in interface GraphicsAlgorithm
Parameters:
newX - the new value of the 'X' attribute.
See Also:
GraphicsAlgorithm.getX()

getY

public int getY()

Specified by:
getY in interface GraphicsAlgorithm
Returns:
the value of the 'Y' attribute.
See Also:
GraphicsAlgorithm.setY(int), AlgorithmsPackage.getGraphicsAlgorithm_Y()

setY

public void setY(int newY)

Specified by:
setY in interface GraphicsAlgorithm
Parameters:
newY - the new value of the 'Y' attribute.
See Also:
GraphicsAlgorithm.getY()

getStyle

public Style getStyle()

Specified by:
getStyle in interface GraphicsAlgorithm
Returns:
the value of the 'Style' reference.
See Also:
GraphicsAlgorithm.setStyle(Style), AlgorithmsPackage.getGraphicsAlgorithm_Style()

basicGetStyle

public Style basicGetStyle()


setStyle

public void setStyle(Style newStyle)

Specified by:
setStyle in interface GraphicsAlgorithm
Parameters:
newStyle - the new value of the 'Style' reference.
See Also:
GraphicsAlgorithm.getStyle()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)


eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class PropertyContainerImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)


eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Overrides:
eGet in class PropertyContainerImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Overrides:
eSet in class PropertyContainerImpl

eUnset

public void eUnset(int featureID)

Overrides:
eUnset in class PropertyContainerImpl

eIsSet

public boolean eIsSet(int featureID)

Overrides:
eIsSet in class PropertyContainerImpl

eBaseStructuralFeatureID

public int eBaseStructuralFeatureID(int derivedFeatureID,
                                    java.lang.Class<?> baseClass)


eDerivedStructuralFeatureID

public int eDerivedStructuralFeatureID(int baseFeatureID,
                                       java.lang.Class<?> baseClass)


toString

public java.lang.String toString()



Copyright (c) SAP AG 2005, 2010.