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

java.lang.Object
  extended by EObjectImpl
      extended by org.eclipse.graphiti.mm.algorithms.styles.impl.TextStyleImpl
All Implemented Interfaces:
TextStyle

public class TextStyleImpl
extends EObjectImpl
implements TextStyle

An implementation of the model object 'Text Style'.

The following features are implemented:


Field Summary
protected  Color background
          The cached value of the 'Background' reference.
protected  Font font
          The cached value of the 'Font' reference.
protected  Color foreground
          The cached value of the 'Foreground' reference.
protected  boolean strikeout
          The cached value of the 'Strikeout' attribute.
protected static boolean STRIKEOUT_EDEFAULT
          The default value of the 'Strikeout' attribute.
protected  Color strikeoutColor
          The cached value of the 'Strikeout Color' reference.
protected  boolean underline
          The cached value of the 'Underline' attribute.
protected static boolean UNDERLINE_EDEFAULT
          The default value of the 'Underline' attribute.
protected static UnderlineStyle UNDERLINE_STYLE_EDEFAULT
          The default value of the 'Underline Style' attribute.
protected  Color underlineColor
          The cached value of the 'Underline Color' reference.
protected  UnderlineStyle underlineStyle
          The cached value of the 'Underline Style' attribute.
 
Constructor Summary
protected TextStyleImpl()
           
 
Method Summary
 Color basicGetBackground()
           
 Font basicGetFont()
           
 Color basicGetForeground()
           
 Color basicGetStrikeoutColor()
           
 Color basicGetUnderlineColor()
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 Color getBackground()
           
 Font getFont()
           
 Color getForeground()
           
 Color getStrikeoutColor()
           
 Color getUnderlineColor()
           
 UnderlineStyle getUnderlineStyle()
           
 boolean isStrikeout()
           
 boolean isUnderline()
           
 void setBackground(Color newBackground)
           
 void setFont(Font newFont)
           
 void setForeground(Color newForeground)
           
 void setStrikeout(boolean newStrikeout)
           
 void setStrikeoutColor(Color newStrikeoutColor)
           
 void setUnderline(boolean newUnderline)
           
 void setUnderlineColor(Color newUnderlineColor)
           
 void setUnderlineStyle(UnderlineStyle newUnderlineStyle)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDERLINE_EDEFAULT

protected static final boolean UNDERLINE_EDEFAULT
The default value of the 'Underline' attribute.

See Also:
isUnderline(), Constant Field Values

underline

protected boolean underline
The cached value of the 'Underline' attribute.

See Also:
isUnderline()

UNDERLINE_STYLE_EDEFAULT

protected static final UnderlineStyle UNDERLINE_STYLE_EDEFAULT
The default value of the 'Underline Style' attribute.

See Also:
getUnderlineStyle()

underlineStyle

protected UnderlineStyle underlineStyle
The cached value of the 'Underline Style' attribute.

See Also:
getUnderlineStyle()

STRIKEOUT_EDEFAULT

protected static final boolean STRIKEOUT_EDEFAULT
The default value of the 'Strikeout' attribute.

See Also:
isStrikeout(), Constant Field Values

strikeout

protected boolean strikeout
The cached value of the 'Strikeout' attribute.

See Also:
isStrikeout()

font

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

See Also:
getFont()

foreground

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

See Also:
getForeground()

background

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

See Also:
getBackground()

underlineColor

protected Color underlineColor
The cached value of the 'Underline Color' reference.

See Also:
getUnderlineColor()

strikeoutColor

protected Color strikeoutColor
The cached value of the 'Strikeout Color' reference.

See Also:
getStrikeoutColor()
Constructor Detail

TextStyleImpl

protected TextStyleImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


isUnderline

public boolean isUnderline()

Specified by:
isUnderline in interface TextStyle
Returns:
the value of the 'Underline' attribute.
See Also:
TextStyle.setUnderline(boolean), StylesPackage.getTextStyle_Underline()

setUnderline

public void setUnderline(boolean newUnderline)

Specified by:
setUnderline in interface TextStyle
Parameters:
newUnderline - the new value of the 'Underline' attribute.
See Also:
TextStyle.isUnderline()

getUnderlineStyle

public UnderlineStyle getUnderlineStyle()

Specified by:
getUnderlineStyle in interface TextStyle
Returns:
the value of the 'Underline Style' attribute.
See Also:
UnderlineStyle, TextStyle.setUnderlineStyle(UnderlineStyle), StylesPackage.getTextStyle_UnderlineStyle()

setUnderlineStyle

public void setUnderlineStyle(UnderlineStyle newUnderlineStyle)

Specified by:
setUnderlineStyle in interface TextStyle
Parameters:
newUnderlineStyle - the new value of the 'Underline Style' attribute.
See Also:
UnderlineStyle, TextStyle.getUnderlineStyle()

isStrikeout

public boolean isStrikeout()

Specified by:
isStrikeout in interface TextStyle
Returns:
the value of the 'Strikeout' attribute.
See Also:
TextStyle.setStrikeout(boolean), StylesPackage.getTextStyle_Strikeout()

setStrikeout

public void setStrikeout(boolean newStrikeout)

Specified by:
setStrikeout in interface TextStyle
Parameters:
newStrikeout - the new value of the 'Strikeout' attribute.
See Also:
TextStyle.isStrikeout()

getFont

public Font getFont()

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

basicGetFont

public Font basicGetFont()


setFont

public void setFont(Font newFont)

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

getForeground

public Color getForeground()

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

basicGetForeground

public Color basicGetForeground()


setForeground

public void setForeground(Color newForeground)

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

getBackground

public Color getBackground()

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

basicGetBackground

public Color basicGetBackground()


setBackground

public void setBackground(Color newBackground)

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

getUnderlineColor

public Color getUnderlineColor()

Specified by:
getUnderlineColor in interface TextStyle
Returns:
the value of the 'Underline Color' reference.
See Also:
TextStyle.setUnderlineColor(Color), StylesPackage.getTextStyle_UnderlineColor()

basicGetUnderlineColor

public Color basicGetUnderlineColor()


setUnderlineColor

public void setUnderlineColor(Color newUnderlineColor)

Specified by:
setUnderlineColor in interface TextStyle
Parameters:
newUnderlineColor - the new value of the 'Underline Color' reference.
See Also:
TextStyle.getUnderlineColor()

getStrikeoutColor

public Color getStrikeoutColor()

Specified by:
getStrikeoutColor in interface TextStyle
Returns:
the value of the 'Strikeout Color' reference.
See Also:
TextStyle.setStrikeoutColor(Color), StylesPackage.getTextStyle_StrikeoutColor()

basicGetStrikeoutColor

public Color basicGetStrikeoutColor()


setStrikeoutColor

public void setStrikeoutColor(Color newStrikeoutColor)

Specified by:
setStrikeoutColor in interface TextStyle
Parameters:
newStrikeoutColor - the new value of the 'Strikeout Color' reference.
See Also:
TextStyle.getStrikeoutColor()

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)


eSet

public void eSet(int featureID,
                 Object newValue)


eUnset

public void eUnset(int featureID)


eIsSet

public boolean eIsSet(int featureID)


toString

public String toString()



Copyright (c) SAP AG 2005, 2012.