Bug 169030 Migrate to eclipse 3.3 SDK
This is a bug to investiage the processing of migration BIRT 2.2 code to last eclipse 3.3 SDK.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/figures/LabelFigure.java
{
		this( 1 );
	}
	/**
	 * Creates a new LabelFigure with a MarginBorder that is the given size and
	 * a FlowPage containing a TextFlow with the style WORD_WRAP_HARD.
	 * 
	 * @param borderSize
	 *            the size of the MarginBorder
	 */
	public LabelFigure( int borderSize )
	{
		setBorder( new MarginBorder( borderSize ) );
		label = new TextFlow( ) {
			public void postValidate( )
			{
				if ( DesignChoiceConstants.DISPLAY_BLOCK.equals( display )
						|| DesignChoiceConstants.DISPLAY_INLINE.equals( display ) )
				{
					List list = getFragments( );
					FlowBox box;
					int left = Integer.MAX_VALUE, top = left;
					int bottom = Integer.MIN_VALUE;
					for ( int i = 0; i < list.size( ); i++ )
					{
						box = (FlowBox) list.get( i );
						
						left = Math.min( left, box.getX() );
						top = Math.min( top, box.getBaseline( )-box.getAscent( ) );
						bottom = Math.max( bottom, box.getBaseline( )+box.getDescent( ) );