org.eclipse.graphiti.mm.algorithms.styles.impl
Class StyleImpl

java.lang.Object
  extended by EObjectImpl
      extended by org.eclipse.graphiti.mm.impl.StyleContainerImpl
          extended by org.eclipse.graphiti.mm.algorithms.styles.impl.StyleImpl
All Implemented Interfaces:
AbstractStyle, Style, StyleContainer

public class StyleImpl
extends StyleContainerImpl
implements Style

An implementation of the model object 'Style'.

The following features are implemented:


Field Summary
protected  java.lang.Integer angle
          The cached value of the 'Angle' attribute.
protected static java.lang.Integer ANGLE_EDEFAULT
          The default value of the 'Angle' attribute.
protected  Color background
          The cached value of the 'Background' reference.
protected  java.lang.String description
          The cached value of the 'Description' attribute.
protected static java.lang.String DESCRIPTION_EDEFAULT
          The default value of the 'Description' attribute.
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  boolean filledESet
          This is true if the Filled attribute has been set.
protected  Font font
          The cached value of the 'Font' reference.
protected  Color foreground
          The cached value of the 'Foreground' reference.
protected static Orientation HORIZONTAL_ALIGNMENT_EDEFAULT
          The default value of the 'Horizontal Alignment' attribute.
protected  Orientation horizontalAlignment
          The cached value of the 'Horizontal Alignment' attribute.
protected  java.lang.String id
          The cached value of the 'Id' attribute.
protected static java.lang.String ID_EDEFAULT
          The default value of the 'Id' 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  boolean lineVisibleESet
          This is true if the Line Visible attribute has been set.
protected  java.lang.Integer lineWidth
          The cached value of the 'Line Width' attribute.
protected  java.lang.Boolean proportional
          The cached value of the 'Proportional' attribute.
protected static java.lang.Boolean PROPORTIONAL_EDEFAULT
          The default value of the 'Proportional' attribute.
protected  RenderingStyle renderingStyle
          The cached value of the 'Rendering Style' containment reference.
protected static java.lang.Boolean STRETCH_H_EDEFAULT
          The default value of the 'Stretch H' attribute.
protected static java.lang.Boolean STRETCH_V_EDEFAULT
          The default value of the 'Stretch V' attribute.
protected  java.lang.Boolean stretchH
          The cached value of the 'Stretch H' attribute.
protected  java.lang.Boolean stretchV
          The cached value of the 'Stretch V' attribute.
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 static Orientation VERTICAL_ALIGNMENT_EDEFAULT
          The default value of the 'Vertical Alignment' attribute.
protected  Orientation verticalAlignment
          The cached value of the 'Vertical Alignment' attribute.
 
Fields inherited from class org.eclipse.graphiti.mm.impl.StyleContainerImpl
styles
 
