Class FontDefinitionImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.EObjectImpl
-
- 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
-
-
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, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Constructor Summary
Constructors Constructor Description FontDefinitionImpl(java.lang.String sName, float fSize)A convenient constructor that allows partial definition of member variables.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.notify.NotificationChainbasicSetAlignment(TextAlignment newAlignment, org.eclipse.emf.common.notify.NotificationChain msgs)FontDefinitioncopyInstance()A convenient method to get an instance copy.static FontDefinitioncreate(java.lang.String sName, float fSize, boolean bBold, boolean bItalic, boolean bUnderline, boolean bStrikethrough, boolean bWordWrap, double dRotation, TextAlignment ta)NOTE: Manually writtenstatic FontDefinitioncreateEmpty()Creates an empty FontDefinition instance.static FontDefinitioncreateEmptyDefault()java.lang.ObjecteGet(int featureID, boolean resolve, boolean coreType)org.eclipse.emf.common.notify.NotificationChaineInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)booleaneIsSet(int featureID)booleanequals(java.lang.Object obj)voideSet(int featureID, java.lang.Object newValue)voideUnset(int featureID)TextAlignmentgetAlignment()java.lang.StringgetName()doublegetRotation()floatgetSize()inthashCode()booleanisBold()booleanisItalic()booleanisSetBold()booleanisSetItalic()booleanisSetRotation()booleanisSetSize()booleanisSetStrikethrough()booleanisSetUnderline()booleanisSetWordWrap()booleanisStrikethrough()booleanisUnderline()booleanisWordWrap()voidsetAlignment(TextAlignment newAlignment)voidsetBold(boolean newBold)voidsetItalic(boolean newItalic)voidsetName(java.lang.String newName)voidsetRotation(double newRotation)voidsetSize(float newSize)voidsetStrikethrough(boolean newStrikethrough)voidsetUnderline(boolean newUnderline)voidsetWordWrap(boolean newWordWrap)java.lang.StringtoString()voidunsetBold()voidunsetItalic()voidunsetRotation()voidunsetSize()voidunsetStrikethrough()voidunsetUnderline()voidunsetWordWrap()-
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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceFontDefinition- 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:
setNamein interfaceFontDefinition- Parameters:
newName- the new value of the 'Name' attribute.- See Also:
FontDefinition.getName()
-
getSize
public float getSize()
- Specified by:
getSizein interfaceFontDefinition- 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:
setSizein interfaceFontDefinition- Parameters:
newSize- the new value of the 'Size' attribute.- See Also:
FontDefinition.isSetSize(),FontDefinition.unsetSize(),FontDefinition.getSize()
-
unsetSize
public void unsetSize()
- Specified by:
unsetSizein interfaceFontDefinition- See Also:
FontDefinition.isSetSize(),FontDefinition.getSize(),FontDefinition.setSize(float)
-
isSetSize
public boolean isSetSize()
- Specified by:
isSetSizein interfaceFontDefinition- 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:
isBoldin interfaceFontDefinition- 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:
setBoldin interfaceFontDefinition- Parameters:
newBold- the new value of the 'Bold' attribute.- See Also:
FontDefinition.isSetBold(),FontDefinition.unsetBold(),FontDefinition.isBold()
-
unsetBold
public void unsetBold()
- Specified by:
unsetBoldin interfaceFontDefinition- See Also:
FontDefinition.isSetBold(),FontDefinition.isBold(),FontDefinition.setBold(boolean)
-
isSetBold
public boolean isSetBold()
- Specified by:
isSetBoldin interfaceFontDefinition- 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:
isItalicin interfaceFontDefinition- 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:
setItalicin interfaceFontDefinition- Parameters:
newItalic- the new value of the 'Italic' attribute.- See Also:
FontDefinition.isSetItalic(),FontDefinition.unsetItalic(),FontDefinition.isItalic()
-
unsetItalic
public void unsetItalic()
- Specified by:
unsetItalicin interfaceFontDefinition- See Also:
FontDefinition.isSetItalic(),FontDefinition.isItalic(),FontDefinition.setItalic(boolean)
-
isSetItalic
public boolean isSetItalic()
- Specified by:
isSetItalicin interfaceFontDefinition- 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:
isStrikethroughin interfaceFontDefinition- 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:
setStrikethroughin interfaceFontDefinition- Parameters:
newStrikethrough- the new value of the 'Strikethrough' attribute.- See Also:
FontDefinition.isSetStrikethrough(),FontDefinition.unsetStrikethrough(),FontDefinition.isStrikethrough()
-
unsetStrikethrough
public void unsetStrikethrough()
- Specified by:
unsetStrikethroughin interfaceFontDefinition- See Also:
FontDefinition.isSetStrikethrough(),FontDefinition.isStrikethrough(),FontDefinition.setStrikethrough(boolean)
-
isSetStrikethrough
public boolean isSetStrikethrough()
- Specified by:
isSetStrikethroughin interfaceFontDefinition- 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:
isUnderlinein interfaceFontDefinition- 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:
setUnderlinein interfaceFontDefinition- Parameters:
newUnderline- the new value of the 'Underline' attribute.- See Also:
FontDefinition.isSetUnderline(),FontDefinition.unsetUnderline(),FontDefinition.isUnderline()
-
unsetUnderline
public void unsetUnderline()
- Specified by:
unsetUnderlinein interfaceFontDefinition- See Also:
FontDefinition.isSetUnderline(),FontDefinition.isUnderline(),FontDefinition.setUnderline(boolean)
-
isSetUnderline
public boolean isSetUnderline()
- Specified by:
isSetUnderlinein interfaceFontDefinition- 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:
isWordWrapin interfaceFontDefinition- 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:
setWordWrapin interfaceFontDefinition- Parameters:
newWordWrap- the new value of the 'Word Wrap' attribute.- See Also:
FontDefinition.isSetWordWrap(),FontDefinition.unsetWordWrap(),FontDefinition.isWordWrap()
-
unsetWordWrap
public void unsetWordWrap()
- Specified by:
unsetWordWrapin interfaceFontDefinition- See Also:
FontDefinition.isSetWordWrap(),FontDefinition.isWordWrap(),FontDefinition.setWordWrap(boolean)
-
isSetWordWrap
public boolean isSetWordWrap()
- Specified by:
isSetWordWrapin interfaceFontDefinition- 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:
getAlignmentin interfaceFontDefinition- 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:
setAlignmentin interfaceFontDefinition- Parameters:
newAlignment- the new value of the 'Alignment' containment reference.- See Also:
FontDefinition.getAlignment()
-
getRotation
public double getRotation()
- Specified by:
getRotationin interfaceFontDefinition- 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:
setRotationin interfaceFontDefinition- Parameters:
newRotation- the new value of the 'Rotation' attribute.- See Also:
FontDefinition.isSetRotation(),FontDefinition.unsetRotation(),FontDefinition.getRotation()
-
unsetRotation
public void unsetRotation()
- Specified by:
unsetRotationin interfaceFontDefinition- See Also:
FontDefinition.isSetRotation(),FontDefinition.getRotation(),FontDefinition.setRotation(double)
-
isSetRotation
public boolean isSetRotation()
- Specified by:
isSetRotationin interfaceFontDefinition- 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:
eInverseRemovein classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)- Specified by:
eGetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eGetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)- Specified by:
eSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eSetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnsetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eUnsetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eIsSetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.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:
-
createEmptyDefault
public static final FontDefinition createEmptyDefault()
-
copyInstance
public FontDefinition copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstancein interfaceFontDefinition- Specified by:
copyInstancein interfaceIChartObject
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-