public class LegendImpl extends BlockImpl implements Legend
The following features are implemented:
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
Modifier and Type | Method and Description |
---|---|
org.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) |
Legend |
copyInstance() |
static Block |
create()
A convenience method to create an initialized 'Legend' instance
|
static Block |
createDefault()
A convenience method to create an initialized 'Legend' instance
|
java.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) |
ClientArea |
getClientArea() |
Direction |
getDirection() |
int |
getEllipsis() |
FormatSpecifier |
getFormatSpecifier() |
int |
getHorizontalSpacing() |
LegendItemType |
getItemType() |
double |
getMaxPercent() |
Orientation |
getOrientation() |
Position |
getPosition() |
Size |
getPreferredSize(IDisplayServer xs,
Chart cm,
RunTimeContext rtc)
Computes and returns the size of the title block based on the text
content and its attributes
|
LineAttributes |
getSeparator() |
Text |
getText() |
Label |
getTitle() |
double |
getTitlePercent() |
Position |
getTitlePosition() |
int |
getVerticalSpacing() |
double |
getWrappingSize() |
boolean |
isCustom()
Note: Manually written
|
boolean |
isLegend()
Note: Manually written
|
boolean |
isSetDirection() |
boolean |
isSetEllipsis() |
boolean |
isSetHorizontalSpacing() |
boolean |
isSetItemType() |
boolean |
isSetMaxPercent() |
boolean |
isSetOrientation() |
boolean |
isSetPosition() |
boolean |
isSetShowPercent() |
boolean |
isSetShowTotal() |
boolean |
isSetShowValue() |
boolean |
isSetTitlePercent() |
boolean |
isSetTitlePosition() |
boolean |
isSetVerticalSpacing() |
boolean |
isSetWrappingSize() |
boolean |
isShowPercent() |
boolean |
isShowTotal() |
boolean |
isShowValue() |
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 |
setText(Text newText) |
void |
setTitle(Label newTitle) |
void |
setTitlePercent(double newTitlePercent) |
void |
setTitlePosition(Position newTitlePosition) |
void |
setVerticalSpacing(int newVerticalSpacing) |
void |
setWrappingSize(double newWrappingSize) |
java.lang.String |
toString() |
void |
unsetDirection() |
void |
unsetEllipsis() |
void |
unsetHorizontalSpacing() |
void |
unsetItemType() |
void |
unsetMaxPercent() |
void |
unsetOrientation() |
void |
unsetPosition() |
void |
unsetShowPercent() |
void |
unsetShowTotal() |
void |
unsetShowValue() |
void |
unsetTitlePercent() |
void |
unsetTitlePosition() |
void |
unsetVerticalSpacing() |
void |
unsetWrappingSize() |
void |
updateLayout(Chart cm)
Update the legend's block relationship in the hierarchy w.r.t.
|
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
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
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
eNotificationRequired, eNotify
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
public int getHorizontalSpacing()
getHorizontalSpacing
in interface Legend
Legend.isSetHorizontalSpacing()
,
Legend.unsetHorizontalSpacing()
,
Legend.setHorizontalSpacing(int)
,
LayoutPackage.getLegend_HorizontalSpacing()
public void setHorizontalSpacing(int newHorizontalSpacing)
setHorizontalSpacing
in interface Legend
newHorizontalSpacing
- the new value of the 'Horizontal Spacing' attribute.Legend.isSetHorizontalSpacing()
,
Legend.unsetHorizontalSpacing()
,
Legend.getHorizontalSpacing()
public void unsetHorizontalSpacing()
unsetHorizontalSpacing
in interface Legend
Legend.isSetHorizontalSpacing()
,
Legend.getHorizontalSpacing()
,
Legend.setHorizontalSpacing(int)
public boolean isSetHorizontalSpacing()
isSetHorizontalSpacing
in interface Legend
Legend.unsetHorizontalSpacing()
,
Legend.getHorizontalSpacing()
,
Legend.setHorizontalSpacing(int)
public int getVerticalSpacing()
getVerticalSpacing
in interface Legend
Legend.isSetVerticalSpacing()
,
Legend.unsetVerticalSpacing()
,
Legend.setVerticalSpacing(int)
,
LayoutPackage.getLegend_VerticalSpacing()
public void setVerticalSpacing(int newVerticalSpacing)
setVerticalSpacing
in interface Legend
newVerticalSpacing
- the new value of the 'Vertical Spacing' attribute.Legend.isSetVerticalSpacing()
,
Legend.unsetVerticalSpacing()
,
Legend.getVerticalSpacing()
public void unsetVerticalSpacing()
unsetVerticalSpacing
in interface Legend
Legend.isSetVerticalSpacing()
,
Legend.getVerticalSpacing()
,
Legend.setVerticalSpacing(int)
public boolean isSetVerticalSpacing()
isSetVerticalSpacing
in interface Legend
Legend.unsetVerticalSpacing()
,
Legend.getVerticalSpacing()
,
Legend.setVerticalSpacing(int)
public ClientArea getClientArea()
getClientArea
in interface Legend
Legend.setClientArea(ClientArea)
,
LayoutPackage.getLegend_ClientArea()
public org.eclipse.emf.common.notify.NotificationChain basicSetClientArea(ClientArea newClientArea, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setClientArea(ClientArea newClientArea)
setClientArea
in interface Legend
newClientArea
- the new value of the 'Client Area' containment reference.Legend.getClientArea()
public Text getText()
getText
in interface Legend
Legend.setText(Text)
,
LayoutPackage.getLegend_Text()
public org.eclipse.emf.common.notify.NotificationChain basicSetText(Text newText, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setText(Text newText)
setText
in interface Legend
newText
- the new value of the 'Text' containment reference.Legend.getText()
public Orientation getOrientation()
getOrientation
in interface Legend
Orientation
,
Legend.isSetOrientation()
,
Legend.unsetOrientation()
,
Legend.setOrientation(Orientation)
,
LayoutPackage.getLegend_Orientation()
public void setOrientation(Orientation newOrientation)
setOrientation
in interface Legend
newOrientation
- the new value of the 'Orientation' attribute.Orientation
,
Legend.isSetOrientation()
,
Legend.unsetOrientation()
,
Legend.getOrientation()
public void unsetOrientation()
unsetOrientation
in interface Legend
Legend.isSetOrientation()
,
Legend.getOrientation()
,
Legend.setOrientation(Orientation)
public boolean isSetOrientation()
isSetOrientation
in interface Legend
Legend.unsetOrientation()
,
Legend.getOrientation()
,
Legend.setOrientation(Orientation)
public Direction getDirection()
getDirection
in interface Legend
Direction
,
Legend.isSetDirection()
,
Legend.unsetDirection()
,
Legend.setDirection(Direction)
,
LayoutPackage.getLegend_Direction()
public void setDirection(Direction newDirection)
setDirection
in interface Legend
newDirection
- the new value of the 'Direction' attribute.Direction
,
Legend.isSetDirection()
,
Legend.unsetDirection()
,
Legend.getDirection()
public void unsetDirection()
unsetDirection
in interface Legend
Legend.isSetDirection()
,
Legend.getDirection()
,
Legend.setDirection(Direction)
public boolean isSetDirection()
isSetDirection
in interface Legend
Legend.unsetDirection()
,
Legend.getDirection()
,
Legend.setDirection(Direction)
public LineAttributes getSeparator()
getSeparator
in interface Legend
Legend.setSeparator(LineAttributes)
,
LayoutPackage.getLegend_Separator()
public org.eclipse.emf.common.notify.NotificationChain basicSetSeparator(LineAttributes newSeparator, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setSeparator(LineAttributes newSeparator)
setSeparator
in interface Legend
newSeparator
- the new value of the 'Separator' containment reference.Legend.getSeparator()
public Position getPosition()
getPosition
in interface Legend
Position
,
Legend.isSetPosition()
,
Legend.unsetPosition()
,
Legend.setPosition(Position)
,
LayoutPackage.getLegend_Position()
public void setPosition(Position newPosition)
setPosition
in interface Legend
newPosition
- the new value of the 'Position' attribute.Position
,
Legend.isSetPosition()
,
Legend.unsetPosition()
,
Legend.getPosition()
public void unsetPosition()
unsetPosition
in interface Legend
Legend.isSetPosition()
,
Legend.getPosition()
,
Legend.setPosition(Position)
public boolean isSetPosition()
isSetPosition
in interface Legend
Legend.unsetPosition()
,
Legend.getPosition()
,
Legend.setPosition(Position)
public LegendItemType getItemType()
getItemType
in interface Legend
LegendItemType
,
Legend.isSetItemType()
,
Legend.unsetItemType()
,
Legend.setItemType(LegendItemType)
,
LayoutPackage.getLegend_ItemType()
public void setItemType(LegendItemType newItemType)
setItemType
in interface Legend
newItemType
- the new value of the 'Item Type' attribute.LegendItemType
,
Legend.isSetItemType()
,
Legend.unsetItemType()
,
Legend.getItemType()
public void unsetItemType()
unsetItemType
in interface Legend
Legend.isSetItemType()
,
Legend.getItemType()
,
Legend.setItemType(LegendItemType)
public boolean isSetItemType()
isSetItemType
in interface Legend
Legend.unsetItemType()
,
Legend.getItemType()
,
Legend.setItemType(LegendItemType)
public Label getTitle()
getTitle
in interface Legend
Legend.setTitle(Label)
,
LayoutPackage.getLegend_Title()
public org.eclipse.emf.common.notify.NotificationChain basicSetTitle(Label newTitle, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setTitle(Label newTitle)
setTitle
in interface Legend
newTitle
- the new value of the 'Title' containment reference.Legend.getTitle()
public Position getTitlePosition()
getTitlePosition
in interface Legend
Position
,
Legend.isSetTitlePosition()
,
Legend.unsetTitlePosition()
,
Legend.setTitlePosition(Position)
,
LayoutPackage.getLegend_TitlePosition()
public void setTitlePosition(Position newTitlePosition)
setTitlePosition
in interface Legend
newTitlePosition
- the new value of the 'Title Position' attribute.Position
,
Legend.isSetTitlePosition()
,
Legend.unsetTitlePosition()
,
Legend.getTitlePosition()
public void unsetTitlePosition()
unsetTitlePosition
in interface Legend
Legend.isSetTitlePosition()
,
Legend.getTitlePosition()
,
Legend.setTitlePosition(Position)
public boolean isSetTitlePosition()
isSetTitlePosition
in interface Legend
Legend.unsetTitlePosition()
,
Legend.getTitlePosition()
,
Legend.setTitlePosition(Position)
public boolean isShowValue()
isShowValue
in interface Legend
Legend.isSetShowValue()
,
Legend.unsetShowValue()
,
Legend.setShowValue(boolean)
,
LayoutPackage.getLegend_ShowValue()
public void setShowValue(boolean newShowValue)
setShowValue
in interface Legend
newShowValue
- the new value of the 'Show Value' attribute.Legend.isSetShowValue()
,
Legend.unsetShowValue()
,
Legend.isShowValue()
public void unsetShowValue()
unsetShowValue
in interface Legend
Legend.isSetShowValue()
,
Legend.isShowValue()
,
Legend.setShowValue(boolean)
public boolean isSetShowValue()
isSetShowValue
in interface Legend
Legend.unsetShowValue()
,
Legend.isShowValue()
,
Legend.setShowValue(boolean)
public boolean isShowPercent()
isShowPercent
in interface Legend
Legend.isSetShowPercent()
,
Legend.unsetShowPercent()
,
Legend.setShowPercent(boolean)
,
LayoutPackage.getLegend_ShowPercent()
public void setShowPercent(boolean newShowPercent)
setShowPercent
in interface Legend
newShowPercent
- the new value of the 'Show Percent' attribute.Legend.isSetShowPercent()
,
Legend.unsetShowPercent()
,
Legend.isShowPercent()
public void unsetShowPercent()
unsetShowPercent
in interface Legend
Legend.isSetShowPercent()
,
Legend.isShowPercent()
,
Legend.setShowPercent(boolean)
public boolean isSetShowPercent()
isSetShowPercent
in interface Legend
Legend.unsetShowPercent()
,
Legend.isShowPercent()
,
Legend.setShowPercent(boolean)
public boolean isShowTotal()
isShowTotal
in interface Legend
Legend.isSetShowTotal()
,
Legend.unsetShowTotal()
,
Legend.setShowTotal(boolean)
,
LayoutPackage.getLegend_ShowTotal()
public void setShowTotal(boolean newShowTotal)
setShowTotal
in interface Legend
newShowTotal
- the new value of the 'Show Total' attribute.Legend.isSetShowTotal()
,
Legend.unsetShowTotal()
,
Legend.isShowTotal()
public void unsetShowTotal()
unsetShowTotal
in interface Legend
Legend.isSetShowTotal()
,
Legend.isShowTotal()
,
Legend.setShowTotal(boolean)
public boolean isSetShowTotal()
isSetShowTotal
in interface Legend
Legend.unsetShowTotal()
,
Legend.isShowTotal()
,
Legend.setShowTotal(boolean)
public double getWrappingSize()
getWrappingSize
in interface Legend
Legend.isSetWrappingSize()
,
Legend.unsetWrappingSize()
,
Legend.setWrappingSize(double)
,
LayoutPackage.getLegend_WrappingSize()
public void setWrappingSize(double newWrappingSize)
setWrappingSize
in interface Legend
newWrappingSize
- the new value of the 'Wrapping Size' attribute.Legend.isSetWrappingSize()
,
Legend.unsetWrappingSize()
,
Legend.getWrappingSize()
public void unsetWrappingSize()
unsetWrappingSize
in interface Legend
Legend.isSetWrappingSize()
,
Legend.getWrappingSize()
,
Legend.setWrappingSize(double)
public boolean isSetWrappingSize()
isSetWrappingSize
in interface Legend
Legend.unsetWrappingSize()
,
Legend.getWrappingSize()
,
Legend.setWrappingSize(double)
public double getMaxPercent()
getMaxPercent
in interface Legend
Legend.isSetMaxPercent()
,
Legend.unsetMaxPercent()
,
Legend.setMaxPercent(double)
,
LayoutPackage.getLegend_MaxPercent()
public void setMaxPercent(double newMaxPercent)
setMaxPercent
in interface Legend
newMaxPercent
- the new value of the 'Max Percent' attribute.Legend.isSetMaxPercent()
,
Legend.unsetMaxPercent()
,
Legend.getMaxPercent()
public void unsetMaxPercent()
unsetMaxPercent
in interface Legend
Legend.isSetMaxPercent()
,
Legend.getMaxPercent()
,
Legend.setMaxPercent(double)
public boolean isSetMaxPercent()
isSetMaxPercent
in interface Legend
Legend.unsetMaxPercent()
,
Legend.getMaxPercent()
,
Legend.setMaxPercent(double)
public double getTitlePercent()
getTitlePercent
in interface Legend
Legend.isSetTitlePercent()
,
Legend.unsetTitlePercent()
,
Legend.setTitlePercent(double)
,
LayoutPackage.getLegend_TitlePercent()
public void setTitlePercent(double newTitlePercent)
setTitlePercent
in interface Legend
newTitlePercent
- the new value of the 'Title Percent' attribute.Legend.isSetTitlePercent()
,
Legend.unsetTitlePercent()
,
Legend.getTitlePercent()
public void unsetTitlePercent()
unsetTitlePercent
in interface Legend
Legend.isSetTitlePercent()
,
Legend.getTitlePercent()
,
Legend.setTitlePercent(double)
public boolean isSetTitlePercent()
isSetTitlePercent
in interface Legend
Legend.unsetTitlePercent()
,
Legend.getTitlePercent()
,
Legend.setTitlePercent(double)
public int getEllipsis()
getEllipsis
in interface Legend
Legend.isSetEllipsis()
,
Legend.unsetEllipsis()
,
Legend.setEllipsis(int)
,
LayoutPackage.getLegend_Ellipsis()
public void setEllipsis(int newEllipsis)
setEllipsis
in interface Legend
newEllipsis
- the new value of the 'Ellipsis' attribute.Legend.isSetEllipsis()
,
Legend.unsetEllipsis()
,
Legend.getEllipsis()
public void unsetEllipsis()
unsetEllipsis
in interface Legend
Legend.isSetEllipsis()
,
Legend.getEllipsis()
,
Legend.setEllipsis(int)
public boolean isSetEllipsis()
isSetEllipsis
in interface Legend
Legend.unsetEllipsis()
,
Legend.getEllipsis()
,
Legend.setEllipsis(int)
public FormatSpecifier getFormatSpecifier()
getFormatSpecifier
in interface Legend
Legend.setFormatSpecifier(FormatSpecifier)
,
LayoutPackage.getLegend_FormatSpecifier()
public org.eclipse.emf.common.notify.NotificationChain basicSetFormatSpecifier(FormatSpecifier newFormatSpecifier, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setFormatSpecifier(FormatSpecifier newFormatSpecifier)
setFormatSpecifier
in interface Legend
newFormatSpecifier
- the new value of the 'Format Specifier' containment reference.Legend.getFormatSpecifier()
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class BlockImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
public void eSet(int featureID, java.lang.Object newValue)
public void eUnset(int featureID)
public boolean eIsSet(int featureID)
public boolean isLegend()
public boolean isCustom()
public final Size getPreferredSize(IDisplayServer xs, Chart cm, RunTimeContext rtc) throws ChartException
Block
getPreferredSize
in interface Block
getPreferredSize
in class BlockImpl
xs
- The Xserver used in computing the scaling factor (pixels =>
points)cm
- The chart model instance (if needed)ChartException
public static final Block create()
public static final Block createDefault()
public final void updateLayout(Chart cm)
Legend
updateLayout
in interface Legend
public Legend copyInstance()
copyInstance
in interface IChartObject
copyInstance
in interface Block
copyInstance
in interface Legend
copyInstance
in class BlockImpl
Copyright © 2005-2008 Actuate Corp. All rights reserved.