Constructor Summary
protected StyleImpl()
           
 
Method Summary
 Color basicGetBackground()
           
 Font basicGetFont()
           
 Color basicGetForeground()
           
 RenderingStyle basicGetRenderingStyle()
           
 StyleContainer basicGetStyleContainer()
           
 NotificationChain basicSetRenderingStyle(RenderingStyle newRenderingStyle, NotificationChain msgs)
           
 NotificationChain basicSetStyleContainer(StyleContainer newStyleContainer, 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)
           
 java.lang.Integer getAngle()
           
 Color getBackground()
           
 java.lang.String getDescription()
           
 java.lang.Boolean getFilled()
           
 Font getFont()
           
 Color getForeground()
           
 Orientation getHorizontalAlignment()
           
 java.lang.String getId()
           
 LineStyle getLineStyle()
           
 java.lang.Boolean getLineVisible()
           
 java.lang.Integer getLineWidth()
           
 java.lang.Boolean getProportional()
           
 RenderingStyle getRenderingStyle()
           
 java.lang.Boolean getStretchH()
           
 java.lang.Boolean getStretchV()
           
 StyleContainer getStyleContainer()
           
 java.lang.Double getTransparency()
           
 Orientation getVerticalAlignment()
           
 boolean isSetFilled()
           
 boolean isSetLineVisible()
           
 void setAngle(java.lang.Integer newAngle)
           
 void setBackground(Color newBackground)
           
 void setDescription(java.lang.String newDescription)
           
 void setFilled(java.lang.Boolean newFilled)
           
 void setFont(Font newFont)
           
 void setForeground(Color newForeground)
           
 void setHorizontalAlignment(Orientation newHorizontalAlignment)
           
 void setId(java.lang.String newId)
           
 void setLineStyle(LineStyle newLineStyle)
           
 void setLineVisible(java.lang.Boolean newLineVisible)
           
 void setLineWidth(java.lang.Integer newLineWidth)
           
 void setProportional(java.lang.Boolean newProportional)
           
 void setRenderingStyle(RenderingStyle newRenderingStyle)
           
 void setStretchH(java.lang.Boolean newStretchH)
           
 void setStretchV(java.lang.Boolean newStretchV)
           
 void setStyleContainer(StyleContainer newStyleContainer)
           
 void setTransparency(java.lang.Double newTransparency)
           
 void setVerticalAlignment(Orientation newVerticalAlignment)
           
 java.lang.String toString()
           
 void unsetFilled()
           
 void unsetLineVisible()
           
 
Methods inherited from class org.eclipse.graphiti.mm.impl.StyleContainerImpl
getStyles
 
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.StyleContainer
getStyles
 

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()

filledESet

protected boolean filledESet
This is true if the Filled attribute has been set.


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()

lineVisibleESet

protected boolean lineVisibleESet
This is true if the Line Visible attribute has been set.


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()

ID_EDEFAULT

protected static final java.lang.String ID_EDEFAULT
The default value of the 'Id' attribute.

See Also:
getId()

id

protected java.lang.String id
The cached value of the 'Id' attribute.

See Also:
getId()

DESCRIPTION_EDEFAULT

protected static final java.lang.String DESCRIPTION_EDEFAULT
The default value of the 'Description' attribute.

See Also:
getDescription()

description

protected java.lang.String description
The cached value of the 'Description' attribute.

See Also:
getDescription()

font

protected Font font
The cached value of the 'Font' reference.

See Also:
getFont()

HORIZONTAL_ALIGNMENT_EDEFAULT

protected static final Orientation HORIZONTAL_ALIGNMENT_EDEFAULT
The default value of the 'Horizontal Alignment' attribute.

See Also:
getHorizontalAlignment()

horizontalAlignment

protected Orientation horizontalAlignment
The cached value of the 'Horizontal Alignment' attribute.

See Also:
getHorizontalAlignment()

VERTICAL_ALIGNMENT_EDEFAULT

protected static final Orientation VERTICAL_ALIGNMENT_EDEFAULT
The default value of the 'Vertical Alignment' attribute.

See Also:
getVerticalAlignment()

verticalAlignment

protected Orientation verticalAlignment
The cached value of the 'Vertical Alignment' attribute.

See Also:
getVerticalAlignment()

ANGLE_EDEFAULT

protected static final java.lang.Integer ANGLE_EDEFAULT
The default value of the 'Angle' attribute.

See Also:
getAngle()

angle

protected java.lang.Integer angle
The cached value of the 'Angle' attribute.

See Also:
getAngle()

STRETCH_H_EDEFAULT

protected static final java.lang.Boolean STRETCH_H_EDEFAULT
The default value of the 'Stretch H' attribute.

See Also:
getStretchH()

stretchH

protected java.lang.Boolean stretchH
The cached value of the 'Stretch H' attribute.

See Also:
getStretchH()

STRETCH_V_EDEFAULT

protected static final java.lang.Boolean STRETCH_V_EDEFAULT
The default value of the 'Stretch V' attribute.

See Also:
getStretchV()

stretchV

