RotatedLabelUI class
In the RotatedLabelUI class, the RotatedLabelUI.getLabel( ) method provides
the text representation the label to BIRT Report Designer. RotatedLabelUI
extends the adapter class, org.eclipse.birt.report.designer.ui.extensions
.ReportItemLabelProvider. Listing 23‑2 shows the code for the getLabel( ) method.
Listing 23‑2 The getLabel( ) method
public class RotatedLabelUI extends ReportItemLabelProvider
{
public String getLabel( ExtendedItemHandle handle )
{
if ( handle.getProperty( "displayText" ) != null ) {
return ( String ) handle.getProperty( "displayText" );
} else {
return "Rotated Label";
}
}