Text text = cm.getTitle( ).getLabel( ).getCaption( );
	public void doGet( HttpServletRequest request, HttpServletResponse response )			throws ServletException, IOException	{		HttpSession session = request.getSession( false );		if ( session == null )		{			response.sendRedirect( "http://localhost:8080/error.html" ); //$NON-NLS-1$		}		cm = ChartModels.createBarChart( );		Enumeration en = request.getParameterNames( );		while ( en.hasMoreElements( ) )		{			String name = (String) en.nextElement( );			String value = request.getParameterValues( name )[0];			Text text = cm.getTitle( ).getLabel( ).getCaption( );			if ( name.equals( "fonts" ) )//$NON-NLS-1$			{				text.getFont( ).setName( value );			}			else if ( name.equals( "style" ) )//$NON-NLS-1$			{				if ( value.equals( "Bold" ) )//$NON-NLS-1$				{					text.getFont( ).setBold( true );				}				else if ( value.equals( "Italic" ) )//$NON-NLS-1$				{					text.getFont( ).setBold( false );					text.getFont( ).setItalic( true );				}			}			else if ( name.equals( "size" ) )//$NON-NLS-1$			{				float size = Float.parseFloat( value );				text.getFont( ).setSize( size );			}			else if ( name.equals( "color" ) )//$NON-NLS-1$			{				ColorDefinition cd = null;				if ( value.equals( "Black" ) ) //$NON-NLS-1$				{					cd = ColorDefinitionImpl.BLACK( );				}				else if ( value.equals( "Red" ) ) //$NON-NLS-1$				{					cd = ColorDefinitionImpl.RED( );				}				else if ( value.equals( "Blue" ) ) //$NON-NLS-1$				{					cd = ColorDefinitionImpl.BLUE( );				}				text.setColor( cd );			}		}		response.setHeader( "Cache-Control", "no-store" ); //$NON-NLS-1$//$NON-NLS-2$		response.setDateHeader( "Expires", 0 ); //$NON-NLS-1$		// Set the Content-Type header for the image output		response.setContentType( "image/jpeg" ); //$NON-NLS-1$		createImage( (OutputStream) response.getOutputStream( ) );	}