RotatedLabelItemFactoryImpl class
The RotatedLabelItemFactoryImpl class instantiates a new report item when the user drags a rotated label report item from the palette and drops the report item in the BIRT Report Designer editor. RotatedLabelItemFactoryImpl extends the adapter class, org.eclipse.birt.report.model.api.extension.ReportItemFactory.
The newReportItem( ) method receives a reference to DesignElementHandle, which provides the interface to the BIRT report model. The newReportItem( ) method instantiates the new report item, as shown in Listing 23‑1.
Listing 23‑1 The newReportItem( ) method
public class RotatedLabelItemFactoryImpl
extends ReportItemFactory implements IMessages
{
public IReportItem newReportItem( DesignElementHandle deh )
{
return new ReportItem( );
}
...
}