else if ( "".equals( units ) )
else if ( "".equals( units ) || units == null )
	public static double convertToPixel( Object object, int fontSize )	{		double px = 0;		double measure = 0;		String units = ""; //$NON-NLS-1$		if ( object instanceof DimensionValue )		{			DimensionValue dimension = (DimensionValue) object;			measure = dimension.getMeasure( );			units = dimension.getUnits( );		}		else if ( object instanceof DimensionHandle )		{			DimensionHandle dimension = (DimensionHandle) object;			measure = dimension.getMeasure( );			units = dimension.getUnits( );		}		if ( DesignChoiceConstants.UNITS_PX.equals( units ) )		{			return measure;		}		//Default value is DesignChoiceConstants.UNITS_IN		if ( "".equalsIgnoreCase( units ) ) //$NON-NLS-1$		{			px = measure;		}		if ( fontSize == 0 )		{			Font defaultFont = JFaceResources.getDefaultFont( );			FontData[] fontData = defaultFont.getFontData( );			fontSize = fontData[0].height;		}		if ( DesignChoiceConstants.UNITS_EM.equals( units ) )		{			px = DimensionUtil.convertTo( measure * fontSize,					DesignChoiceConstants.UNITS_PT,					DesignChoiceConstants.UNITS_IN ).getMeasure( );		}		else if ( DesignChoiceConstants.UNITS_EX.equals( units ) )		{			px = DimensionUtil.convertTo( measure * fontSize / 3,					DesignChoiceConstants.UNITS_PT,					DesignChoiceConstants.UNITS_IN ).getMeasure( );		}		else if ( DesignChoiceConstants.UNITS_PERCENTAGE.equals( units ) )		{			px = DimensionUtil.convertTo( measure * fontSize / 100,					DesignChoiceConstants.UNITS_PT,					DesignChoiceConstants.UNITS_IN ).getMeasure( );		}		//added by gao if unit is "", set the unit is Design default unit		else if ( "".equals( units ) )//$NON-NLS-1$ 		{			units = SessionHandleAdapter.getInstance( )					.getReportDesignHandle( )					.getDefaultUnits( );			px = DimensionUtil.convertTo( measure,					units,					DesignChoiceConstants.UNITS_IN ).getMeasure( );		}		else		{			px = DimensionUtil.convertTo( measure,					units,					DesignChoiceConstants.UNITS_IN ).getMeasure( );		}		return MetricUtility.inchToPixel( px );	}