Interface Block

All Superinterfaces:
org.eclipse.emf.ecore.EObject, IChartObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
LabelBlock, Legend, Plot, TitleBlock
All Known Implementing Classes:
BlockImpl, LabelBlockImpl, LegendImpl, PlotImpl, TitleBlockImpl

public interface Block
extends IChartObject
A representation of the model object ' Block'. Block is the most important component to layout the contents of a chart. It represents a rectangular area that bounds an individual chart element, which is used to determine the layout of the chart. The user can define its Bounds, Insets, Outline and Background among other properties. A Block can also contain other Blocks as its children. Use Block.getChildren( ) which returns a list of type Block to navigate through the children hierarchy of Blocks.

The most important block is the chart's block, all contents of a chart are rendered inside this block, we can get the instance of a chart's block using:
Chart.getBlock( );

A chart graphically consists of 3 parts, TitleBlock, Plot and Legend, which are also sub-type of Block and organized as children of the chart's Block. Besides the general approach of using Chart.getBlock( ).getChildren( ) we can also access them using the convenient methods:
Chart.getTitle( );
Chart.getPlot( );
Chart.getLegend( );

The following features are supported:

See Also:
LayoutPackage.getBlock()