org.eclipse.birt.chart.model.attribute.impl
Class FontDefinitionImpl

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.birt.chart.model.attribute.impl.FontDefinitionImpl
All Implemented Interfaces:
FontDefinition, IChartObject, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class FontDefinitionImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements FontDefinition

An implementation of the model object ' Font Definition'.

The following features are implemented:


Nested Class Summary
 
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
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
FontDefinitionImpl(java.lang.String sName, float fSize)
          A convenient constructor that allows partial definition of member variables.
 
Method Summary
 org.eclipse.emf.common.notify.NotificationChain basicSetAlignment(TextAlignment newAlignment, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 FontDefinition copyInstance()
          A convenient method to get an instance copy.
static FontDefinition create(java.lang.String sName, float fSize, boolean bBold, boolean bItalic, boolean bUnderline, boolean bStrikethrough, boolean bWordWrap, double dRotation, TextAlignment ta)
          NOTE: Manually written
static FontDefinition createEmpty()
          Creates an empty FontDefinition instance.
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 boolean equals(java.lang.Object obj)
           
 void eSet(int featureID, java.lang.Object newValue)
           
 void eUnset(int featureID)
           
 TextAlignment getAlignment()
           
 java.lang.String getName()
           
 double getRotation()
           
 float getSize()
           
 int hashCode()
           
 boolean isBold()
           
 boolean isItalic()
           
 boolean isSetBold()
           
 boolean isSetItalic()
           
 boolean isSetRotation()
           
 boolean isSetSize()
           
 boolean isSetStrikethrough()
           
 boolean isSetUnderline()
           
 boolean isSetWordWrap()
           
 boolean isStrikethrough()
           
 boolean isUnderline()
           
 boolean isWordWrap()
           
 void setAlignment(TextAlignment newAlignment)
           
 void setBold(boolean newBold)
           
 void setItalic(boolean newItalic)
           
 void setName(java.lang.String newName)
           
 void setRotation(double newRotation)
           
 void setSize(float newSize)
           
 void setStrikethrough(boolean newStrikethrough)
           
 void setUnderline(boolean newUnderline)
           
 void setWordWrap(boolean newWordWrap)
           
 java.lang.String toString()
           
 void unsetBold()
           
 void unsetItalic()
           
 void unsetRotation()
           
 void unsetSize()
           
 void unsetStrikethrough()
           
 void unsetUnderline()
           
 void unsetWordWrap()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
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.emf.ecore.InternalEObject
eNotificationRequired
 

Constructor Detail

FontDefinitionImpl

public FontDefinitionImpl(java.lang.String sName,
                          float fSize)
A convenient constructor that allows partial definition of member variables. NOTE: Manually written

Parameters:
sName -
dSize -
Method Detail

getName

public java.lang.String getName()

Specified by:
getName in interface FontDefinition
Returns:
the value of the 'Name' attribute.
See Also:
FontDefinition.setName(String), AttributePackage.getFontDefinition_Name()

setName

public void setName(java.lang.String newName)

Specified by:
setName in interface FontDefinition
Parameters:
newName - the new value of the 'Name' attribute.
See Also:
FontDefinition.getName()

getSize

public float getSize()

Specified by:
getSize in interface FontDefinition
Returns:
the value of the 'Size' attribute.
See Also:
FontDefinition.isSetSize(), FontDefinition.unsetSize(), FontDefinition.setSize(float), AttributePackage.getFontDefinition_Size()

setSize

public void setSize(float newSize)

Specified by:
setSize in interface FontDefinition
Parameters:
newSize - the new value of the 'Size' attribute.
See Also:
FontDefinition.isSetSize(), FontDefinition.unsetSize(), FontDefinition.getSize()

unsetSize

public void unsetSize()

Specified by:
unsetSize in interface FontDefinition
See Also:
FontDefinition.isSetSize(), FontDefinition.getSize(), FontDefinition.setSize(float)

isSetSize

public boolean isSetSize()

Specified by:
isSetSize in interface FontDefinition
Returns:
whether the value of the 'Size' attribute is set.
See Also:
FontDefinition.unsetSize(), FontDefinition.getSize(), FontDefinition.setSize(float)

isBold

public boolean isBold()

Specified by:
isBold in interface FontDefinition
Returns:
the value of the 'Bold' attribute.
See Also:
FontDefinition.isSetBold(), FontDefinition.unsetBold(), FontDefinition.setBold(boolean), AttributePackage.getFontDefinition_Bold()

setBold

public void setBold(boolean newBold)

Specified by:
setBold in interface FontDefinition
Parameters:
newBold - the new value of the 'Bold' attribute.
See Also:
FontDefinition.isSetBold(), FontDefinition.unsetBold(), FontDefinition.isBold()

unsetBold

public void unsetBold()

Specified by:
unsetBold in interface FontDefinition
See Also:
FontDefinition.isSetBold(), FontDefinition.isBold(), FontDefinition.setBold(boolean)

isSetBold

public boolean isSetBold()

Specified by:
isSetBold in interface FontDefinition
Returns:
whether the value of the 'Bold' attribute is set.
See Also:
FontDefinition.unsetBold(), FontDefinition.isBold(), FontDefinition.setBold(boolean)

isItalic

public boolean isItalic()

Specified by:
isItalic in interface FontDefinition
Returns:
the value of the 'Italic' attribute.
See Also:
FontDefinition.isSetItalic(), FontDefinition.unsetItalic(), FontDefinition.setItalic(boolean), AttributePackage.getFontDefinition_Italic()

setItalic

public void setItalic(boolean newItalic)

Specified by:
setItalic in interface FontDefinition
Parameters:
newItalic - the new value of the 'Italic' attribute.
See Also:
FontDefinition.isSetItalic(), FontDefinition.unsetItalic(), FontDefinition.isItalic()

unsetItalic

public void unsetItalic()

Specified by:
unsetItalic in interface FontDefinition
See Also:
FontDefinition.isSetItalic(), FontDefinition.isItalic(), FontDefinition.setItalic(boolean)

isSetItalic

public boolean isSetItalic()

Specified by:
isSetItalic in interface FontDefinition
Returns:
whether the value of the 'Italic' attribute is set.
See Also:
FontDefinition.unsetItalic(), FontDefinition.isItalic(), FontDefinition.setItalic(boolean)

isStrikethrough

public boolean isStrikethrough()

Specified by:
isStrikethrough in interface FontDefinition
Returns:
the value of the 'Strikethrough' attribute.
See Also:
FontDefinition.isSetStrikethrough(), FontDefinition.unsetStrikethrough(), FontDefinition.setStrikethrough(boolean), AttributePackage.getFontDefinition_Strikethrough()

setStrikethrough

public void setStrikethrough(boolean newStrikethrough)

Specified by:
setStrikethrough in interface FontDefinition
Parameters:
newStrikethrough - the new value of the 'Strikethrough' attribute.
See Also:
FontDefinition.isSetStrikethrough(), FontDefinition.unsetStrikethrough(), FontDefinition.isStrikethrough()

unsetStrikethrough

public void unsetStrikethrough()

Specified by:
unsetStrikethrough in interface FontDefinition
See Also:
FontDefinition.isSetStrikethrough(), FontDefinition.isStrikethrough(), FontDefinition.setStrikethrough(boolean)

isSetStrikethrough

public boolean isSetStrikethrough()

Specified by:
isSetStrikethrough in interface FontDefinition
Returns:
whether the value of the 'Strikethrough' attribute is set.
See Also:
FontDefinition.unsetStrikethrough(), FontDefinition.isStrikethrough(), FontDefinition.setStrikethrough(boolean)

isUnderline

public boolean isUnderline()

Specified by:
isUnderline in interface FontDefinition
Returns:
the value of the 'Underline' attribute.
See Also:
FontDefinition.isSetUnderline(), FontDefinition.unsetUnderline(), FontDefinition.setUnderline(boolean), AttributePackage.getFontDefinition_Underline()

setUnderline

public void setUnderline(boolean newUnderline)

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

unsetUnderline

public void unsetUnderline()

Specified by:
unsetUnderline in interface FontDefinition
See Also:
FontDefinition.isSetUnderline(), FontDefinition.isUnderline(), FontDefinition.setUnderline(boolean)

isSetUnderline

public boolean isSetUnderline()

Specified by:
isSetUnderline in interface FontDefinition
Returns:
whether the value of the 'Underline' attribute is set.
See Also:
FontDefinition.unsetUnderline(), FontDefinition.isUnderline(), FontDefinition.setUnderline(boolean)

isWordWrap

public boolean isWordWrap()

Specified by:
isWordWrap in interface FontDefinition
Returns:
the value of the 'Word Wrap' attribute.
See Also:
FontDefinition.isSetWordWrap(), FontDefinition.unsetWordWrap(), FontDefinition.setWordWrap(boolean), AttributePackage.getFontDefinition_WordWrap()

setWordWrap

public void setWordWrap(boolean newWordWrap)

Specified by:
setWordWrap in interface FontDefinition
Parameters:
newWordWrap - the new value of the 'Word Wrap' attribute.
See Also:
FontDefinition.isSetWordWrap(), FontDefinition.unsetWordWrap(), FontDefinition.isWordWrap()

unsetWordWrap

public void unsetWordWrap()

Specified by:
unsetWordWrap in interface FontDefinition
See Also:
FontDefinition.isSetWordWrap(), FontDefinition.isWordWrap(), FontDefinition.setWordWrap(boolean)

isSetWordWrap

public boolean isSetWordWrap()

Specified by:
isSetWordWrap in interface FontDefinition
Returns:
whether the value of the 'Word Wrap' attribute is set.
See Also:
FontDefinition.unsetWordWrap(), FontDefinition.isWordWrap(), FontDefinition.setWordWrap(boolean)

getAlignment

public TextAlignment getAlignment()

Specified by:
getAlignment in interface FontDefinition
Returns:
the value of the 'Alignment' containment reference.
See Also:
FontDefinition.setAlignment(TextAlignment), AttributePackage.getFontDefinition_Alignment()

basicSetAlignment

public org.eclipse.emf.common.notify.NotificationChain basicSetAlignment(TextAlignment newAlignment,
                                                                         org.eclipse.emf.common.notify.NotificationChain msgs)


setAlignment

public void setAlignment(TextAlignment newAlignment)

Specified by:
setAlignment in interface FontDefinition
Parameters:
newAlignment - the new value of the 'Alignment' containment reference.
See Also:
FontDefinition.getAlignment()

getRotation

public double getRotation()

Specified by:
getRotation in interface FontDefinition
Returns:
the value of the 'Rotation' attribute.
See Also:
FontDefinition.isSetRotation(), FontDefinition.unsetRotation(), FontDefinition.setRotation(double), AttributePackage.getFontDefinition_Rotation()

setRotation

public void setRotation(double newRotation)

Specified by:
setRotation in interface FontDefinition
Parameters:
newRotation - the new value of the 'Rotation' attribute.
See Also:
FontDefinition.isSetRotation(), FontDefinition.unsetRotation(), FontDefinition.getRotation()

unsetRotation

public void unsetRotation()

Specified by:
unsetRotation in interface FontDefinition
See Also:
FontDefinition.isSetRotation(), FontDefinition.getRotation(), FontDefinition.setRotation(double)

isSetRotation

public boolean isSetRotation()

Specified by:
isSetRotation in interface FontDefinition
Returns:
whether the value of the 'Rotation' attribute is set.
See Also:
FontDefinition.unsetRotation(), FontDefinition.getRotation(), FontDefinition.setRotation(double)

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:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

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

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

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

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

toString

public java.lang.String toString()

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

create

public static final FontDefinition create(java.lang.String sName,
                                          float fSize,
                                          boolean bBold,
                                          boolean bItalic,
                                          boolean bUnderline,
                                          boolean bStrikethrough,
                                          boolean bWordWrap,
                                          double dRotation,
                                          TextAlignment ta)
NOTE: Manually written

Parameters:
sName -
fSize -
bBold -
bItalic -
bUnderline -
bStrikethrough -
bWordWrap -
dRotation -
ta -
Returns:

createEmpty

public static final FontDefinition createEmpty()
Creates an empty FontDefinition instance.

Returns:

copyInstance

public FontDefinition copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().

Specified by:
copyInstance in interface FontDefinition
Specified by:
copyInstance in interface IChartObject

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2005-2008 Actuate Corp. All rights reserved.