protected java.lang.Boolean stretchV
The cached value of the 'Stretch V' attribute.

See Also:
getStretchV()

PROPORTIONAL_EDEFAULT

protected static final java.lang.Boolean PROPORTIONAL_EDEFAULT
The default value of the 'Proportional' attribute.

See Also:
getProportional()

proportional

protected java.lang.Boolean proportional
The cached value of the 'Proportional' attribute.

See Also:
getProportional()
Constructor Detail

StyleImpl

protected StyleImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class StyleContainerImpl

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.isSetFilled(), AbstractStyle.unsetFilled(), 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.isSetFilled(), AbstractStyle.unsetFilled(), AbstractStyle.getFilled()

unsetFilled

public void unsetFilled()

Specified by:
unsetFilled in interface AbstractStyle
See Also:
AbstractStyle.isSetFilled(), AbstractStyle.getFilled(), AbstractStyle.setFilled(Boolean)

isSetFilled

public boolean isSetFilled()

Specified by:
isSetFilled in interface AbstractStyle
Returns:
whether the value of the 'Filled' attribute is set.
See Also:
AbstractStyle.unsetFilled(), AbstractStyle.getFilled(), AbstractStyle.setFilled(Boolean)

getLineVisible

public java.lang.Boolean getLineVisible()

Specified by:
getLineVisible in interface AbstractStyle
Returns:
the value of the 'Line Visible' attribute.
See Also:
AbstractStyle.isSetLineVisible(), AbstractStyle.unsetLineVisible(), 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.isSetLineVisible(), AbstractStyle.unsetLineVisible(), AbstractStyle.getLineVisible()

unsetLineVisible

public void unsetLineVisible()

Specified by:
unsetLineVisible in interface AbstractStyle
See Also:
AbstractStyle.isSetLineVisible(), AbstractStyle.getLineVisible(), AbstractStyle.setLineVisible(Boolean)

isSetLineVisible

public boolean isSetLineVisible()

Specified by:
isSetLineVisible in interface AbstractStyle
Returns:
whether the value of the 'Line Visible' attribute is set.
See Also:
AbstractStyle.unsetLineVisible(), AbstractStyle.getLineVisible(), AbstractStyle.setLineVisible(Boolean)

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()

getId

public java.lang.String getId()

Specified by:
getId in interface Style
Returns:
the value of the 'Id' attribute.
See Also:
Style.setId(String), StylesPackage.getStyle_Id()

setId

public void setId(java.lang.String newId)

Specified by:
setId in interface Style
Parameters:
newId - the new value of the 'Id' attribute.
See Also:
Style.getId()

getDescription

public java.lang.String getDescription()

Specified by:
getDescription in interface Style
Returns:
the value of the 'Description' attribute.
See Also:
Style.setDescription(String), StylesPackage.getStyle_Description()

setDescription

public void setDescription(java.lang.String newDescription)

Specified by:
setDescription in interface Style
Parameters:
newDescription - the new value of the 'Description' attribute.
See Also:
Style.getDescription()

getFont

public Font getFont()

Specified by:
getFont in interface Style
Returns:
the value of the 'Font' reference.
See Also:
Style.setFont(Font), StylesPackage.getStyle_Font()

basicGetFont

public Font basicGetFont()


setFont

public void setFont(Font newFont)

Specified by:
setFont in interface Style
Parameters:
newFont - the new value of the 'Font' reference.
See Also:
Style.getFont()

getHorizontalAlignment

public Orientation getHorizontalAlignment()

Specified by:
getHorizontalAlignment in interface Style
Returns:
the value of the 'Horizontal Alignment' attribute.
See Also:
Orientation, Style.setHorizontalAlignment(Orientation), StylesPackage.getStyle_HorizontalAlignment()

setHorizontalAlignment

public void setHorizontalAlignment(Orientation newHorizontalAlignment)

