Class LegendImpl
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.layout.impl.BlockImpl
org.eclipse.birt.chart.model.layout.impl.LegendImpl
- All Implemented Interfaces:
IChartObject,Block,Legend,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
An implementation of the model object '
Legend'.
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 Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterListNested 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_FLAGFields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.notify.NotificationChainbasicSetClientArea(ClientArea newClientArea, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChainbasicSetFormatSpecifier(FormatSpecifier newFormatSpecifier, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChainbasicSetSeparator(LineAttributes newSeparator, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChainbasicSetText(Text newText, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChainbasicSetTitle(Label newTitle, org.eclipse.emf.common.notify.NotificationChain msgs) static final Blockcreate()A convenience method to create an initialized 'Legend' instancestatic final BlockA convenience method to create an initialized 'Legend' instanceeGet(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) voidvoideUnset(int featureID) intintdoublefinal SizegetPreferredSize(IDisplayServer xs, Chart cm, RunTimeContext rtc) Computes and returns the size of the title block based on the text content and its attributesgetText()getTitle()doubleintdoublebooleanisCustom()Note: Manually writtenbooleanisLegend()Note: Manually writtenbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetClientArea(ClientArea newClientArea) voidsetDirection(Direction newDirection) voidsetEllipsis(int newEllipsis) voidsetFormatSpecifier(FormatSpecifier newFormatSpecifier) voidsetHorizontalSpacing(int newHorizontalSpacing) voidsetItemType(LegendItemType newItemType) voidsetMaxPercent(double newMaxPercent) voidsetOrientation(Orientation newOrientation) voidsetPosition(Position newPosition) voidsetSeparator(LineAttributes newSeparator) voidsetShowPercent(boolean newShowPercent) voidsetShowTotal(boolean newShowTotal) voidsetShowValue(boolean newShowValue) voidvoidvoidsetTitlePercent(double newTitlePercent) voidsetTitlePosition(Position newTitlePosition) voidsetVerticalSpacing(int newVerticalSpacing) voidsetWrappingSize(double newWrappingSize) toString()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidfinal voidupdateLayout(Chart cm) Update the legend's block relationship in the hierarchy w.r.t.Methods inherited from class org.eclipse.birt.chart.model.layout.impl.BlockImpl
add, basicSetBackground, basicSetBounds, basicSetCursor, basicSetInsets, basicSetMinSize, basicSetOutline, children, getAnchor, getBackground, getBounds, getChildren, getColumn, getColumnspan, getCursor, getHeightHint, getInsets, getMinSize, getOutline, getRow, getRowspan, getStretch, getTriggers, getWidthHint, isPlot, isSetAnchor, isSetColumn, isSetColumnspan, isSetHeightHint, isSetRow, isSetRowspan, isSetStretch, isSetVisible, isSetWidthHint, isText, isTitle, isVisible, remove, setAnchor, setBackground, setBounds, setColumn, setColumnspan, setCursor, setHeightHint, setInsets, setMinSize, setOutline, setRow, setRowspan, setStretch, setVisible, setWidthHint, unsetAnchor, unsetColumn, unsetColumnspan, unsetHeightHint, unsetRow, unsetRowspan, unsetStretch, unsetVisible, unsetWidthHintMethods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURIMethods 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, eVirtualUnsetMethods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotifyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.birt.chart.model.layout.Block
add, children, getAnchor, getBackground, getBounds, getChildren, getColumn, getColumnspan, getCursor, getHeightHint, getInsets, getMinSize, getOutline, getRow, getRowspan, getStretch, getTriggers, getWidthHint, isPlot, isSetAnchor, isSetColumn, isSetColumnspan, isSetHeightHint, isSetRow, isSetRowspan, isSetStretch, isSetVisible, isSetWidthHint, isText, isTitle, isVisible, remove, setAnchor, setBackground, setBounds, setColumn, setColumnspan, setCursor, setHeightHint, setInsets, setMinSize, setOutline, setRow, setRowspan, setStretch, setVisible, setWidthHint, unsetAnchor, unsetColumn, unsetColumnspan, unsetHeightHint, unsetRow, unsetRowspan, unsetStretch, unsetVisible, unsetWidthHintMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequiredMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getHorizontalSpacing
public int getHorizontalSpacing()- Specified by:
getHorizontalSpacingin interfaceLegend- Returns:
- the value of the 'Horizontal Spacing' attribute.
- See Also:
-
setHorizontalSpacing
public void setHorizontalSpacing(int newHorizontalSpacing) - Specified by:
setHorizontalSpacingin interfaceLegend- Parameters:
newHorizontalSpacing- the new value of the 'Horizontal Spacing' attribute.- See Also:
-
unsetHorizontalSpacing
public void unsetHorizontalSpacing()- Specified by:
unsetHorizontalSpacingin interfaceLegend- See Also:
-
isSetHorizontalSpacing
public boolean isSetHorizontalSpacing()- Specified by:
isSetHorizontalSpacingin interfaceLegend- Returns:
- whether the value of the 'Horizontal Spacing' attribute is set.
- See Also:
-
getVerticalSpacing
public int getVerticalSpacing()- Specified by:
getVerticalSpacingin interfaceLegend- Returns:
- the value of the 'Vertical Spacing' attribute.
- See Also:
-
setVerticalSpacing
public void setVerticalSpacing(int newVerticalSpacing) - Specified by:
setVerticalSpacingin interfaceLegend- Parameters:
newVerticalSpacing- the new value of the 'Vertical Spacing' attribute.- See Also:
-
unsetVerticalSpacing
public void unsetVerticalSpacing()- Specified by:
unsetVerticalSpacingin interfaceLegend- See Also:
-
isSetVerticalSpacing
public boolean isSetVerticalSpacing()- Specified by:
isSetVerticalSpacingin interfaceLegend- Returns:
- whether the value of the 'Vertical Spacing' attribute is set.
- See Also:
-
getClientArea
- Specified by:
getClientAreain interfaceLegend- Returns:
- the value of the 'Client Area' containment reference.
- See Also:
-
basicSetClientArea
public org.eclipse.emf.common.notify.NotificationChain basicSetClientArea(ClientArea newClientArea, org.eclipse.emf.common.notify.NotificationChain msgs) -
setClientArea
- Specified by:
setClientAreain interfaceLegend- Parameters:
newClientArea- the new value of the 'Client Area' containment reference.- See Also:
-
getText
-
basicSetText
public org.eclipse.emf.common.notify.NotificationChain basicSetText(Text newText, org.eclipse.emf.common.notify.NotificationChain msgs) -
setText
-
getOrientation
- Specified by:
getOrientationin interfaceLegend- Returns:
- the value of the 'Orientation' attribute.
- See Also:
-
setOrientation
- Specified by:
setOrientationin interfaceLegend- Parameters:
newOrientation- the new value of the 'Orientation' attribute.- See Also:
-
unsetOrientation
public void unsetOrientation()- Specified by:
unsetOrientationin interfaceLegend- See Also:
-
isSetOrientation
public boolean isSetOrientation()- Specified by:
isSetOrientationin interfaceLegend- Returns:
- whether the value of the 'Orientation' attribute is set.
- See Also:
-
getDirection
- Specified by:
getDirectionin interfaceLegend- Returns:
- the value of the 'Direction' attribute.
- See Also:
-
setDirection
- Specified by:
setDirectionin interfaceLegend- Parameters:
newDirection- the new value of the 'Direction' attribute.- See Also:
-
unsetDirection
public void unsetDirection()- Specified by:
unsetDirectionin interfaceLegend- See Also:
-
isSetDirection
public boolean isSetDirection()- Specified by:
isSetDirectionin interfaceLegend- Returns:
- whether the value of the 'Direction' attribute is set.
- See Also:
-
getSeparator
- Specified by:
getSeparatorin interfaceLegend- Returns:
- the value of the 'Separator' containment reference.
- See Also:
-
basicSetSeparator
public org.eclipse.emf.common.notify.NotificationChain basicSetSeparator(LineAttributes newSeparator, org.eclipse.emf.common.notify.NotificationChain msgs) -
setSeparator
- Specified by:
setSeparatorin interfaceLegend- Parameters:
newSeparator- the new value of the 'Separator' containment reference.- See Also:
-
getPosition
- Specified by:
getPositionin interfaceLegend- Returns:
- the value of the 'Position' attribute.
- See Also:
-
setPosition
- Specified by:
setPositionin interfaceLegend- Parameters:
newPosition- the new value of the 'Position' attribute.- See Also:
-
unsetPosition
public void unsetPosition()- Specified by:
unsetPositionin interfaceLegend- See Also:
-
isSetPosition
public boolean isSetPosition()- Specified by:
isSetPositionin interfaceLegend- Returns:
- whether the value of the 'Position' attribute is set.
- See Also:
-
getItemType
- Specified by:
getItemTypein interfaceLegend- Returns:
- the value of the 'Item Type' attribute.
- See Also:
-
setItemType
- Specified by:
setItemTypein interfaceLegend- Parameters:
newItemType- the new value of the 'Item Type' attribute.- See Also:
-
unsetItemType
public void unsetItemType()- Specified by:
unsetItemTypein interfaceLegend- See Also:
-
isSetItemType
public boolean isSetItemType()- Specified by:
isSetItemTypein interfaceLegend- Returns:
- whether the value of the 'Item Type' attribute is set.
- See Also:
-
getTitle
-
basicSetTitle
public org.eclipse.emf.common.notify.NotificationChain basicSetTitle(Label newTitle, org.eclipse.emf.common.notify.NotificationChain msgs) -
setTitle
-
getTitlePosition
- Specified by:
getTitlePositionin interfaceLegend- Returns:
- the value of the 'Title Position' attribute.
- See Also:
-
setTitlePosition
- Specified by:
setTitlePositionin interfaceLegend- Parameters:
newTitlePosition- the new value of the 'Title Position' attribute.- See Also:
-
unsetTitlePosition
public void unsetTitlePosition()- Specified by:
unsetTitlePositionin interfaceLegend- See Also:
-
isSetTitlePosition
public boolean isSetTitlePosition()- Specified by:
isSetTitlePositionin interfaceLegend- Returns:
- whether the value of the 'Title Position' attribute is set.
- See Also:
-
isShowValue
public boolean isShowValue()- Specified by:
isShowValuein interfaceLegend- Returns:
- the value of the 'Show Value' attribute.
- See Also:
-
setShowValue
public void setShowValue(boolean newShowValue) - Specified by:
setShowValuein interfaceLegend- Parameters:
newShowValue- the new value of the 'Show Value' attribute.- See Also:
-
unsetShowValue
public void unsetShowValue()- Specified by:
unsetShowValuein interfaceLegend- See Also:
-
isSetShowValue
public boolean isSetShowValue()- Specified by:
isSetShowValuein interfaceLegend- Returns:
- whether the value of the 'Show Value' attribute is set.
- See Also:
-
isShowPercent
public boolean isShowPercent()- Specified by:
isShowPercentin interfaceLegend- Returns:
- the value of the 'Show Percent' attribute.
- See Also:
-
setShowPercent
public void setShowPercent(boolean newShowPercent) - Specified by:
setShowPercentin interfaceLegend- Parameters:
newShowPercent- the new value of the 'Show Percent' attribute.- See Also:
-
unsetShowPercent
public void unsetShowPercent()- Specified by:
unsetShowPercentin interfaceLegend- See Also:
-
isSetShowPercent
public boolean isSetShowPercent()- Specified by:
isSetShowPercentin interfaceLegend- Returns:
- whether the value of the 'Show Percent' attribute is set.
- See Also:
-
isShowTotal
public boolean isShowTotal()- Specified by:
isShowTotalin interfaceLegend- Returns:
- the value of the 'Show Total' attribute.
- See Also:
-
setShowTotal
public void setShowTotal(boolean newShowTotal) - Specified by:
setShowTotalin interfaceLegend- Parameters:
newShowTotal- the new value of the 'Show Total' attribute.- See Also:
-
unsetShowTotal
public void unsetShowTotal()- Specified by:
unsetShowTotalin interfaceLegend- See Also:
-
isSetShowTotal
public boolean isSetShowTotal()- Specified by:
isSetShowTotalin interfaceLegend- Returns:
- whether the value of the 'Show Total' attribute is set.
- See Also:
-
getWrappingSize
public double getWrappingSize()- Specified by:
getWrappingSizein interfaceLegend- Returns:
- the value of the 'Wrapping Size' attribute.
- See Also:
-
setWrappingSize
public void setWrappingSize(double newWrappingSize) - Specified by:
setWrappingSizein interfaceLegend- Parameters:
newWrappingSize- the new value of the 'Wrapping Size' attribute.- See Also:
-
unsetWrappingSize
public void unsetWrappingSize()- Specified by:
unsetWrappingSizein interfaceLegend- See Also:
-
isSetWrappingSize
public boolean isSetWrappingSize()- Specified by:
isSetWrappingSizein interfaceLegend- Returns:
- whether the value of the 'Wrapping Size' attribute is set.
- See Also:
-
getMaxPercent
public double getMaxPercent()- Specified by:
getMaxPercentin interfaceLegend- Returns:
- the value of the 'Max Percent' attribute.
- See Also:
-
setMaxPercent
public void setMaxPercent(double newMaxPercent) - Specified by:
setMaxPercentin interfaceLegend- Parameters:
newMaxPercent- the new value of the 'Max Percent' attribute.- See Also:
-
unsetMaxPercent
public void unsetMaxPercent()- Specified by:
unsetMaxPercentin interfaceLegend- See Also:
-
isSetMaxPercent
public boolean isSetMaxPercent()- Specified by:
isSetMaxPercentin interfaceLegend- Returns:
- whether the value of the 'Max Percent' attribute is set.
- See Also:
-
getTitlePercent
public double getTitlePercent()- Specified by:
getTitlePercentin interfaceLegend- Returns:
- the value of the 'Title Percent' attribute.
- See Also:
-
setTitlePercent
public void setTitlePercent(double newTitlePercent) - Specified by:
setTitlePercentin interfaceLegend- Parameters:
newTitlePercent- the new value of the 'Title Percent' attribute.- See Also:
-
unsetTitlePercent
public void unsetTitlePercent()- Specified by:
unsetTitlePercentin interfaceLegend- See Also:
-
isSetTitlePercent
public boolean isSetTitlePercent()- Specified by:
isSetTitlePercentin interfaceLegend- Returns:
- whether the value of the 'Title Percent' attribute is set.
- See Also:
-
getEllipsis
public int getEllipsis()- Specified by:
getEllipsisin interfaceLegend- Returns:
- the value of the 'Ellipsis' attribute.
- See Also:
-
setEllipsis
public void setEllipsis(int newEllipsis) - Specified by:
setEllipsisin interfaceLegend- Parameters:
newEllipsis- the new value of the 'Ellipsis' attribute.- See Also:
-
unsetEllipsis
public void unsetEllipsis()- Specified by:
unsetEllipsisin interfaceLegend- See Also:
-
isSetEllipsis
public boolean isSetEllipsis()- Specified by:
isSetEllipsisin interfaceLegend- Returns:
- whether the value of the 'Ellipsis' attribute is set.
- See Also:
-
getFormatSpecifier
- Specified by:
getFormatSpecifierin interfaceLegend- Returns:
- the value of the 'Format Specifier' containment reference.
- See Also:
-
basicSetFormatSpecifier
public org.eclipse.emf.common.notify.NotificationChain basicSetFormatSpecifier(FormatSpecifier newFormatSpecifier, org.eclipse.emf.common.notify.NotificationChain msgs) -
setFormatSpecifier
- Specified by:
setFormatSpecifierin interfaceLegend- Parameters:
newFormatSpecifier- the new value of the 'Format Specifier' containment reference.- See Also:
-
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 classBlockImpl
-
eGet
-
eSet
-
eUnset
public void eUnset(int featureID) -
eIsSet
public boolean eIsSet(int featureID) -
toString
-
isLegend
public boolean isLegend()Note: Manually written -
isCustom
public boolean isCustom()Note: Manually written -
getPreferredSize
public final Size getPreferredSize(IDisplayServer xs, Chart cm, RunTimeContext rtc) throws ChartException Description copied from interface:BlockComputes and returns the size of the title block based on the text content and its attributes- Specified by:
getPreferredSizein interfaceBlock- Overrides:
getPreferredSizein classBlockImpl- Parameters:
xs- The Xserver used in computing the scaling factor (pixels => points)cm- The chart model instance (if needed)- Returns:
- The preferred size of the title block 'in points'
- Throws:
ChartException
-
create
A convenience method to create an initialized 'Legend' instance- Returns:
- legend instance with setting 'isSet' flag.
-
createDefault
A convenience method to create an initialized 'Legend' instance- Returns:
- legend instance without setting 'isSet' flag.
-
updateLayout
Description copied from interface:LegendUpdate the legend's block relationship in the hierarchy w.r.t. the chart model- Specified by:
updateLayoutin interfaceLegend
-
copyInstance
- Specified by:
copyInstancein interfaceBlock- Specified by:
copyInstancein interfaceIChartObject- Specified by:
copyInstancein interfaceLegend- Overrides:
copyInstancein classBlockImpl
-