if ( handle instanceof ModuleHandle ) { return DesignChoiceConstants.FONT_SIZE_MEDIUM; } if ( handle instanceof GroupHandle ) { handle = handle.getContainer( ); }
fontSize = DesignChoiceConstants.FONT_SIZE_LARGE; } else if ( DesignChoiceConstants.FONT_SIZE_SMALLER.equals( fontSize ) ) { fontSize = DesignChoiceConstants.FONT_SIZE_SMALL; } else if ( fontSize == null ) { fontSize = DesignChoiceConstants.FONT_SIZE_MEDIUM;
	public static String getFontSize( DesignElementHandle handle )	{		if ( !( handle instanceof ReportItemHandle ) )		{			if ( handle instanceof ModuleHandle )			{				return DesignChoiceConstants.FONT_SIZE_MEDIUM;			}			if ( handle instanceof GroupHandle )			{				handle = handle.getContainer( );			}		}		Object fontSizeValue = handle.getPrivateStyle( )				.getFontSize( )				.getValue( );		if ( fontSizeValue instanceof DimensionValue )		{			return ( (DimensionValue) fontSizeValue ).toString( );		}		else if ( fontSizeValue instanceof String )		{			String fontSize = (String) fontSizeValue;			if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_LARGER ) )			{				return getLargerFontSize( handle.getContainer( ) );			}			else if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_SMALLER ) )			{				return getSmallerFontSize( handle.getContainer( ) );			}			else			{				return fontSize;			}		}		else		{			return DesignChoiceConstants.FONT_SIZE_MEDIUM;		}	}