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:

  • Method Details

    • getLabel

      public Label getLabel()
      Specified by:
      getLabel in interface LabelBlock
      Returns:
      the value of the 'Label' containment reference.
      See Also:
    • 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 interface LabelBlock
      Parameters:
      newLabel - the new value of the 'Label' 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 class BlockImpl
    • eGet

      public Object eGet(int featureID, boolean resolve, boolean coreType)
      Specified by:
      eGet in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eGet in class BlockImpl
    • eSet

      public void eSet(int featureID, Object newValue)
      Specified by:
      eSet in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eSet in class BlockImpl
    • eUnset

      public void eUnset(int featureID)
      Specified by:
      eUnset in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eUnset in class BlockImpl
    • eIsSet

      public boolean eIsSet(int featureID)
      Specified by:
      eIsSet in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eIsSet in class BlockImpl
    • 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 interface Block
      Overrides:
      getPreferredSize in class BlockImpl
      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 interface Block
      Specified by:
      copyInstance in interface IChartObject
      Specified by:
      copyInstance in interface LabelBlock
      Overrides:
      copyInstance in class BlockImpl