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

public interface LabelBlock extends Block
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: