Runtime

org.eclipse.gmf.runtime.notation.impl
Class ShapeStyleImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.gmf.runtime.notation.impl.NotationEObjectImpl
                  extended by org.eclipse.gmf.runtime.notation.impl.ShapeStyleImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, DescriptionStyle, FillStyle, FontStyle, LineStyle, ShapeStyle, Style

public class ShapeStyleImpl
extends NotationEObjectImpl
implements ShapeStyle

An implementation of the model object 'Shape Style'.

The following features are implemented:

** Generated **

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>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected static boolean BOLD_EDEFAULT
          The default value of the 'Bold' attribute
protected static int BOLD_EFLAG
          The flag representing the value of the 'Bold' attribute
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 static int FILL_COLOR_EDEFAULT
          The default value of the 'Fill Color' attribute
protected  int fillColor
          The cached value of the 'Fill Color' attribute
protected static int FONT_COLOR_EDEFAULT
          The default value of the 'Font Color' attribute
protected static int FONT_HEIGHT_EDEFAULT
          The default value of the 'Font Height' attribute
protected static java.lang.String FONT_NAME_EDEFAULT
          The default value of the 'Font Name' attribute
protected  int fontColor
          The cached value of the 'Font Color' attribute
protected  int fontHeight
          The cached value of the 'Font Height' attribute
protected  java.lang.String fontName
          The cached value of the 'Font Name' attribute
protected static boolean ITALIC_EDEFAULT
          The default value of the 'Italic' attribute
protected static int ITALIC_EFLAG
          The flag representing the value of the 'Italic' attribute
protected static int LINE_COLOR_EDEFAULT
          The default value of the 'Line Color' attribute
protected static int LINE_WIDTH_EDEFAULT
          The default value of the 'Line Width' attribute
protected  int lineColor
          The cached value of the 'Line Color' attribute
protected  int lineWidth
          The cached value of the 'Line Width' attribute
protected static boolean STRIKE_THROUGH_EDEFAULT
          The default value of the 'Strike Through' attribute
protected static int STRIKE_THROUGH_EFLAG
          The flag representing the value of the 'Strike Through' attribute
protected static boolean UNDERLINE_EDEFAULT
          The default value of the 'Underline' attribute
protected static int UNDERLINE_EFLAG
          The flag representing the value of the 'Underline' attribute
 
Fields inherited from class org.eclipse.gmf.runtime.notation.impl.NotationEObjectImpl
eProxyURI
 
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
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected ShapeStyleImpl()
           
 
Method Summary
 int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class baseClass)
           
 int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class baseClass)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 java.lang.String getDescription()
           
 int getFillColor()
           
 int getFontColor()
           
 int getFontHeight()
           
 java.lang.String getFontName()
           
 int getLineColor()
           
 int getLineWidth()
           
 boolean isBold()
           
 boolean isItalic()
           
 boolean isStrikeThrough()
           
 boolean isUnderline()
           
 void setBold(boolean newBold)
           
 void setDescription(java.lang.String newDescription)
           
 void setFillColor(int newFillColor)
           
 void setFontColor(int newFontColor)
           
 void setFontHeight(int newFontHeight)
           
 void setFontName(java.lang.String newFontName)
          Sets the value of the 'Font Name' attribute
 void setFontNameGen(java.lang.String newFontName)
           
 void setItalic(boolean newItalic)
           
 void setLineColor(int newLineColor)
           
 void setLineWidth(int newLineWidth)
           
 void setStrikeThrough(boolean newStrikeThrough)
           
 void setUnderline(boolean newUnderline)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.gmf.runtime.notation.impl.NotationEObjectImpl
eContents, eCrossReferences, eIsProxy, eProperties, eProxyURI, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
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.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, 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.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, 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.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, 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.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, 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.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, 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.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

FONT_COLOR_EDEFAULT

protected static final int FONT_COLOR_EDEFAULT
The default value of the 'Font Color' attribute.

See Also:
getFontColor(), Constant Field Values
** Generated **
Ordered:

fontColor

protected int fontColor
The cached value of the 'Font Color' attribute.

See Also:
getFontColor()
** Generated **
Ordered:

FONT_NAME_EDEFAULT

protected static final java.lang.String FONT_NAME_EDEFAULT
The default value of the 'Font Name' attribute.

See Also:
getFontName(), Constant Field Values
** Generated **
Ordered:

fontName

protected java.lang.String fontName
The cached value of the 'Font Name' attribute.

