Class LabelBlockImpl
- 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.LabelBlockImpl
-
- All Implemented Interfaces:
IChartObject
,Block
,LabelBlock
,org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
- Direct Known Subclasses:
TitleBlockImpl
public class LabelBlockImpl extends BlockImpl implements LabelBlock
An implementation of the model object ' Label Block'.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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.notify.NotificationChain
basicSetLabel(Label newLabel, org.eclipse.emf.common.notify.NotificationChain msgs)
LabelBlock
copyInstance()
static Block
create()
A convenience method to create an initialized 'LabelBlock' instancestatic Block
createDefault()
A convenience method to create an initialized 'LabelBlock' instancejava.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)
Label
getLabel()
Size
getPreferredSize(IDisplayServer xs, Chart cm, RunTimeContext rtc)
Computes and returns the size of the title block based on the text content and its attributesvoid
setLabel(Label newLabel)
-
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, isCustom, isLegend, 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, toString, 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, isCustom, isLegend, 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
-
-
-
-
Method Detail
-
getLabel
public Label getLabel()
- Specified by:
getLabel
in interfaceLabelBlock
- Returns:
- the value of the 'Label' containment reference.
- See Also:
LabelBlock.setLabel(Label)
,LayoutPackage.getLabelBlock_Label()
-
basicSetLabel
public org.eclipse.emf.common.notify.NotificationChain basicSetLabel(Label newLabel, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setLabel
public void setLabel(Label newLabel)
- Specified by:
setLabel
in interfaceLabelBlock
- Parameters:
newLabel
- the new value of the 'Label' containment reference.- See Also:
LabelBlock.getLabel()
-
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
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
-
eSet
public void eSet(int featureID, java.lang.Object newValue)
-
eUnset
public void eUnset(int featureID)
-
eIsSet
public boolean eIsSet(int featureID)
-
create
public static Block create()
A convenience method to create an initialized 'LabelBlock' instance- Returns:
-
createDefault
public static Block createDefault()
A convenience method to create an initialized 'LabelBlock' instance- Returns:
-
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
-
copyInstance
public LabelBlock copyInstance()
- Specified by:
copyInstance
in interfaceBlock
- Specified by:
copyInstance
in interfaceIChartObject
- Specified by:
copyInstance
in interfaceLabelBlock
- Overrides:
copyInstance
in classBlockImpl
-
-