Specified by:
setHorizontalAlignment in interface Style
Parameters:
newHorizontalAlignment - the new value of the 'Horizontal Alignment' attribute.
See Also:
Orientation, Style.getHorizontalAlignment()

getVerticalAlignment

public Orientation getVerticalAlignment()

Specified by:
getVerticalAlignment in interface Style
Returns:
the value of the 'Vertical Alignment' attribute.
See Also:
Orientation, Style.setVerticalAlignment(Orientation), StylesPackage.getStyle_VerticalAlignment()

setVerticalAlignment

public void setVerticalAlignment(Orientation newVerticalAlignment)

Specified by:
setVerticalAlignment in interface Style
Parameters:
newVerticalAlignment - the new value of the 'Vertical Alignment' attribute.
See Also:
Orientation, Style.getVerticalAlignment()

getAngle

public java.lang.Integer getAngle()

Specified by:
getAngle in interface Style
Returns:
the value of the 'Angle' attribute.
See Also:
Style.setAngle(Integer), StylesPackage.getStyle_Angle()

setAngle

public void setAngle(java.lang.Integer newAngle)

Specified by:
setAngle in interface Style
Parameters:
newAngle - the new value of the 'Angle' attribute.
See Also:
Style.getAngle()

getStretchH

public java.lang.Boolean getStretchH()

Specified by:
getStretchH in interface Style
Returns:
the value of the 'Stretch H' attribute.
See Also:
Style.setStretchH(Boolean), StylesPackage.getStyle_StretchH()

setStretchH

public void setStretchH(java.lang.Boolean newStretchH)

Specified by:
setStretchH in interface Style
Parameters:
newStretchH - the new value of the 'Stretch H' attribute.
See Also:
Style.getStretchH()

getStretchV

public java.lang.Boolean getStretchV()

Specified by:
getStretchV in interface Style
Returns:
the value of the 'Stretch V' attribute.
See Also:
Style.setStretchV(Boolean), StylesPackage.getStyle_StretchV()

setStretchV

public void setStretchV(java.lang.Boolean newStretchV)

Specified by:
setStretchV in interface Style
Parameters:
newStretchV - the new value of the 'Stretch V' attribute.
See Also:
Style.getStretchV()

getProportional

public java.lang.Boolean getProportional()

Specified by:
getProportional in interface Style
Returns:
the value of the 'Proportional' attribute.
See Also:
Style.setProportional(Boolean), StylesPackage.getStyle_Proportional()

setProportional

public void setProportional(java.lang.Boolean newProportional)

Specified by:
setProportional in interface Style
Parameters:
newProportional - the new value of the 'Proportional' attribute.
See Also:
Style.getProportional()

getStyleContainer

public StyleContainer getStyleContainer()

Specified by:
getStyleContainer in interface Style
Returns:
the value of the 'Style Container' container reference.
See Also:
Style.setStyleContainer(StyleContainer), StylesPackage.getStyle_StyleContainer(), StyleContainer.getStyles()

basicGetStyleContainer

public StyleContainer basicGetStyleContainer()


basicSetStyleContainer

public NotificationChain basicSetStyleContainer(StyleContainer newStyleContainer,
                                                NotificationChain msgs)


setStyleContainer

public void setStyleContainer(StyleContainer newStyleContainer)

Specified by:
setStyleContainer in interface Style
Parameters:
newStyleContainer - the new value of the 'Style Container' container reference.
See Also:
Style.getStyleContainer()

eInverseAdd

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

Overrides:
eInverseAdd in class StyleContainerImpl

eInverseRemove

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

Overrides:
eInverseRemove in class StyleContainerImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)


eGet

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

Overrides:
eGet in class StyleContainerImpl

eSet

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

Overrides:
eSet in class StyleContainerImpl

eUnset

public void eUnset(int featureID)

Overrides:
eUnset in class StyleContainerImpl

eIsSet

public boolean eIsSet(int featureID)

Overrides:
eIsSet in class StyleContainerImpl

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, 2012.