dimensionValue = (DimensionValue) getHandle( ).getProperty( Style.MARGIN_BOTTOM_PROP ); double py = DEUtil.convertToPixel( dimensionValue, fontSize );
double py = 0; prop = getHandle( ).getProperty( Style.MARGIN_BOTTOM_PROP ); if ( !DesignChoiceConstants.MARGIN_AUTO.equals( prop ) ) { py = DEUtil.convertToPixel( (DimensionValue) prop, fontSize ); }
	public Insets getMargin( Insets retValue )	{		if ( retValue == null )		{			retValue = new Insets( );		}		else		{			retValue = new Insets( retValue );		}		DimensionHandle fontHandle = getHandle( ).getPrivateStyle( )				.getFontSize( );		int fontSize = 12;		if ( fontHandle.getValue( ) instanceof String )		{			fontSize = Integer.valueOf( (String) DesignerConstants.fontMap.get( DEUtil.getFontSize( getHandle( ) ) ) )					.intValue( );		}		else if ( fontHandle.getValue( ) instanceof DimensionValue )		{			DEUtil.convertToPixel( fontHandle.getValue( ), fontSize );		}		DimensionValue dimensionValue = (DimensionValue) getHandle( ).getProperty( Style.MARGIN_TOP_PROP );		double px = DEUtil.convertToPixel( dimensionValue, fontSize );		dimensionValue = (DimensionValue) getHandle( ).getProperty( Style.MARGIN_BOTTOM_PROP );		double py = DEUtil.convertToPixel( dimensionValue, fontSize );		retValue.top = (int) px;		retValue.bottom = (int) py;		dimensionValue = (DimensionValue) getHandle( ).getProperty( Style.MARGIN_LEFT_PROP );		px = DEUtil.convertToPixel( dimensionValue, fontSize );		dimensionValue = (DimensionValue) getHandle( ).getProperty( Style.MARGIN_RIGHT_PROP );		py = DEUtil.convertToPixel( dimensionValue, fontSize );		retValue.left = (int) px;		retValue.right = (int) py;		return retValue;	}