Class BlockImpl
- 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
-
- All Implemented Interfaces:
IChartObject,Block,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
- Direct Known Subclasses:
LabelBlockImpl,LegendImpl,PlotImpl
public class BlockImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Block
An implementation of the model object ' 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 voidadd(Block bl)Note: Manually writtenorg.eclipse.emf.common.notify.NotificationChainbasicSetBackground(Fill newBackground, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetBounds(Bounds newBounds, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetCursor(Cursor newCursor, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetInsets(Insets newInsets, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetMinSize(Size newMinSize, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetOutline(LineAttributes newOutline, org.eclipse.emf.common.notify.NotificationChain msgs)java.util.Enumeration<Block>children(boolean bRecursive)Note: Manually writtenBlockcopyInstance()static Blockcreate()A convenience method to create an initialized 'Block' instance Note: Manually writtenstatic BlockcreateDefault()A convenience method to create an initialized 'Block' instance Note: Manually writtenjava.lang.ObjecteGet(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)voideSet(int featureID, java.lang.Object newValue)voideUnset(int featureID)AnchorgetAnchor()FillgetBackground()BoundsgetBounds()org.eclipse.emf.common.util.EList<Block>getChildren()intgetColumn()intgetColumnspan()CursorgetCursor()doublegetHeightHint()InsetsgetInsets()SizegetMinSize()LineAttributesgetOutline()SizegetPreferredSize(IDisplayServer xs, Chart cm, RunTimeContext rtc)Computes and returns the size of the title block based on the text content and its attributesintgetRow()intgetRowspan()StretchgetStretch()org.eclipse.emf.common.util.EList<Trigger>getTriggers()doublegetWidthHint()booleanisCustom()Note: Manually writtenbooleanisLegend()Note: Manually writtenbooleanisPlot()Note: Manually writtenbooleanisSetAnchor()booleanisSetColumn()booleanisSetColumnspan()booleanisSetHeightHint()booleanisSetRow()booleanisSetRowspan()booleanisSetStretch()booleanisSetVisible()booleanisSetWidthHint()booleanisText()Note: Manually writtenbooleanisTitle()Note: Manually writtenbooleanisVisible()voidremove(Block bl)Note: Manually writtenvoidsetAnchor(Anchor newAnchor)voidsetBackground(Fill newBackground)voidsetBounds(Bounds newBounds)voidsetColumn(int newColumn)voidsetColumnspan(int newColumnspan)voidsetCursor(Cursor newCursor)voidsetHeightHint(double newHeightHint)voidsetInsets(Insets newInsets)voidsetMinSize(Size newMinSize)voidsetOutline(LineAttributes newOutline)voidsetRow(int newRow)voidsetRowspan(int newRowspan)voidsetStretch(Stretch newStretch)voidsetVisible(boolean newVisible)voidsetWidthHint(double newWidthHint)java.lang.StringtoString()voidunsetAnchor()voidunsetColumn()voidunsetColumnspan()voidunsetHeightHint()voidunsetRow()voidunsetRowspan()voidunsetStretch()voidunsetVisible()voidunsetWidthHint()-
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
-
-
-
-
Method Detail
-
getChildren
public org.eclipse.emf.common.util.EList<Block> getChildren()
- Specified by:
getChildrenin interfaceBlock- Returns:
- the value of the 'Children' containment reference list.
- See Also:
LayoutPackage.getBlock_Children()
-
getBounds
public Bounds getBounds()
- Specified by:
getBoundsin interfaceBlock- Returns:
- the value of the 'Bounds' containment reference.
- See Also:
Block.setBounds(Bounds),LayoutPackage.getBlock_Bounds()
-
basicSetBounds
public org.eclipse.emf.common.notify.NotificationChain basicSetBounds(Bounds newBounds, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setBounds
public void setBounds(Bounds newBounds)
- Specified by:
setBoundsin interfaceBlock- Parameters:
newBounds- the new value of the 'Bounds' containment reference.- See Also:
Block.getBounds()
-
getAnchor
public Anchor getAnchor()
- Specified by:
getAnchorin interfaceBlock- Returns:
- the value of the 'Anchor' attribute.
- See Also:
Anchor,Block.isSetAnchor(),Block.unsetAnchor(),Block.setAnchor(Anchor),LayoutPackage.getBlock_Anchor()
-
setAnchor
public void setAnchor(Anchor newAnchor)
- Specified by:
setAnchorin interfaceBlock- Parameters:
newAnchor- the new value of the 'Anchor' attribute.- See Also:
Anchor,Block.isSetAnchor(),Block.unsetAnchor(),Block.getAnchor()
-
unsetAnchor
public void unsetAnchor()
- Specified by:
unsetAnchorin interfaceBlock- See Also:
Block.isSetAnchor(),Block.getAnchor(),Block.setAnchor(Anchor)
-
isSetAnchor
public boolean isSetAnchor()
- Specified by:
isSetAnchorin interfaceBlock- Returns:
- whether the value of the 'Anchor' attribute is set.
- See Also:
Block.unsetAnchor(),Block.getAnchor(),Block.setAnchor(Anchor)
-
getStretch
public Stretch getStretch()
- Specified by:
getStretchin interfaceBlock- Returns:
- the value of the 'Stretch' attribute.
- See Also:
Stretch,Block.isSetStretch(),Block.unsetStretch(),Block.setStretch(Stretch),LayoutPackage.getBlock_Stretch()
-
setStretch
public void setStretch(Stretch newStretch)
- Specified by:
setStretchin interfaceBlock- Parameters:
newStretch- the new value of the 'Stretch' attribute.- See Also:
Stretch,Block.isSetStretch(),Block.unsetStretch(),Block.getStretch()
-
unsetStretch
public void unsetStretch()
- Specified by:
unsetStretchin interfaceBlock- See Also:
Block.isSetStretch(),Block.getStretch(),Block.setStretch(Stretch)
-
isSetStretch
public boolean isSetStretch()
- Specified by:
isSetStretchin interfaceBlock- Returns:
- whether the value of the 'Stretch' attribute is set.
- See Also:
Block.unsetStretch(),Block.getStretch(),Block.setStretch(Stretch)
-
getInsets
public Insets getInsets()
- Specified by:
getInsetsin interfaceBlock- Returns:
- the value of the 'Insets' containment reference.
- See Also:
Block.setInsets(Insets),LayoutPackage.getBlock_Insets()
-
basicSetInsets
public org.eclipse.emf.common.notify.NotificationChain basicSetInsets(Insets newInsets, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setInsets
public void setInsets(Insets newInsets)
- Specified by:
setInsetsin interfaceBlock- Parameters:
newInsets- the new value of the 'Insets' containment reference.- See Also:
Block.getInsets()
-
getRow
public int getRow()
- Specified by:
getRowin interfaceBlock- Returns:
- the value of the 'Row' attribute.
- See Also:
Block.isSetRow(),Block.unsetRow(),Block.setRow(int),LayoutPackage.getBlock_Row()
-
setRow
public void setRow(int newRow)
- Specified by:
setRowin interfaceBlock- Parameters:
newRow- the new value of the 'Row' attribute.- See Also:
Block.isSetRow(),Block.unsetRow(),Block.getRow()
-
unsetRow
public void unsetRow()
- Specified by:
unsetRowin interfaceBlock- See Also:
Block.isSetRow(),Block.getRow(),Block.setRow(int)
-
isSetRow
public boolean isSetRow()
- Specified by:
isSetRowin interfaceBlock- Returns:
- whether the value of the 'Row' attribute is set.
- See Also:
Block.unsetRow(),Block.getRow(),Block.setRow(int)
-
getColumn
public int getColumn()
- Specified by:
getColumnin interfaceBlock- Returns:
- the value of the 'Column' attribute.
- See Also:
Block.isSetColumn(),Block.unsetColumn(),Block.setColumn(int),LayoutPackage.getBlock_Column()
-
setColumn
public void setColumn(int newColumn)
- Specified by:
setColumnin interfaceBlock- Parameters:
newColumn- the new value of the 'Column' attribute.- See Also:
Block.isSetColumn(),Block.unsetColumn(),Block.getColumn()
-
unsetColumn
public void unsetColumn()
- Specified by:
unsetColumnin interfaceBlock- See Also:
Block.isSetColumn(),Block.getColumn(),Block.setColumn(int)
-
isSetColumn
public boolean isSetColumn()
- Specified by:
isSetColumnin interfaceBlock- Returns:
- whether the value of the 'Column' attribute is set.
- See Also:
Block.unsetColumn(),Block.getColumn(),Block.setColumn(int)
-
getRowspan
public int getRowspan()
- Specified by:
getRowspanin interfaceBlock- Returns:
- the value of the 'Rowspan' attribute.
- See Also:
Block.isSetRowspan(),Block.unsetRowspan(),Block.setRowspan(int),LayoutPackage.getBlock_Rowspan()
-
setRowspan
public void setRowspan(int newRowspan)
- Specified by:
setRowspanin interfaceBlock- Parameters:
newRowspan- the new value of the 'Rowspan' attribute.- See Also:
Block.isSetRowspan(),Block.unsetRowspan(),Block.getRowspan()
-
unsetRowspan
public void unsetRowspan()
- Specified by:
unsetRowspanin interfaceBlock- See Also:
Block.isSetRowspan(),Block.getRowspan(),Block.setRowspan(int)
-
isSetRowspan
public boolean isSetRowspan()
- Specified by:
isSetRowspanin interfaceBlock- Returns:
- whether the value of the 'Rowspan' attribute is set.
- See Also:
Block.unsetRowspan(),Block.getRowspan(),Block.setRowspan(int)
-
getColumnspan
public int getColumnspan()
- Specified by:
getColumnspanin interfaceBlock- Returns:
- the value of the 'Columnspan' attribute.
- See Also:
Block.isSetColumnspan(),Block.unsetColumnspan(),Block.setColumnspan(int),LayoutPackage.getBlock_Columnspan()
-
setColumnspan
public void setColumnspan(int newColumnspan)
- Specified by:
setColumnspanin interfaceBlock- Parameters:
newColumnspan- the new value of the 'Columnspan' attribute.- See Also:
Block.isSetColumnspan(),Block.unsetColumnspan(),Block.getColumnspan()
-
unsetColumnspan
public void unsetColumnspan()
- Specified by:
unsetColumnspanin interfaceBlock- See Also:
Block.isSetColumnspan(),Block.getColumnspan(),Block.setColumnspan(int)
-
isSetColumnspan
public boolean isSetColumnspan()
- Specified by:
isSetColumnspanin interfaceBlock- Returns:
- whether the value of the 'Columnspan' attribute is set.
- See Also:
Block.unsetColumnspan(),Block.getColumnspan(),Block.setColumnspan(int)
-
getMinSize
public Size getMinSize()
- Specified by:
getMinSizein interfaceBlock- Returns:
- the value of the 'Min Size' containment reference.
- See Also:
Block.setMinSize(Size),LayoutPackage.getBlock_MinSize()
-
basicSetMinSize
public org.eclipse.emf.common.notify.NotificationChain basicSetMinSize(Size newMinSize, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setMinSize
public void setMinSize(Size newMinSize)
- Specified by:
setMinSizein interfaceBlock- Parameters:
newMinSize- the new value of the 'Min Size' containment reference.- See Also:
Block.getMinSize()
-
getOutline
public LineAttributes getOutline()
- Specified by:
getOutlinein interfaceBlock- Returns:
- the value of the 'Outline' containment reference.
- See Also:
Block.setOutline(LineAttributes),LayoutPackage.getBlock_Outline()
-
basicSetOutline
public org.eclipse.emf.common.notify.NotificationChain basicSetOutline(LineAttributes newOutline, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setOutline
public void setOutline(LineAttributes newOutline)
- Specified by:
setOutlinein interfaceBlock- Parameters:
newOutline- the new value of the 'Outline' containment reference.- See Also:
Block.getOutline()
-
getBackground
public Fill getBackground()
- Specified by:
getBackgroundin interfaceBlock- Returns:
- the value of the 'Background' containment reference.
- See Also:
Block.setBackground(Fill),LayoutPackage.getBlock_Background()
-
basicSetBackground
public org.eclipse.emf.common.notify.NotificationChain basicSetBackground(Fill newBackground, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setBackground
public void setBackground(Fill newBackground)
- Specified by:
setBackgroundin interfaceBlock- Parameters:
newBackground- the new value of the 'Background' containment reference.- See Also:
Block.getBackground()
-
isVisible
public boolean isVisible()
- Specified by:
isVisiblein interfaceBlock- Returns:
- the value of the 'Visible' attribute.
- See Also:
Block.isSetVisible(),Block.unsetVisible(),Block.setVisible(boolean),LayoutPackage.getBlock_Visible()
-
setVisible
public void setVisible(boolean newVisible)
- Specified by:
setVisiblein interfaceBlock- Parameters:
newVisible- the new value of the 'Visible' attribute.- See Also:
Block.isSetVisible(),Block.unsetVisible(),Block.isVisible()
-
unsetVisible
public void unsetVisible()
- Specified by:
unsetVisiblein interfaceBlock- See Also:
Block.isSetVisible(),Block.isVisible(),Block.setVisible(boolean)
-
isSetVisible
public boolean isSetVisible()
- Specified by:
isSetVisiblein interfaceBlock- Returns:
- whether the value of the 'Visible' attribute is set.
- See Also:
Block.unsetVisible(),Block.isVisible(),Block.setVisible(boolean)
-
getTriggers
public org.eclipse.emf.common.util.EList<Trigger> getTriggers()
- Specified by:
getTriggersin interfaceBlock- Returns:
- the value of the 'Triggers' containment reference list.
- See Also:
LayoutPackage.getBlock_Triggers()
-
getWidthHint
public double getWidthHint()
- Specified by:
getWidthHintin interfaceBlock- Returns:
- the value of the 'Width Hint' attribute.
- See Also:
Block.isSetWidthHint(),Block.unsetWidthHint(),Block.setWidthHint(double),LayoutPackage.getBlock_WidthHint()
-
setWidthHint
public void setWidthHint(double newWidthHint)
- Specified by:
setWidthHintin interfaceBlock- Parameters:
newWidthHint- the new value of the 'Width Hint' attribute.- See Also:
Block.isSetWidthHint(),Block.unsetWidthHint(),Block.getWidthHint()
-
unsetWidthHint
public void unsetWidthHint()
- Specified by:
unsetWidthHintin interfaceBlock- See Also:
Block.isSetWidthHint(),Block.getWidthHint(),Block.setWidthHint(double)
-
isSetWidthHint
public boolean isSetWidthHint()
- Specified by:
isSetWidthHintin interfaceBlock- Returns:
- whether the value of the 'Width Hint' attribute is set.
- See Also:
Block.unsetWidthHint(),Block.getWidthHint(),Block.setWidthHint(double)
-
getHeightHint
public double getHeightHint()
- Specified by:
getHeightHintin interfaceBlock- Returns:
- the value of the 'Height Hint' attribute.
- See Also:
Block.isSetHeightHint(),Block.unsetHeightHint(),Block.setHeightHint(double),LayoutPackage.getBlock_HeightHint()
-
setHeightHint
public void setHeightHint(double newHeightHint)
- Specified by:
setHeightHintin interfaceBlock- Parameters:
newHeightHint- the new value of the 'Height Hint' attribute.- See Also:
Block.isSetHeightHint(),Block.unsetHeightHint(),Block.getHeightHint()
-
unsetHeightHint
public void unsetHeightHint()
- Specified by:
unsetHeightHintin interfaceBlock- See Also:
Block.isSetHeightHint(),Block.getHeightHint(),Block.setHeightHint(double)
-
isSetHeightHint
public boolean isSetHeightHint()
- Specified by:
isSetHeightHintin interfaceBlock- Returns:
- whether the value of the 'Height Hint' attribute is set.
- See Also:
Block.unsetHeightHint(),Block.getHeightHint(),Block.setHeightHint(double)
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceBlock- Returns:
- the value of the 'Cursor' containment reference.
- See Also:
Block.setCursor(Cursor),LayoutPackage.getBlock_Cursor()
-
basicSetCursor
public org.eclipse.emf.common.notify.NotificationChain basicSetCursor(Cursor newCursor, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setCursor
public void setCursor(Cursor newCursor)
- Specified by:
setCursorin interfaceBlock- Parameters:
newCursor- the new value of the 'Cursor' containment reference.- See Also:
Block.getCursor()
-
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 classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)- Specified by:
eGetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eGetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)- Specified by:
eSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eSetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnsetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eUnsetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eIsSetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
children
public final java.util.Enumeration<Block> children(boolean bRecursive)
Note: Manually written
-
getPreferredSize
public 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- 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
-
isPlot
public boolean isPlot()
Note: Manually written
-
isLegend
public boolean isLegend()
Note: Manually written
-
isText
public boolean isText()
Note: Manually written
-
isCustom
public boolean isCustom()
Note: Manually written
-
isTitle
public boolean isTitle()
Note: Manually written
-
add
public final void add(Block bl)
Note: Manually written
-
remove
public final void remove(Block bl)
Note: Manually written
-
create
public static Block create()
A convenience method to create an initialized 'Block' instance Note: Manually written- Returns:
-
createDefault
public static Block createDefault()
A convenience method to create an initialized 'Block' instance Note: Manually written- Returns:
-
copyInstance
public Block copyInstance()
- Specified by:
copyInstancein interfaceBlock- Specified by:
copyInstancein interfaceIChartObject
-
-