Interface LabelBlock
- All Superinterfaces:
Block, org.eclipse.emf.ecore.EObject, IChartObject, org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
TitleBlock
- All Known Implementing Classes:
LabelBlockImpl, TitleBlockImpl
A representation of the model object 'Label
Block'.
LabelBlock is a sub-type of Block, which is specialized for laying out a text
in the chart for general purpose. It contains a Label, which holds the content
and graphical properties of the text to be rendered. Following example shows
how to add a arbitrary text "Sample Text" to a chart:
Chart cm = ....
LabelBlock lbBlock = (LabelBlock) LabelBlockImpl.create( );
lbBlock.getBounds( ).set( 50, 50, 100, 100 );
lbBlock.getLabel( ).getCaption( ).setValue( "Sample Text" );
cm.getBlock( ).getChildren( ).add( lbBlock );
The following features are supported:
- See Also:
-
Method Summary
Methods inherited from interface Block
add, children, getAnchor, getBackground, getBounds, getChildren, getColumn, getColumnspan, getCursor, getHeightHint, getInsets, getMinSize, getOutline, getPreferredSize, 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, unsetWidthHintMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getLabel
Label getLabel()Returns the value of the 'Label' containment reference. The actual text content of the block.- Returns:
- the value of the 'Label' containment reference.
- See Also:
-
setLabel
-
copyInstance
LabelBlock copyInstance()- Specified by:
copyInstancein interfaceBlock- Specified by:
copyInstancein interfaceIChartObject
-