Class LabelImpl
- 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.component.impl.LabelImpl
-
- All Implemented Interfaces:
Label
,IChartObject
,org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
public class LabelImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Label
An implementation of the model object ' Label'.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, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.notify.NotificationChain
basicSetBackground(Fill newBackground, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
basicSetCaption(Text newCaption, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
basicSetInsets(Insets newInsets, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
basicSetOutline(LineAttributes newOutline, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
basicSetShadowColor(ColorDefinition newShadowColor, org.eclipse.emf.common.notify.NotificationChain msgs)
static Label
copyCompactInstance(Label src)
A convenient method to get an instance copy.Label
copyInstance()
A convenient method to get an instance copy.static Label
create()
A convenience method to create an initialized 'Label' instancestatic Label
createDefault()
A convenience method to create an initialized 'Label' instancestatic Label
createDefault(boolean visible)
A convenience method to create an initialized 'Label' instancejava.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)
void
eSet(int featureID, java.lang.Object newValue)
void
eUnset(int featureID)
Fill
getBackground()
Text
getCaption()
int
getEllipsis()
Insets
getInsets()
LineAttributes
getOutline()
ColorDefinition
getShadowColor()
boolean
isSetEllipsis()
boolean
isSetVisible()
boolean
isVisible()
void
setBackground(Fill newBackground)
void
setCaption(Text newCaption)
void
setEllipsis(int newEllipsis)
void
setInsets(Insets newInsets)
void
setOutline(LineAttributes newOutline)
void
setShadowColor(ColorDefinition newShadowColor)
void
setVisible(boolean newVisible)
java.lang.String
toString()
void
unsetEllipsis()
void
unsetVisible()
-
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getCaption
public Text getCaption()
- Specified by:
getCaption
in interfaceLabel
- Returns:
- the value of the 'Caption' containment reference.
- See Also:
Label.setCaption(Text)
,ComponentPackage.getLabel_Caption()
-
basicSetCaption
public org.eclipse.emf.common.notify.NotificationChain basicSetCaption(Text newCaption, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setCaption
public void setCaption(Text newCaption)
- Specified by:
setCaption
in interfaceLabel
- Parameters:
newCaption
- the new value of the 'Caption' containment reference.- See Also:
Label.getCaption()
-
getBackground
public Fill getBackground()
- Specified by:
getBackground
in interfaceLabel
- Returns:
- the value of the 'Background' containment reference.
- See Also:
Label.setBackground(Fill)
,ComponentPackage.getLabel_Background()
-
basicSetBackground
public org.eclipse.emf.common.notify.NotificationChain basicSetBackground(Fill newBackground, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setBackground
public void setBackground(Fill newBackground)
- Specified by:
setBackground
in interfaceLabel
- Parameters:
newBackground
- the new value of the 'Background' containment reference.- See Also:
Label.getBackground()
-
getOutline
public LineAttributes getOutline()
- Specified by:
getOutline
in interfaceLabel
- Returns:
- the value of the 'Outline' containment reference.
- See Also:
Label.setOutline(LineAttributes)
,ComponentPackage.getLabel_Outline()
-
basicSetOutline
public org.eclipse.emf.common.notify.NotificationChain basicSetOutline(LineAttributes newOutline, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setOutline
public void setOutline(LineAttributes newOutline)
- Specified by:
setOutline
in interfaceLabel
- Parameters:
newOutline
- the new value of the 'Outline' containment reference.- See Also:
Label.getOutline()
-
getShadowColor
public ColorDefinition getShadowColor()
- Specified by:
getShadowColor
in interfaceLabel
- Returns:
- the value of the 'Shadow Color' containment reference.
- See Also:
Label.setShadowColor(ColorDefinition)
,ComponentPackage.getLabel_ShadowColor()
-
basicSetShadowColor
public org.eclipse.emf.common.notify.NotificationChain basicSetShadowColor(ColorDefinition newShadowColor, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setShadowColor
public void setShadowColor(ColorDefinition newShadowColor)
- Specified by:
setShadowColor
in interfaceLabel
- Parameters:
newShadowColor
- the new value of the 'Shadow Color' containment reference.- See Also:
Label.getShadowColor()
-
getInsets
public Insets getInsets()
- Specified by:
getInsets
in interfaceLabel
- Returns:
- the value of the 'Insets' containment reference.
- See Also:
Label.setInsets(Insets)
,ComponentPackage.getLabel_Insets()
-
basicSetInsets
public org.eclipse.emf.common.notify.NotificationChain basicSetInsets(Insets newInsets, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setInsets
public void setInsets(Insets newInsets)
- Specified by:
setInsets
in interfaceLabel
- Parameters:
newInsets
- the new value of the 'Insets' containment reference.- See Also:
Label.getInsets()
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interfaceLabel
- Returns:
- the value of the 'Visible' attribute.
- See Also:
Label.isSetVisible()
,Label.unsetVisible()
,Label.setVisible(boolean)
,ComponentPackage.getLabel_Visible()
-
setVisible
public void setVisible(boolean newVisible)
- Specified by:
setVisible
in interfaceLabel
- Parameters:
newVisible
- the new value of the 'Visible' attribute.- See Also:
Label.isSetVisible()
,Label.unsetVisible()
,Label.isVisible()
-
unsetVisible
public void unsetVisible()
- Specified by:
unsetVisible
in interfaceLabel
- See Also:
Label.isSetVisible()
,Label.isVisible()
,Label.setVisible(boolean)
-
isSetVisible
public boolean isSetVisible()
- Specified by:
isSetVisible
in interfaceLabel
- Returns:
- whether the value of the 'Visible' attribute is set.
- See Also:
Label.unsetVisible()
,Label.isVisible()
,Label.setVisible(boolean)
-
getEllipsis
public int getEllipsis()
- Specified by:
getEllipsis
in interfaceLabel
- Returns:
- the value of the 'Ellipsis' attribute.
- See Also:
Label.isSetEllipsis()
,Label.unsetEllipsis()
,Label.setEllipsis(int)
,ComponentPackage.getLabel_Ellipsis()
-
setEllipsis
public void setEllipsis(int newEllipsis)
- Specified by:
setEllipsis
in interfaceLabel
- Parameters:
newEllipsis
- the new value of the 'Ellipsis' attribute.- See Also:
Label.isSetEllipsis()
,Label.unsetEllipsis()
,Label.getEllipsis()
-
unsetEllipsis
public void unsetEllipsis()
- Specified by:
unsetEllipsis
in interfaceLabel
- See Also:
Label.isSetEllipsis()
,Label.getEllipsis()
,Label.setEllipsis(int)
-
isSetEllipsis
public boolean isSetEllipsis()
- Specified by:
isSetEllipsis
in interfaceLabel
- Returns:
- whether the value of the 'Ellipsis' attribute is set.
- See Also:
Label.unsetEllipsis()
,Label.getEllipsis()
,Label.setEllipsis(int)
-
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 classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)
- Specified by:
eSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnset
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
create
public static final Label create()
A convenience method to create an initialized 'Label' instance- Returns:
- label instance with setting 'isSet' flag.
-
createDefault
public static final Label createDefault()
A convenience method to create an initialized 'Label' instance- Returns:
- label instance without setting 'isSet' flag.
-
createDefault
public static final Label createDefault(boolean visible)
A convenience method to create an initialized 'Label' instance- Returns:
- label instance without setting 'isSet' flag.
-
copyInstance
public Label copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstance
in interfaceIChartObject
- Specified by:
copyInstance
in interfaceLabel
-
copyCompactInstance
public static Label copyCompactInstance(Label src)
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy(). Note this method only copies those working properties of the label. e.g. which could affect renderer. This is different with the copyInstance() method, which copies all attributes.- Parameters:
src
-- Returns:
- new label instance.
-
-