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.EScannableAdapterList
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.notify.NotificationChain
basicSetClientArea
(ClientArea newClientArea, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
basicSetFormatSpecifier
(FormatSpecifier newFormatSpecifier, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
basicSetSeparator
(LineAttributes newSeparator, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
basicSetText
(Text newText, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
basicSetTitle
(Label newTitle, org.eclipse.emf.common.notify.NotificationChain msgs) static final Block
create()
A convenience method to create an initialized 'Legend' instancestatic final Block
A convenience method to create an initialized 'Legend' instanceeGet
(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
void
eUnset
(int featureID) int
int
double
final Size
getPreferredSize
(IDisplayServer xs, Chart cm, RunTimeContext rtc) Computes and returns the size of the title block based on the text content and its attributesgetText()
getTitle()
double
int
double
boolean
isCustom()
Note: Manually writtenboolean
isLegend()
Note: Manually writtenboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setClientArea
(ClientArea newClientArea) void
setDirection
(Direction newDirection) void
setEllipsis
(int newEllipsis) void
setFormatSpecifier
(FormatSpecifier newFormatSpecifier) void
setHorizontalSpacing
(int newHorizontalSpacing) void
setItemType
(LegendItemType newItemType) void
setMaxPercent
(double newMaxPercent) void
setOrientation
(Orientation newOrientation) void
setPosition
(Position newPosition) void
setSeparator
(LineAttributes newSeparator) void
setShowPercent
(boolean newShowPercent) void
setShowTotal
(boolean newShowTotal) void
setShowValue
(boolean newShowValue) void
void
void
setTitlePercent
(double newTitlePercent) void
setTitlePosition
(Position newTitlePosition) void
setVerticalSpacing
(int newVerticalSpacing) void
setWrappingSize
(double newWrappingSize) toString()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
final void
updateLayout
(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, unsetWidthHint
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
Methods 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, unsetWidthHint
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.ecore.InternalEObject
eNotificationRequired
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getHorizontalSpacing
public int getHorizontalSpacing()- Specified by:
getHorizontalSpacing
in interfaceLegend
- Returns:
- the value of the 'Horizontal Spacing' attribute.
- See Also:
-
setHorizontalSpacing
public void setHorizontalSpacing(int newHorizontalSpacing) - Specified by:
setHorizontalSpacing
in interfaceLegend
- Parameters:
newHorizontalSpacing
- the new value of the 'Horizontal Spacing' attribute.- See Also:
-
unsetHorizontalSpacing
public void unsetHorizontalSpacing()- Specified by:
unsetHorizontalSpacing
in interfaceLegend
- See Also:
-
isSetHorizontalSpacing
public boolean isSetHorizontalSpacing()- Specified by:
isSetHorizontalSpacing
in interfaceLegend
- Returns:
- whether the value of the 'Horizontal Spacing' attribute is set.
- See Also:
-
getVerticalSpacing
public int getVerticalSpacing()- Specified by:
getVerticalSpacing
in interfaceLegend
- Returns:
- the value of the 'Vertical Spacing' attribute.
- See Also:
-
setVerticalSpacing
public void setVerticalSpacing(int newVerticalSpacing) - Specified by:
setVerticalSpacing
in interfaceLegend
- Parameters:
newVerticalSpacing
- the new value of the 'Vertical Spacing' attribute.- See Also:
-
unsetVerticalSpacing
public void unsetVerticalSpacing()- Specified by:
unsetVerticalSpacing
in interfaceLegend
- See Also:
-
isSetVerticalSpacing
public boolean isSetVerticalSpacing()- Specified by:
isSetVerticalSpacing
in interfaceLegend
- Returns:
- whether the value of the 'Vertical Spacing' attribute is set.
- See Also:
-
getClientArea
- Specified by:
getClientArea
in 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:
setClientArea
in 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:
getOrientation
in interfaceLegend
- Returns:
- the value of the 'Orientation' attribute.
- See Also:
-
setOrientation
- Specified by:
setOrientation
in interfaceLegend
- Parameters:
newOrientation
- the new value of the 'Orientation' attribute.- See Also:
-
unsetOrientation
public void unsetOrientation()- Specified by:
unsetOrientation
in interfaceLegend
- See Also:
-
isSetOrientation
public boolean isSetOrientation()- Specified by:
isSetOrientation
in interfaceLegend
- Returns:
- whether the value of the 'Orientation' attribute is set.
- See Also:
-
getDirection
- Specified by:
getDirection
in interfaceLegend
- Returns:
- the value of the 'Direction' attribute.
- See Also:
-
setDirection
- Specified by:
setDirection
in interfaceLegend
- Parameters:
newDirection
- the new value of the 'Direction' attribute.- See Also:
-
unsetDirection
public void unsetDirection()- Specified by:
unsetDirection
in interfaceLegend
- See Also:
-
isSetDirection
public boolean isSetDirection()- Specified by:
isSetDirection
in interfaceLegend
- Returns:
- whether the value of the 'Direction' attribute is set.
- See Also:
-
getSeparator
- Specified by:
getSeparator
in 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:
setSeparator
in interfaceLegend
- Parameters:
newSeparator
- the new value of the 'Separator' containment reference.- See Also:
-
getPosition
- Specified by:
getPosition
in interfaceLegend
- Returns:
- the value of the 'Position' attribute.
- See Also:
-
setPosition
- Specified by:
setPosition
in interfaceLegend
- Parameters:
newPosition
- the new value of the 'Position' attribute.- See Also:
-
unsetPosition
public void unsetPosition()- Specified by:
unsetPosition
in interfaceLegend
- See Also:
-
isSetPosition
public boolean isSetPosition()- Specified by:
isSetPosition
in interfaceLegend
- Returns:
- whether the value of the 'Position' attribute is set.
- See Also:
-
getItemType
- Specified by:
getItemType
in interfaceLegend
- Returns:
- the value of the 'Item Type' attribute.
- See Also:
-
setItemType
- Specified by:
setItemType
in interfaceLegend
- Parameters:
newItemType
- the new value of the 'Item Type' attribute.- See Also:
-
unsetItemType
public void unsetItemType()- Specified by:
unsetItemType
in interfaceLegend
- See Also:
-
isSetItemType
public boolean isSetItemType()- Specified by:
isSetItemType
in 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:
getTitlePosition
in interfaceLegend
- Returns:
- the value of the 'Title Position' attribute.
- See Also:
-
setTitlePosition
- Specified by:
setTitlePosition
in interfaceLegend
- Parameters:
newTitlePosition
- the new value of the 'Title Position' attribute.- See Also:
-
unsetTitlePosition
public void unsetTitlePosition()- Specified by:
unsetTitlePosition
in interfaceLegend
- See Also:
-
isSetTitlePosition
public boolean isSetTitlePosition()- Specified by:
isSetTitlePosition
in interfaceLegend
- Returns:
- whether the value of the 'Title Position' attribute is set.
- See Also:
-
isShowValue
public boolean isShowValue()- Specified by:
isShowValue
in interfaceLegend
- Returns:
- the value of the 'Show Value' attribute.
- See Also:
-
setShowValue
public void setShowValue(boolean newShowValue) - Specified by:
setShowValue
in interfaceLegend
- Parameters:
newShowValue
- the new value of the 'Show Value' attribute.- See Also:
-
unsetShowValue
public void unsetShowValue()- Specified by:
unsetShowValue
in interfaceLegend
- See Also:
-
isSetShowValue
public boolean isSetShowValue()- Specified by:
isSetShowValue
in interfaceLegend
- Returns:
- whether the value of the 'Show Value' attribute is set.
- See Also:
-
isShowPercent
public boolean isShowPercent()- Specified by:
isShowPercent
in interfaceLegend
- Returns:
- the value of the 'Show Percent' attribute.
- See Also:
-
setShowPercent
public void setShowPercent(boolean newShowPercent) - Specified by:
setShowPercent
in interfaceLegend
- Parameters:
newShowPercent
- the new value of the 'Show Percent' attribute.- See Also:
-
unsetShowPercent
public void unsetShowPercent()- Specified by:
unsetShowPercent
in interfaceLegend
- See Also:
-
isSetShowPercent
public boolean isSetShowPercent()- Specified by:
isSetShowPercent
in interfaceLegend
- Returns:
- whether the value of the 'Show Percent' attribute is set.
- See Also:
-
isShowTotal
public boolean isShowTotal()- Specified by:
isShowTotal
in interfaceLegend
- Returns:
- the value of the 'Show Total' attribute.
- See Also:
-
setShowTotal
public void setShowTotal(boolean newShowTotal) - Specified by:
setShowTotal
in interfaceLegend
- Parameters:
newShowTotal
- the new value of the 'Show Total' attribute.- See Also:
-
unsetShowTotal
public void unsetShowTotal()- Specified by:
unsetShowTotal
in interfaceLegend
- See Also:
-
isSetShowTotal
public boolean isSetShowTotal()- Specified by:
isSetShowTotal
in interfaceLegend
- Returns:
- whether the value of the 'Show Total' attribute is set.
- See Also:
-
getWrappingSize
public double getWrappingSize()- Specified by:
getWrappingSize
in interfaceLegend
- Returns:
- the value of the 'Wrapping Size' attribute.
- See Also:
-
setWrappingSize
public void setWrappingSize(double newWrappingSize) - Specified by:
setWrappingSize
in interfaceLegend
- Parameters:
newWrappingSize
- the new value of the 'Wrapping Size' attribute.- See Also:
-
unsetWrappingSize
public void unsetWrappingSize()- Specified by:
unsetWrappingSize
in interfaceLegend
- See Also:
-
isSetWrappingSize
public boolean isSetWrappingSize()- Specified by:
isSetWrappingSize
in interfaceLegend
- Returns:
- whether the value of the 'Wrapping Size' attribute is set.
- See Also:
-
getMaxPercent
public double getMaxPercent()- Specified by:
getMaxPercent
in interfaceLegend
- Returns:
- the value of the 'Max Percent' attribute.
- See Also:
-
setMaxPercent
public void setMaxPercent(double newMaxPercent) - Specified by:
setMaxPercent
in interfaceLegend
- Parameters:
newMaxPercent
- the new value of the 'Max Percent' attribute.- See Also:
-
unsetMaxPercent
public void unsetMaxPercent()- Specified by:
unsetMaxPercent
in interfaceLegend
- See Also:
-
isSetMaxPercent
public boolean isSetMaxPercent()- Specified by:
isSetMaxPercent
in interfaceLegend
- Returns:
- whether the value of the 'Max Percent' attribute is set.
- See Also:
-
getTitlePercent
public double getTitlePercent()- Specified by:
getTitlePercent
in interfaceLegend
- Returns:
- the value of the 'Title Percent' attribute.
- See Also:
-
setTitlePercent
public void setTitlePercent(double newTitlePercent) - Specified by:
setTitlePercent
in interfaceLegend
- Parameters:
newTitlePercent
- the new value of the 'Title Percent' attribute.- See Also:
-
unsetTitlePercent
public void unsetTitlePercent()- Specified by:
unsetTitlePercent
in interfaceLegend
- See Also:
-
isSetTitlePercent
public boolean isSetTitlePercent()- Specified by:
isSetTitlePercent
in interfaceLegend
- Returns:
- whether the value of the 'Title Percent' attribute is set.
- See Also:
-
getEllipsis
public int getEllipsis()- Specified by:
getEllipsis
in interfaceLegend
- Returns:
- the value of the 'Ellipsis' attribute.
- See Also:
-
setEllipsis
public void setEllipsis(int newEllipsis) - Specified by:
setEllipsis
in interfaceLegend
- Parameters:
newEllipsis
- the new value of the 'Ellipsis' attribute.- See Also:
-
unsetEllipsis
public void unsetEllipsis()- Specified by:
unsetEllipsis
in interfaceLegend
- See Also:
-
isSetEllipsis
public boolean isSetEllipsis()- Specified by:
isSetEllipsis
in interfaceLegend
- Returns:
- whether the value of the 'Ellipsis' attribute is set.
- See Also:
-
getFormatSpecifier
- Specified by:
getFormatSpecifier
in 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:
setFormatSpecifier
in 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:
eInverseRemove
in 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:Block
Computes and returns the size of the title block based on the text content and its attributes- Specified by:
getPreferredSize
in interfaceBlock
- Overrides:
getPreferredSize
in 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:Legend
Update the legend's block relationship in the hierarchy w.r.t. the chart model- Specified by:
updateLayout
in interfaceLegend
-
copyInstance
- Specified by:
copyInstance
in interfaceBlock
- Specified by:
copyInstance
in interfaceIChartObject
- Specified by:
copyInstance
in interfaceLegend
- Overrides:
copyInstance
in classBlockImpl
-