See Also:
getFontName()
** Generated **
Ordered:

FONT_HEIGHT_EDEFAULT

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

See Also:
getFontHeight(), Constant Field Values
** Generated **
Ordered:

fontHeight

protected int fontHeight
The cached value of the 'Font Height' attribute.

See Also:
getFontHeight()
** Generated **
Ordered:

BOLD_EDEFAULT

protected static final boolean BOLD_EDEFAULT
The default value of the 'Bold' attribute.

See Also:
isBold(), Constant Field Values
** Generated **
Ordered:

BOLD_EFLAG

protected static final int BOLD_EFLAG
The flag representing the value of the 'Bold' attribute.

See Also:
isBold(), Constant Field Values
** Generated **
Ordered:

ITALIC_EDEFAULT

protected static final boolean ITALIC_EDEFAULT
The default value of the 'Italic' attribute.

See Also:
isItalic(), Constant Field Values
** Generated **
Ordered:

ITALIC_EFLAG

protected static final int ITALIC_EFLAG
The flag representing the value of the 'Italic' attribute.

See Also:
isItalic(), Constant Field Values
** Generated **
Ordered:

UNDERLINE_EDEFAULT

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

See Also:
isUnderline(), Constant Field Values
** Generated **
Ordered:

UNDERLINE_EFLAG

protected static final int UNDERLINE_EFLAG
The flag representing the value of the 'Underline' attribute.

See Also:
isUnderline(), Constant Field Values
** Generated **
Ordered:

STRIKE_THROUGH_EDEFAULT

protected static final boolean STRIKE_THROUGH_EDEFAULT
The default value of the 'Strike Through' attribute.

See Also:
isStrikeThrough(), Constant Field Values
** Generated **
Ordered:

STRIKE_THROUGH_EFLAG

protected static final int STRIKE_THROUGH_EFLAG
The flag representing the value of the 'Strike Through' attribute.

See Also:
isStrikeThrough(), Constant Field Values
** Generated **
Ordered:

DESCRIPTION_EDEFAULT

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

See Also:
getDescription(), Constant Field Values
** Generated **
Ordered:

description

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

See Also:
getDescription()
** Generated **
Ordered:

FILL_COLOR_EDEFAULT

protected static final int FILL_COLOR_EDEFAULT
The default value of the 'Fill Color' attribute.

See Also:
getFillColor(), Constant Field Values
** Generated **
Ordered:

fillColor

protected int fillColor
The cached value of the 'Fill Color' attribute.

See Also:
getFillColor()
** Generated **
Ordered:

LINE_COLOR_EDEFAULT

protected static final int LINE_COLOR_EDEFAULT
The default value of the 'Line Color' attribute.

See Also:
getLineColor(), Constant Field Values
** Generated **
Ordered:

lineColor

protected int lineColor
The cached value of the 'Line Color' attribute.

See Also:
getLineColor()
** Generated **
Ordered:

LINE_WIDTH_EDEFAULT

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

See Also:
getLineWidth(), Constant Field Values
** Generated **
Ordered:

lineWidth

protected int lineWidth
The cached value of the 'Line Width' attribute.

See Also:
getLineWidth()
** Generated **
Ordered:
Constructor Detail

ShapeStyleImpl

protected ShapeStyleImpl()

** Generated **
Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class org.eclipse.emf.ecore.impl.EObjectImpl
** Generated **

getFontColor

public int getFontColor()

Specified by:
getFontColor in interface FontStyle
Returns:
the value of the 'Font Color' attribute.
See Also:
FontStyle.setFontColor(int), NotationPackage.getFontStyle_FontColor()
** Generated **

setFontColor

public void setFontColor(int newFontColor)

Specified by:
setFontColor in interface FontStyle
Parameters:
newFontColor - the new value of the 'Font Color' attribute.
See Also:
FontStyle.getFontColor()
** Generated **

getFontName

public java.lang.String getFontName()

Specified by:
getFontName in interface FontStyle
Returns:
the value of the 'Font Name' attribute.
See Also:
FontStyle.setFontName(String), NotationPackage.getFontStyle_FontName()
** Generated **

setFontNameGen

public void setFontNameGen(java.lang.String newFontName)

** Generated **

setFontName

public void setFontName(java.lang.String newFontName)
Description copied from interface: FontStyle
Sets the value of the 'Font Name' attribute.

The fontName property specifies the font typeface name

Specified by:
setFontName in interface FontStyle
Parameters:
newFontName - the new value of the 'Font Name' attribute.
See Also:
FontStyle.getFontName()

