|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
public class LegendImpl
An implementation of the model object ' Legend'.
The following features are implemented:
Horizontal SpacingVertical SpacingClient AreaTextOrientationDirectionSeparatorPositionItem TypeTitleTitle PositionShow ValueShow PercentShow TotalWrapping SizeMax PercentTitle Percent
| 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> |
| 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 | |
|---|---|
org.eclipse.emf.common.notify.NotificationChain |
basicSetClientArea(ClientArea newClientArea,
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 Block |
create()
A convenience method to create an initialized 'Legendt' 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 |
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 |
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 |
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 |
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. |
| Methods inherited from class org.eclipse.birt.chart.model.layout.impl.BlockImpl |
|---|
add, basicSetBackground, basicSetBounds, basicSetInsets, basicSetMinSize, basicSetOutline, children, getAnchor, getBackground, getBounds, getChildren, getColumn, getColumnspan, 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, 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, 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, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, 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, 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, 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, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
eNotificationRequired |
| Method Detail |
|---|
public int getHorizontalSpacing()
getHorizontalSpacing in interface LegendLegend.isSetHorizontalSpacing(),
Legend.unsetHorizontalSpacing(),
Legend.setHorizontalSpacing(int),
LayoutPackage.getLegend_HorizontalSpacing()public void setHorizontalSpacing(int newHorizontalSpacing)
setHorizontalSpacing in interface LegendnewHorizontalSpacing - the new value of the 'Horizontal Spacing' attribute.Legend.isSetHorizontalSpacing(),
Legend.unsetHorizontalSpacing(),
Legend.getHorizontalSpacing()public void unsetHorizontalSpacing()
unsetHorizontalSpacing in interface LegendLegend.isSetHorizontalSpacing(),
Legend.getHorizontalSpacing(),
Legend.setHorizontalSpacing(int)public boolean isSetHorizontalSpacing()
isSetHorizontalSpacing in interface LegendLegend.unsetHorizontalSpacing(),
Legend.getHorizontalSpacing(),
Legend.setHorizontalSpacing(int)public int getVerticalSpacing()
getVerticalSpacing in interface LegendLegend.isSetVerticalSpacing(),
Legend.unsetVerticalSpacing(),
Legend.setVerticalSpacing(int),
LayoutPackage.getLegend_VerticalSpacing()public void setVerticalSpacing(int newVerticalSpacing)
setVerticalSpacing in interface LegendnewVerticalSpacing - the new value of the 'Vertical Spacing' attribute.Legend.isSetVerticalSpacing(),
Legend.unsetVerticalSpacing(),
Legend.getVerticalSpacing()public void unsetVerticalSpacing()
unsetVerticalSpacing in interface LegendLegend.isSetVerticalSpacing(),
Legend.getVerticalSpacing(),
Legend.setVerticalSpacing(int)public boolean isSetVerticalSpacing()
isSetVerticalSpacing in interface LegendLegend.unsetVerticalSpacing(),
Legend.getVerticalSpacing(),
Legend.setVerticalSpacing(int)public ClientArea getClientArea()
getClientArea in interface LegendLegend.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 LegendnewClientArea - the new value of the 'Client Area' containment reference.Legend.getClientArea()public Text getText()
getText in interface LegendLegend.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 LegendnewText - the new value of the 'Text' containment reference.Legend.getText()public Orientation getOrientation()
getOrientation in interface LegendOrientation,
Legend.isSetOrientation(),
Legend.unsetOrientation(),
Legend.setOrientation(Orientation),
LayoutPackage.getLegend_Orientation()public void setOrientation(Orientation newOrientation)
setOrientation in interface LegendnewOrientation - the new value of the 'Orientation' attribute.Orientation,
Legend.isSetOrientation(),
Legend.unsetOrientation(),
Legend.getOrientation()public void unsetOrientation()
unsetOrientation in interface LegendLegend.isSetOrientation(),
Legend.getOrientation(),
Legend.setOrientation(Orientation)public boolean isSetOrientation()
isSetOrientation in interface LegendLegend.unsetOrientation(),
Legend.getOrientation(),
Legend.setOrientation(Orientation)public Direction getDirection()
getDirection in interface LegendDirection,
Legend.isSetDirection(),
Legend.unsetDirection(),
Legend.setDirection(Direction),
LayoutPackage.getLegend_Direction()public void setDirection(Direction newDirection)
setDirection in interface LegendnewDirection - the new value of the 'Direction' attribute.Direction,
Legend.isSetDirection(),
Legend.unsetDirection(),
Legend.getDirection()public void unsetDirection()
unsetDirection in interface LegendLegend.isSetDirection(),
Legend.getDirection(),
Legend.setDirection(Direction)public boolean isSetDirection()
isSetDirection in interface LegendLegend.unsetDirection(),
Legend.getDirection(),
Legend.setDirection(Direction)public LineAttributes getSeparator()
getSeparator in interface LegendLegend.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 LegendnewSeparator - the new value of the 'Separator' containment reference.Legend.getSeparator()public Position getPosition()
getPosition in interface LegendPosition,
Legend.isSetPosition(),
Legend.unsetPosition(),
Legend.setPosition(Position),
LayoutPackage.getLegend_Position()public void setPosition(Position newPosition)
setPosition in interface LegendnewPosition - the new value of the 'Position' attribute.Position,
Legend.isSetPosition(),
Legend.unsetPosition(),
Legend.getPosition()public void unsetPosition()
unsetPosition in interface LegendLegend.isSetPosition(),
Legend.getPosition(),
Legend.setPosition(Position)public boolean isSetPosition()
isSetPosition in interface LegendLegend.unsetPosition(),
Legend.getPosition(),
Legend.setPosition(Position)public LegendItemType getItemType()
getItemType in interface LegendLegendItemType,
Legend.isSetItemType(),
Legend.unsetItemType(),
Legend.setItemType(LegendItemType),
LayoutPackage.getLegend_ItemType()public void setItemType(LegendItemType newItemType)
setItemType in interface LegendnewItemType - the new value of the 'Item Type' attribute.LegendItemType,
Legend.isSetItemType(),
Legend.unsetItemType(),
Legend.getItemType()public void unsetItemType()
unsetItemType in interface LegendLegend.isSetItemType(),
Legend.getItemType(),
Legend.setItemType(LegendItemType)public boolean isSetItemType()
isSetItemType in interface LegendLegend.unsetItemType(),
Legend.getItemType(),
Legend.setItemType(LegendItemType)public Label getTitle()
getTitle in interface LegendLegend.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 LegendnewTitle - the new value of the 'Title' containment reference.Legend.getTitle()public Position getTitlePosition()
getTitlePosition in interface LegendPosition,
Legend.isSetTitlePosition(),
Legend.unsetTitlePosition(),
Legend.setTitlePosition(Position),
LayoutPackage.getLegend_TitlePosition()public void setTitlePosition(Position newTitlePosition)
setTitlePosition in interface LegendnewTitlePosition - the new value of the 'Title Position' attribute.Position,
Legend.isSetTitlePosition(),
Legend.unsetTitlePosition(),
Legend.getTitlePosition()public void unsetTitlePosition()
unsetTitlePosition in interface LegendLegend.isSetTitlePosition(),
Legend.getTitlePosition(),
Legend.setTitlePosition(Position)public boolean isSetTitlePosition()
isSetTitlePosition in interface LegendLegend.unsetTitlePosition(),
Legend.getTitlePosition(),
Legend.setTitlePosition(Position)public boolean isShowValue()
isShowValue in interface LegendLegend.isSetShowValue(),
Legend.unsetShowValue(),
Legend.setShowValue(boolean),
LayoutPackage.getLegend_ShowValue()public void setShowValue(boolean newShowValue)
setShowValue in interface LegendnewShowValue - the new value of the 'Show Value' attribute.Legend.isSetShowValue(),
Legend.unsetShowValue(),
Legend.isShowValue()public void unsetShowValue()
unsetShowValue in interface LegendLegend.isSetShowValue(),
Legend.isShowValue(),
Legend.setShowValue(boolean)public boolean isSetShowValue()
isSetShowValue in interface LegendLegend.unsetShowValue(),
Legend.isShowValue(),
Legend.setShowValue(boolean)public boolean isShowPercent()
isShowPercent in interface LegendLegend.isSetShowPercent(),
Legend.unsetShowPercent(),
Legend.setShowPercent(boolean),
LayoutPackage.getLegend_ShowPercent()public void setShowPercent(boolean newShowPercent)
setShowPercent in interface LegendnewShowPercent - the new value of the 'Show Percent' attribute.Legend.isSetShowPercent(),
Legend.unsetShowPercent(),
Legend.isShowPercent()public void unsetShowPercent()
unsetShowPercent in interface LegendLegend.isSetShowPercent(),
Legend.isShowPercent(),
Legend.setShowPercent(boolean)public boolean isSetShowPercent()
isSetShowPercent in interface LegendLegend.unsetShowPercent(),
Legend.isShowPercent(),
Legend.setShowPercent(boolean)public boolean isShowTotal()
isShowTotal in interface LegendLegend.isSetShowTotal(),
Legend.unsetShowTotal(),
Legend.setShowTotal(boolean),
LayoutPackage.getLegend_ShowTotal()public void setShowTotal(boolean newShowTotal)
setShowTotal in interface LegendnewShowTotal - the new value of the 'Show Total' attribute.Legend.isSetShowTotal(),
Legend.unsetShowTotal(),
Legend.isShowTotal()public void unsetShowTotal()
unsetShowTotal in interface LegendLegend.isSetShowTotal(),
Legend.isShowTotal(),
Legend.setShowTotal(boolean)public boolean isSetShowTotal()
isSetShowTotal in interface LegendLegend.unsetShowTotal(),
Legend.isShowTotal(),
Legend.setShowTotal(boolean)public double getWrappingSize()
getWrappingSize in interface LegendLegend.isSetWrappingSize(),
Legend.unsetWrappingSize(),
Legend.setWrappingSize(double),
LayoutPackage.getLegend_WrappingSize()public void setWrappingSize(double newWrappingSize)
setWrappingSize in interface LegendnewWrappingSize - the new value of the 'Wrapping Size' attribute.Legend.isSetWrappingSize(),
Legend.unsetWrappingSize(),
Legend.getWrappingSize()public void unsetWrappingSize()
unsetWrappingSize in interface LegendLegend.isSetWrappingSize(),
Legend.getWrappingSize(),
Legend.setWrappingSize(double)public boolean isSetWrappingSize()
isSetWrappingSize in interface LegendLegend.unsetWrappingSize(),
Legend.getWrappingSize(),
Legend.setWrappingSize(double)public double getMaxPercent()
getMaxPercent in interface LegendLegend.isSetMaxPercent(),
Legend.unsetMaxPercent(),
Legend.setMaxPercent(double),
LayoutPackage.getLegend_MaxPercent()public void setMaxPercent(double newMaxPercent)
setMaxPercent in interface LegendnewMaxPercent - the new value of the 'Max Percent' attribute.Legend.isSetMaxPercent(),
Legend.unsetMaxPercent(),
Legend.getMaxPercent()public void unsetMaxPercent()
unsetMaxPercent in interface LegendLegend.isSetMaxPercent(),
Legend.getMaxPercent(),
Legend.setMaxPercent(double)public boolean isSetMaxPercent()
isSetMaxPercent in interface LegendLegend.unsetMaxPercent(),
Legend.getMaxPercent(),
Legend.setMaxPercent(double)public double getTitlePercent()
getTitlePercent in interface LegendLegend.isSetTitlePercent(),
Legend.unsetTitlePercent(),
Legend.setTitlePercent(double),
LayoutPackage.getLegend_TitlePercent()public void setTitlePercent(double newTitlePercent)
setTitlePercent in interface LegendnewTitlePercent - the new value of the 'Title Percent' attribute.Legend.isSetTitlePercent(),
Legend.unsetTitlePercent(),
Legend.getTitlePercent()public void unsetTitlePercent()
unsetTitlePercent in interface LegendLegend.isSetTitlePercent(),
Legend.getTitlePercent(),
Legend.setTitlePercent(double)public boolean isSetTitlePercent()
isSetTitlePercent in interface LegendLegend.unsetTitlePercent(),
Legend.getTitlePercent(),
Legend.setTitlePercent(double)
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)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class BlockImpl
public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class BlockImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class BlockImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class BlockImplpublic java.lang.String toString()
toString in class BlockImplpublic boolean isLegend()
isLegend in interface BlockisLegend in class BlockImplpublic boolean isCustom()
isCustom in interface BlockisCustom in class BlockImpl
public final Size getPreferredSize(IDisplayServer xs,
Chart cm,
RunTimeContext rtc)
throws ChartException
Block
getPreferredSize in interface BlockgetPreferredSize in class BlockImplxs - The Xserver used in computing the scaling factor (pixels =>
points)cm - The chart model instance (if needed)
ChartExceptionpublic static final Block create()
public final void updateLayout(Chart cm)
Legend
updateLayout in interface Legend
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||