Class ChartImpl
- 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.impl.ChartImpl
-
- All Implemented Interfaces:
Chart,IChartObject,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
- Direct Known Subclasses:
ChartWithAxesImpl,ChartWithoutAxesImpl
public class ChartImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Chart
An implementation of the model object ' Chart'.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 Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.notify.NotificationChainbasicSetBlock(Block newBlock, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetDescription(Text newDescription, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetEmptyMessage(Label newEmptyMessage, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetInteractivity(Interactivity newInteractivity, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetSampleData(SampleData newSampleData, org.eclipse.emf.common.notify.NotificationChain msgs)voidclearSections(int iSectionType)This method walks through the model and clears specific model sections that are not required at deployment time.ChartcopyInstance()voidcreateSampleRuntimeSeries()Builds runtime series instances for each design-time series based on the sample data contained in the modeljava.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)voideSet(int featureID, java.lang.Object newValue)voideUnset(int featureID)BlockgetBlock()TextgetDescription()ChartDimensiongetDimension()LabelgetEmptyMessage()org.eclipse.emf.common.util.EList<ExtendedProperty>getExtendedProperties()intgetGridColumnCount()InteractivitygetInteractivity()LegendgetLegend()Note: Manually writtenPlotgetPlot()Note: Manually writtenSampleDatagetSampleData()java.lang.StringgetScript()SeriesDefinition[]getSeriesForLegend()This method returns all series whose captions/markers are to be rendered in the Legend contentdoublegetSeriesThickness()org.eclipse.emf.common.util.EList<StyleMap>getStyles()java.lang.StringgetSubType()TitleBlockgetTitle()Note: Manually writtenjava.lang.StringgetType()java.lang.StringgetUnits()java.lang.StringgetVersion()booleanisSetDimension()booleanisSetGridColumnCount()booleanisSetSeriesThickness()booleanisSetVersion()voidsetBlock(Block newBlock)voidsetDescription(Text newDescription)voidsetDimension(ChartDimension newDimension)voidsetEmptyMessage(Label newEmptyMessage)voidsetGridColumnCount(int newGridColumnCount)voidsetInteractivity(Interactivity newInteractivity)voidsetSampleData(SampleData newSampleData)voidsetScript(java.lang.String newScript)voidsetSeriesThickness(double newSeriesThickness)voidsetSubType(java.lang.String newSubType)voidsetType(java.lang.String newType)voidsetUnits(java.lang.String newUnits)voidsetVersion(java.lang.String newVersion)java.lang.StringtoString()voidunsetDimension()voidunsetGridColumnCount()voidunsetSeriesThickness()voidunsetVersion()-
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
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersionin interfaceChart- Returns:
- the value of the 'Version' attribute.
- See Also:
Chart.isSetVersion(),Chart.unsetVersion(),Chart.setVersion(String),ModelPackage.getChart_Version()
-
setVersion
public void setVersion(java.lang.String newVersion)
- Specified by:
setVersionin interfaceChart- Parameters:
newVersion- the new value of the 'Version' attribute.- See Also:
Chart.isSetVersion(),Chart.unsetVersion(),Chart.getVersion()
-
unsetVersion
public void unsetVersion()
- Specified by:
unsetVersionin interfaceChart- See Also:
Chart.isSetVersion(),Chart.getVersion(),Chart.setVersion(String)
-
isSetVersion
public boolean isSetVersion()
- Specified by:
isSetVersionin interfaceChart- Returns:
- whether the value of the 'Version' attribute is set.
- See Also:
Chart.unsetVersion(),Chart.getVersion(),Chart.setVersion(String)
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceChart- Returns:
- the value of the 'Type' attribute.
- See Also:
Chart.setType(String),ModelPackage.getChart_Type()
-
setType
public void setType(java.lang.String newType)
- Specified by:
setTypein interfaceChart- Parameters:
newType- the new value of the 'Type' attribute.- See Also:
Chart.getType()
-
getSubType
public java.lang.String getSubType()
- Specified by:
getSubTypein interfaceChart- Returns:
- the value of the 'Sub Type' attribute.
- See Also:
Chart.setSubType(String),ModelPackage.getChart_SubType()
-
setSubType
public void setSubType(java.lang.String newSubType)
- Specified by:
setSubTypein interfaceChart- Parameters:
newSubType- the new value of the 'Sub Type' attribute.- See Also:
Chart.getSubType()
-
getDescription
public Text getDescription()
- Specified by:
getDescriptionin interfaceChart- Returns:
- the value of the 'Description' containment reference.
- See Also:
Chart.setDescription(Text),ModelPackage.getChart_Description()
-
basicSetDescription
public org.eclipse.emf.common.notify.NotificationChain basicSetDescription(Text newDescription, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setDescription
public void setDescription(Text newDescription)
- Specified by:
setDescriptionin interfaceChart- Parameters:
newDescription- the new value of the 'Description' containment reference.- See Also:
Chart.getDescription()
-
getBlock
public Block getBlock()
- Specified by:
getBlockin interfaceChart- Returns:
- the value of the 'Block' containment reference.
- See Also:
Chart.setBlock(Block),ModelPackage.getChart_Block()
-
basicSetBlock
public org.eclipse.emf.common.notify.NotificationChain basicSetBlock(Block newBlock, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setBlock
public void setBlock(Block newBlock)
- Specified by:
setBlockin interfaceChart- Parameters:
newBlock- the new value of the 'Block' containment reference.- See Also:
Chart.getBlock()
-
getDimension
public ChartDimension getDimension()
- Specified by:
getDimensionin interfaceChart- Returns:
- the value of the 'Dimension' attribute.
- See Also:
ChartDimension,Chart.isSetDimension(),Chart.unsetDimension(),Chart.setDimension(ChartDimension),ModelPackage.getChart_Dimension()
-
setDimension
public void setDimension(ChartDimension newDimension)
- Specified by:
setDimensionin interfaceChart- Parameters:
newDimension- the new value of the 'Dimension' attribute.- See Also:
ChartDimension,Chart.isSetDimension(),Chart.unsetDimension(),Chart.getDimension()
-
unsetDimension
public void unsetDimension()
- Specified by:
unsetDimensionin interfaceChart- See Also:
Chart.isSetDimension(),Chart.getDimension(),Chart.setDimension(ChartDimension)
-
isSetDimension
public boolean isSetDimension()
- Specified by:
isSetDimensionin interfaceChart- Returns:
- whether the value of the 'Dimension' attribute is set.
- See Also:
Chart.unsetDimension(),Chart.getDimension(),Chart.setDimension(ChartDimension)
-
getScript
public java.lang.String getScript()
- Specified by:
getScriptin interfaceChart- Returns:
- the value of the 'Script' attribute.
- See Also:
Chart.setScript(String),ModelPackage.getChart_Script()
-
setScript
public void setScript(java.lang.String newScript)
- Specified by:
setScriptin interfaceChart- Parameters:
newScript- the new value of the 'Script' attribute.- See Also:
Chart.getScript()
-
getUnits
public java.lang.String getUnits()
- Specified by:
getUnitsin interfaceChart- Returns:
- the value of the 'Units' attribute.
- See Also:
Chart.setUnits(String),ModelPackage.getChart_Units()
-
setUnits
public void setUnits(java.lang.String newUnits)
- Specified by:
setUnitsin interfaceChart- Parameters:
newUnits- the new value of the 'Units' attribute.- See Also:
Chart.getUnits()
-
getSeriesThickness
public double getSeriesThickness()
- Specified by:
getSeriesThicknessin interfaceChart- Returns:
- the value of the 'Series Thickness' attribute.
- See Also:
Chart.isSetSeriesThickness(),Chart.unsetSeriesThickness(),Chart.setSeriesThickness(double),ModelPackage.getChart_SeriesThickness()
-
setSeriesThickness
public void setSeriesThickness(double newSeriesThickness)
- Specified by:
setSeriesThicknessin interfaceChart- Parameters:
newSeriesThickness- the new value of the 'Series Thickness' attribute.- See Also:
Chart.isSetSeriesThickness(),Chart.unsetSeriesThickness(),Chart.getSeriesThickness()
-
unsetSeriesThickness
public void unsetSeriesThickness()
- Specified by:
unsetSeriesThicknessin interfaceChart- See Also:
Chart.isSetSeriesThickness(),Chart.getSeriesThickness(),Chart.setSeriesThickness(double)
-
isSetSeriesThickness
public boolean isSetSeriesThickness()
- Specified by:
isSetSeriesThicknessin interfaceChart- Returns:
- whether the value of the 'Series Thickness' attribute is set.
- See Also:
Chart.unsetSeriesThickness(),Chart.getSeriesThickness(),Chart.setSeriesThickness(double)
-
getGridColumnCount
public int getGridColumnCount()
- Specified by:
getGridColumnCountin interfaceChart- Returns:
- the value of the 'Grid Column Count' attribute.
- See Also:
Chart.isSetGridColumnCount(),Chart.unsetGridColumnCount(),Chart.setGridColumnCount(int),ModelPackage.getChart_GridColumnCount()
-
setGridColumnCount
public void setGridColumnCount(int newGridColumnCount)
- Specified by:
setGridColumnCountin interfaceChart- Parameters:
newGridColumnCount- the new value of the 'Grid Column Count' attribute.- See Also:
Chart.isSetGridColumnCount(),Chart.unsetGridColumnCount(),Chart.getGridColumnCount()
-
unsetGridColumnCount
public void unsetGridColumnCount()
- Specified by:
unsetGridColumnCountin interfaceChart- See Also:
Chart.isSetGridColumnCount(),Chart.getGridColumnCount(),Chart.setGridColumnCount(int)
-
isSetGridColumnCount
public boolean isSetGridColumnCount()
- Specified by:
isSetGridColumnCountin interfaceChart- Returns:
- whether the value of the 'Grid Column Count' attribute is set.
- See Also:
Chart.unsetGridColumnCount(),Chart.getGridColumnCount(),Chart.setGridColumnCount(int)
-
getExtendedProperties
public org.eclipse.emf.common.util.EList<ExtendedProperty> getExtendedProperties()
- Specified by:
getExtendedPropertiesin interfaceChart- Returns:
- the value of the 'Extended Properties' containment reference list.
- See Also:
ModelPackage.getChart_ExtendedProperties()
-
getSampleData
public SampleData getSampleData()
- Specified by:
getSampleDatain interfaceChart- Returns:
- the value of the 'Sample Data' containment reference.
- See Also:
Chart.setSampleData(SampleData),ModelPackage.getChart_SampleData()
-
basicSetSampleData
public org.eclipse.emf.common.notify.NotificationChain basicSetSampleData(SampleData newSampleData, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setSampleData
public void setSampleData(SampleData newSampleData)
- Specified by:
setSampleDatain interfaceChart- Parameters:
newSampleData- the new value of the 'Sample Data' containment reference.- See Also:
Chart.getSampleData()
-
getStyles
public org.eclipse.emf.common.util.EList<StyleMap> getStyles()
- Specified by:
getStylesin interfaceChart- Returns:
- the value of the 'Styles' containment reference list.
- See Also:
ModelPackage.getChart_Styles()
-
getInteractivity
public Interactivity getInteractivity()
- Specified by:
getInteractivityin interfaceChart- Returns:
- the value of the 'Interactivity' containment reference.
- See Also:
Chart.setInteractivity(Interactivity),ModelPackage.getChart_Interactivity()
-
basicSetInteractivity
public org.eclipse.emf.common.notify.NotificationChain basicSetInteractivity(Interactivity newInteractivity, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setInteractivity
public void setInteractivity(Interactivity newInteractivity)
- Specified by:
setInteractivityin interfaceChart- Parameters:
newInteractivity- the new value of the 'Interactivity' containment reference.- See Also:
Chart.getInteractivity()
-
getEmptyMessage
public Label getEmptyMessage()
- Specified by:
getEmptyMessagein interfaceChart- Returns:
- the value of the 'Empty Message' containment reference.
- See Also:
Chart.setEmptyMessage(Label),ModelPackage.getChart_EmptyMessage()
-
basicSetEmptyMessage
public org.eclipse.emf.common.notify.NotificationChain basicSetEmptyMessage(Label newEmptyMessage, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setEmptyMessage
public void setEmptyMessage(Label newEmptyMessage)
- Specified by:
setEmptyMessagein interfaceChart- Parameters:
newEmptyMessage- the new value of the 'Empty Message' containment reference.- See Also:
Chart.getEmptyMessage()
-
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
-
getLegend
public final Legend getLegend()
Note: Manually written
-
getPlot
public final Plot getPlot()
Note: Manually written
-
getTitle
public final TitleBlock getTitle()
Note: Manually written
-
getSeriesForLegend
public SeriesDefinition[] getSeriesForLegend()
Description copied from interface:ChartThis method returns all series whose captions/markers are to be rendered in the Legend content- Specified by:
getSeriesForLegendin interfaceChart- Returns:
- SeriesDefinition array
-
clearSections
public void clearSections(int iSectionType)
Description copied from interface:ChartThis method walks through the model and clears specific model sections that are not required at deployment time.- Specified by:
clearSectionsin interfaceChart- Parameters:
iSectionType- Possible values are IConstants.RUN_TIME and IConstants.USER_INTERFACE
-
createSampleRuntimeSeries
public final void createSampleRuntimeSeries()
Description copied from interface:ChartBuilds runtime series instances for each design-time series based on the sample data contained in the model- Specified by:
createSampleRuntimeSeriesin interfaceChart
-
copyInstance
public Chart copyInstance()
- Specified by:
copyInstancein interfaceChart- Specified by:
copyInstancein interfaceIChartObject
-
-