getFontHeight

public int getFontHeight()

Specified by:
getFontHeight in interface FontStyle
Returns:
the value of the 'Font Height' attribute.
See Also:
FontStyle.setFontHeight(int), NotationPackage.getFontStyle_FontHeight()
** Generated **

setFontHeight

public void setFontHeight(int newFontHeight)

Specified by:
setFontHeight in interface FontStyle
Parameters:
newFontHeight - the new value of the 'Font Height' attribute.
See Also:
FontStyle.getFontHeight()
** Generated **

isBold

public boolean isBold()

Specified by:
isBold in interface FontStyle
Returns:
the value of the 'Bold' attribute.
See Also:
FontStyle.setBold(boolean), NotationPackage.getFontStyle_Bold()
** Generated **

setBold

public void setBold(boolean newBold)

Specified by:
setBold in interface FontStyle
Parameters:
newBold - the new value of the 'Bold' attribute.
See Also:
FontStyle.isBold()
** Generated **

isItalic

public boolean isItalic()

Specified by:
isItalic in interface FontStyle
Returns:
the value of the 'Italic' attribute.
See Also:
FontStyle.setItalic(boolean), NotationPackage.getFontStyle_Italic()
** Generated **

setItalic

public void setItalic(boolean newItalic)

Specified by:
setItalic in interface FontStyle
Parameters:
newItalic - the new value of the 'Italic' attribute.
See Also:
FontStyle.isItalic()
** Generated **

isUnderline

public boolean isUnderline()

Specified by:
isUnderline in interface FontStyle
Returns:
the value of the 'Underline' attribute.
See Also:
FontStyle.setUnderline(boolean), NotationPackage.getFontStyle_Underline()
** Generated **

setUnderline

public void setUnderline(boolean newUnderline)

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

isStrikeThrough

public boolean isStrikeThrough()

Specified by:
isStrikeThrough in interface FontStyle
Returns:
the value of the 'Strike Through' attribute.
See Also:
FontStyle.setStrikeThrough(boolean), NotationPackage.getFontStyle_StrikeThrough()
** Generated **

setStrikeThrough

public void setStrikeThrough(boolean newStrikeThrough)

Specified by:
setStrikeThrough in interface FontStyle
Parameters:
newStrikeThrough - the new value of the 'Strike Through' attribute.
See Also:
FontStyle.isStrikeThrough()
** Generated **

getDescription

public java.lang.String getDescription()

Specified by:
getDescription in interface DescriptionStyle
Returns:
the value of the 'Description' attribute.
See Also:
DescriptionStyle.setDescription(String), NotationPackage.getDescriptionStyle_Description()
** Generated **

setDescription

public void setDescription(java.lang.String newDescription)

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

getFillColor

public int getFillColor()

Specified by:
getFillColor in interface FillStyle
Returns:
the value of the 'Fill Color' attribute.
See Also:
FillStyle.setFillColor(int), NotationPackage.getFillStyle_FillColor()
** Generated **

setFillColor

public void setFillColor(int newFillColor)

Specified by:
setFillColor in interface FillStyle
Parameters:
newFillColor - the new value of the 'Fill Color' attribute.
See Also:
FillStyle.getFillColor()
** Generated **

getLineColor

public int getLineColor()

Specified by:
getLineColor in interface LineStyle
Returns:
the value of the 'Line Color' attribute.
See Also:
LineStyle.setLineColor(int), NotationPackage.getLineStyle_LineColor()
** Generated **

setLineColor

public void setLineColor(int newLineColor)

Specified by:
setLineColor in interface LineStyle
Parameters:
newLineColor - the new value of the 'Line Color' attribute.
See Also:
LineStyle.getLineColor()
** Generated **

getLineWidth

public int getLineWidth()

Specified by:
getLineWidth in interface LineStyle
Returns:
the value of the 'Line Width' attribute.
See Also:
LineStyle.setLineWidth(int), NotationPackage.getLineStyle_LineWidth()
** Generated **

setLineWidth

public void setLineWidth(int newLineWidth)

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

eGet

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

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
** Generated **

eSet

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

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
** Generated **

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
** Generated **

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
** Generated **

eBaseStructuralFeatureID

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

Specified by:
eBaseStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eBaseStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
** Generated **

eDerivedStructuralFeatureID

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

Specified by:
eDerivedStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eDerivedStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
** Generated **

toString

public java.lang.String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
** Generated **

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.