org.eclipse.birt.chart.model.layout.impl
Class LabelBlockImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.birt.chart.model.layout.impl.BlockImpl
                  extended byorg.eclipse.birt.chart.model.layout.impl.LabelBlockImpl
All Implemented Interfaces:
Block, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, LabelBlock, org.eclipse.emf.common.notify.Notifier
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 inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class 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 basicSetLabel(Label newLabel, org.eclipse.emf.common.notify.NotificationChain msgs)
           
static Block create()
          A convenience method to create an initialized 'LabelBlock' instance
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, java.lang.Object newValue)
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 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 attributes
 void setLabel(Label newLabel)
           
 
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, getInsets, getMinSize, getOutline, getRow, getRowspan, getStretch, getTriggers, isCustom, isLegend, isPlot, isSetAnchor, isSetColumn, isSetColumnspan, isSetRow, isSetRowspan, isSetStretch, isSetVisible, isText, isTitle, isVisible, remove, setAnchor, setBackground, setBounds, setColumn, setColumnspan, setInsets, setMinSize, setOutline, setRow, setRowspan, setStretch, setVisible, toString, unsetAnchor, unsetColumn, unsetColumnspan, unsetRow, unsetRowspan, unsetStretch, unsetVisible
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eInternalResource, eInverseAdd, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eStore, eURIFragmentSegment
 
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, getInsets, getMinSize, getOutline, getRow, getRowspan, getStretch, getTriggers, isCustom, isLegend, isPlot, isSetAnchor, isSetColumn, isSetColumnspan, isSetRow, isSetRowspan, isSetStretch, isSetVisible, isText, isTitle, isVisible, remove, setAnchor, setBackground, setBounds, setColumn, setColumnspan, setInsets, setMinSize, setOutline, setRow, setRowspan, setStretch, setVisible, unsetAnchor, unsetColumn, unsetColumnspan, unsetRow, unsetRowspan, unsetStretch, unsetVisible
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
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

getLabel

public Label getLabel()

Specified by:
getLabel in interface LabelBlock
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 interface LabelBlock
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,
                                                                      java.lang.Class baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eInverseRemove in class BlockImpl

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                             boolean resolve)

Specified by:
eGet in interface org.eclipse.emf.ecore.EObject
Overrides:
eGet in class BlockImpl

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eSet in class BlockImpl

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject
Overrides:
eUnset in class BlockImpl

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eIsSet in class BlockImpl

create

public static Block create()
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
Throws:
ChartException


Copyright © 2005 Actuate Corp. All rights reserved.