Example usage for java.awt Font BOLD

List of usage examples for java.awt Font BOLD

Introduction

In this page you can find the example usage for java.awt Font BOLD.

Prototype

int BOLD

To view the source code for java.awt Font BOLD.

Click Source Link

Document

The bold style constant.

Usage

From source file:unalcol.termites.boxplots.HybridRoundNumberReport.java

/**
 * Creates a new demo./*from   w w w .j  a va2  s.c o m*/
 *
 * @param title the frame title.
 * @param pf
 */
public HybridRoundNumberReport(final String title, ArrayList<Double> pf) {

    super(title);

    final BoxAndWhiskerCategoryDataset dataset = createSampleDataset(pf);

    final CategoryAxis xAxis = new CategoryAxis("");
    //final NumberAxis yAxis = new NumberAxis("Round number");
    final NumberAxis yAxis = new NumberAxis("");
    yAxis.setAutoRangeIncludesZero(false);
    final BoxAndWhiskerRenderer renderer = new BoxAndWhiskerRenderer();
    renderer.setFillBox(false);
    renderer.setToolTipGenerator(new BoxAndWhiskerToolTipGenerator());
    final CategoryPlot plot = new CategoryPlot(dataset, xAxis, yAxis, renderer);

    Font font = new Font("Dialog", Font.PLAIN, 14);
    xAxis.setTickLabelFont(font);
    yAxis.setTickLabelFont(font);
    yAxis.setLabelFont(font);

    final JFreeChart chart = new JFreeChart("Round Number" + getTitle(pf), new Font("SansSerif", Font.BOLD, 18),
            plot, true);

    final ChartPanel chartPanel = new ChartPanel(chart);
    chartPanel.setPreferredSize(new java.awt.Dimension(650, 370));
    setContentPane(chartPanel);

    TextTitle legendText = null;
    if (pf.size() == 1) {
        legendText = new TextTitle("Population Size");
    } else {
        legendText = new TextTitle("Population Size - Probability of Failure");
    }

    legendText.setFont(font);
    legendText.setPosition(RectangleEdge.BOTTOM);
    chart.addSubtitle(legendText);
    chart.getLegend().setItemFont(font);

    FileOutputStream output;
    try {
        output = new FileOutputStream("roundnumber1" + pf + ".jpg");
        ChartUtilities.writeChartAsJPEG(output, 1.0f, chart, 1350, 400, null);
    } catch (FileNotFoundException ex) {
        Logger.getLogger(HybridRoundNumberReport.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IOException ex) {
        Logger.getLogger(HybridRoundNumberReport.class.getName()).log(Level.SEVERE, null, ex);
    }

}

From source file:meter_rpm.Stackoverflow.java

private ChartPanel buildDialPlot(int minimumValue, int maximumValue, int majorTickGap) {

    DialPlot plot = new DialPlot();
    plot.setView(0.0D, 0.0D, 1.0D, 1.0D);
    plot.setDataset(0, dataset0);//from   ww w .  j  ava2s  .  co m
    plot.setDataset(1, dataset1);

    plot.setDialFrame(new StandardDialFrame());

    DialTextAnnotation dialtextannotation = new DialTextAnnotation("RPM");
    dialtextannotation.setFont(new Font("Dialog", 1, 12));
    dialtextannotation.setRadius(0.69999999999999996D);
    plot.addLayer(dialtextannotation);

    // value indicator uses the real data set
    //plot.addLayer(new DialValueIndicator(0));

    DialValueIndicator dialvalueindicator = new DialValueIndicator(0);
    dialvalueindicator.setFont(new Font("Dialog", Font.BOLD, 12));
    dialvalueindicator.setOutlinePaint(Color.YELLOW);
    dialvalueindicator.setRadius(0.6D);
    dialvalueindicator.setAngle(-90D);
    dialvalueindicator.setTemplateValue(1000);
    plot.addLayer(dialvalueindicator);

    org.jfree.chart.plot.dial.DialPointer.Pin pin1 = new org.jfree.chart.plot.dial.DialPointer.Pin(1);
    pin1.setRadius(0.55000000000000004D);
    plot.addPointer(pin1);

    // needle uses constrained data set
    plot.addLayer(new DialPointer.Pointer(0));

    StandardDialScale scale = new StandardDialScale(0d, 6000, -110, -320, majorTickGap, 4);
    scale.setTickRadius(0.88);
    scale.setTickLabelOffset(0.20);
    scale.setTickLabelFormatter(new DecimalFormat("####"));

    plot.addScale(0, scale);

    StandardDialScale standarddialscale1 = new StandardDialScale(0D, 30D, -120D, -300D, 5D, 4);
    standarddialscale1.setTickRadius(0.5D);
    standarddialscale1.setTickLabelOffset(0.14999999999999999D);
    standarddialscale1.setTickLabelFont(new Font("Dialog", 0, 10));
    standarddialscale1.setMajorTickPaint(Color.RED);
    standarddialscale1.setMinorTickPaint(Color.RED);
    plot.addScale(1, standarddialscale1);

    plot.mapDatasetToScale(1, 1);

    JFreeChart jfreechart = new JFreeChart(plot);
    jfreechart.setTitle("ENGINE RPM & MANIFOLD PRESSURE");
    ChartPanel chartpanel = new ChartPanel(jfreechart);
    chartpanel.setPreferredSize(new Dimension(400, 400));

    return chartpanel;
}

From source file:com.adito.agent.client.gui.awt.AbstractAWTGUI.java

/**
 * Constructor./*from  w  w w . j  ava2  s.c om*/
 */
public AbstractAWTGUI() {
    OptionDialog.INFORMATION_ICON = "/images/dialog-information.gif"; //$NON-NLS-1$
    OptionDialog.WARNING_ICON = "/images/dialog-warning.gif"; //$NON-NLS-1$
    OptionDialog.QUESTION_ICON = "/images/dialog-question.gif"; //$NON-NLS-1$
    OptionDialog.ERROR_ICON = "/images/dialog-error.gif"; //$NON-NLS-1$
    popup = new Toaster(Toaster.BOTTOM_RIGHT, new Dimension(300, 100));
    popup.setTextAlign(Component.LEFT_ALIGNMENT);
    Font norm = new Font("Arial", Font.PLAIN, 10); //$NON-NLS-1$
    Font title = new Font("Arial Bold", Font.BOLD, 11); //$NON-NLS-1$
    popup.setTextFont(norm);
    popup.setTitleFont(title);
    popupImage = UIUtil.loadImage(AbstractAWTGUI.class, "/images/agent.gif");

}

From source file:bestdeal.gui.Statistique.java

/**
 * Creates new form Statistique//  w w w  .  j  a v  a  2  s  . c o  m
 */
@SuppressWarnings("empty-statement")
public Statistique() {
    initComponents();

    btn_retour.setIcon((Icon) new ImageIcon("C:\\Users\\Jedidi\\Desktop\\icone\\retour.png"));
    panel = new ImagePanel(new ImageIcon("C:\\Users\\Jedidi\\Desktop\\111.jpg").getImage());
    Panel.add(panel);
    lbl_log.setIcon((Icon) new ImageIcon("C:\\Users\\Jedidi\\Desktop\\Logo_.png"));

    SimpleDateFormat sdf1 = new SimpleDateFormat("dd-MM-yyyy");
    lbl_date1.setText(sdf1.format(new java.util.Date()));
    SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm:ss");
    lbl_heure.setText(sdf2.format(new java.util.Date()));

    final DefaultPieDataset objDataset = new DefaultPieDataset();
    VoucherDAO v2 = new VoucherDAO();
    String[][] stat = v2.StatDeal();

    objDataset.setValue(stat[0][0], Integer.parseInt(stat[9][0]));
    objDataset.setValue(stat[0][1], Integer.parseInt(stat[9][1]));
    objDataset.setValue(stat[0][2], Integer.parseInt(stat[9][2]));
    objDataset.setValue(stat[0][3], Integer.parseInt(stat[9][3]));
    objDataset.setValue(stat[0][4], Integer.parseInt(stat[9][4]));

    JFreeChart objChart = ChartFactory.createPieChart3D("Best 5 deals", objDataset, true, true, true);
    //String textTitle = "Best 5 deals";
    TextTitle textTitle = objChart.getTitle();
    textTitle.setFont(new Font("Arial", Font.BOLD, 15));

    panel_deals.setLayout(new java.awt.BorderLayout());
    panel_clients.setLayout(new java.awt.BorderLayout());
    panel_vendeurs.setLayout(new java.awt.BorderLayout());
    final ChartPanel CP = new ChartPanel(objChart);
    CP.setPreferredSize(new java.awt.Dimension(600, 500));
    panel_deals.add(CP, BorderLayout.WEST);
    panel_deals.validate();

    TabbedPane.addChangeListener(new ChangeListener() {
        @Override
        public void stateChanged(ChangeEvent e) {
            if (TabbedPane.getSelectedIndex() == 0) {

                objDataset.clear();
                VoucherDAO v2 = new VoucherDAO();
                String[][] stat = v2.StatDeal();

                objDataset.setValue(stat[0][0], Integer.parseInt(stat[9][0]));
                objDataset.setValue(stat[0][1], Integer.parseInt(stat[9][1]));
                objDataset.setValue(stat[0][2], Integer.parseInt(stat[9][2]));
                objDataset.setValue(stat[0][3], Integer.parseInt(stat[9][3]));
                objDataset.setValue(stat[0][4], Integer.parseInt(stat[9][4]));

                panel_deals.add(CP, BorderLayout.WEST);
                panel_deals.validate();

            } else if (TabbedPane.getSelectedIndex() == 1) {

                objDataset.clear();
                VoucherDAO v2 = new VoucherDAO();
                String[][] stat = v2.StatVendeur();

                objDataset.setValue(stat[1][0], Integer.parseInt(stat[7][0]));
                objDataset.setValue(stat[1][1], Integer.parseInt(stat[7][1]));
                objDataset.setValue(stat[1][2], Integer.parseInt(stat[7][2]));
                objDataset.setValue(stat[1][3], Integer.parseInt(stat[7][3]));
                objDataset.setValue(stat[1][4], Integer.parseInt(stat[7][4]));

                panel_vendeurs.add(CP, BorderLayout.WEST);
                panel_vendeurs.validate();

            } else if (TabbedPane.getSelectedIndex() == 2) {

                objDataset.clear();
                VoucherDAO v2 = new VoucherDAO();
                String[][] stat = v2.StatClient();

                objDataset.setValue(stat[1][0], Integer.parseInt(stat[4][0]));
                objDataset.setValue(stat[1][1], Integer.parseInt(stat[4][1]));
                objDataset.setValue(stat[1][2], Integer.parseInt(stat[4][2]));
                objDataset.setValue(stat[1][3], Integer.parseInt(stat[4][3]));
                objDataset.setValue(stat[1][4], Integer.parseInt(stat[4][4]));

                panel_clients.add(CP, BorderLayout.WEST);
                panel_clients.validate();
            } else if (TabbedPane.getSelectedIndex() == 3) {

            }

        }
    });

}

From source file:de.hs.mannheim.modUro.controller.diagram.BoxAndWhiskerPlotController.java

/**
 * Plots Data for Chart//  ww  w .  ja va2 s . c o  m
 */
private void boxWhiskerPlot() {
    BoxAndWhiskerCategoryDataset dataset = createDataset();
    CategoryAxis xAxis = new CategoryAxis("Model");
    NumberAxis yAxis = new NumberAxis("Fitness");
    yAxis.setRange(0.0, 1.0);

    BoxAndWhiskerRenderer renderer = new BoxAndWhiskerRenderer();
    renderer.setFillBox(false);
    renderer.setMaximumBarWidth(0.2);
    renderer.setItemMargin(0.5);
    renderer.setToolTipGenerator(new BoxAndWhiskerToolTipGenerator());
    CategoryPlot plot = new CategoryPlot(dataset, xAxis, yAxis, renderer);
    plot.setOrientation(PlotOrientation.HORIZONTAL);

    final JFreeChart chart = new JFreeChart("Model comparison", new Font("Palatino", Font.BOLD, 14), plot,
            true);
    chart.removeLegend();

    ChartViewer viewer = new ChartViewer(chart, this);
    boxWhiskerPane.setCenter(viewer);
}

From source file:FormularioGuardarEstudio.java

@SuppressWarnings({ "unchecked", "rawtypes" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - verdura henrion
    label1 = new JLabel();
    pacientesCombo = new JComboBox(obtenerPacientes().toArray());
    label2 = new JLabel();
    label3 = new JLabel();
    label4 = new JLabel();
    label5 = new JLabel();
    nombreEstudio = new JTextField();
    scrollPane1 = new JScrollPane();
    descripcion = new JTextArea();
    descripcion.setLineWrap(true);//from  ww w .  jav  a  2s .c  o  m
    descripcion.setWrapStyleWord(true);
    notas = new JTextArea();
    notas.setLineWrap(true);
    notas.setWrapStyleWord(true);
    button1 = new JButton();
    mensajeRespuesta = new JLabel();

    //======== this ========
    setTitle("Guardar Estudio");
    Container contentPane = getContentPane();

    //---- label1 ----
    label1.setText("Paciente:");
    label1.setFont(new Font("Calibri", Font.BOLD, 14));

    //---- label2 ----
    label2.setText("Datos del Estudio");
    label2.setFont(new Font("Calibri", Font.BOLD, 14));

    //---- label3 ----
    label3.setText("Nombre Del Estudio:");

    //---- label4 ----
    label4.setText("Descripci\u00f3n:");

    //---- label5 ----
    label5.setText("Notas:");

    //======== scrollPane1 ========
    {
        scrollPane1.setViewportView(descripcion);
    }

    //---- button1 ----
    button1.setText("Guardar Estudio");
    button1.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            clickGuardarEstudio(e);
        }
    });

    //---- mensajeRespuesta ----
    mensajeRespuesta.setText("_");
    mensajeRespuesta.setHorizontalAlignment(SwingConstants.CENTER);

    GroupLayout contentPaneLayout = new GroupLayout(contentPane);
    contentPane.setLayout(contentPaneLayout);
    contentPaneLayout.setHorizontalGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout
            .createSequentialGroup()
            .addGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout.createSequentialGroup()
                    .addContainerGap().addGroup(contentPaneLayout.createParallelGroup().addComponent(label4)
                            .addComponent(label1, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                    pacientesCombo, GroupLayout.PREFERRED_SIZE, 73, GroupLayout.PREFERRED_SIZE)
                            .addComponent(label2)
                            .addGroup(contentPaneLayout.createSequentialGroup().addComponent(label3)
                                    .addGap(18, 18, 18).addComponent(nombreEstudio, GroupLayout.PREFERRED_SIZE,
                                            140, GroupLayout.PREFERRED_SIZE))
                            .addGroup(contentPaneLayout.createSequentialGroup().addComponent(label5)
                                    .addGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout
                                            .createSequentialGroup().addGap(83, 83, 83)
                                            .addGroup(contentPaneLayout
                                                    .createParallelGroup(GroupLayout.Alignment.LEADING, false)
                                                    .addComponent(scrollPane1, GroupLayout.DEFAULT_SIZE, 256,
                                                            Short.MAX_VALUE)
                                                    .addComponent(notas, GroupLayout.DEFAULT_SIZE, 256,
                                                            Short.MAX_VALUE)))
                                            .addGroup(contentPaneLayout.createSequentialGroup()
                                                    .addGap(48, 48, 48).addComponent(mensajeRespuesta,
                                                            GroupLayout.PREFERRED_SIZE, 215,
                                                            GroupLayout.PREFERRED_SIZE))))))
                    .addGroup(contentPaneLayout.createSequentialGroup().addGap(142, 142, 142)
                            .addComponent(button1)))
            .addContainerGap(18, Short.MAX_VALUE)));
    contentPaneLayout.setVerticalGroup(contentPaneLayout.createParallelGroup()
            .addGroup(contentPaneLayout.createSequentialGroup().addContainerGap()
                    .addComponent(label1, GroupLayout.PREFERRED_SIZE, 23, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(pacientesCombo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18).addComponent(label2).addGap(18, 18, 18)
                    .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                            .addComponent(label3).addComponent(nombreEstudio, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(contentPaneLayout.createParallelGroup().addComponent(label4).addComponent(
                            scrollPane1, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE))
                    .addGap(11, 11, 11)
                    .addGroup(contentPaneLayout.createParallelGroup().addComponent(label5).addComponent(notas,
                            GroupLayout.PREFERRED_SIZE, 76, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(mensajeRespuesta, GroupLayout.DEFAULT_SIZE, 17, Short.MAX_VALUE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(button1)
                    .addContainerGap()));
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:unalcol.termites.boxplots.ECALinfoCollected.java

/**
 * Creates a new demo./*from  w  w  w  .j a v  a  2s.  c  o m*/
 *
 * @param title the frame title.
 * @param pf
 */
public ECALinfoCollected(final String title, ArrayList<Double> pf) {
    super(title);
    final BoxAndWhiskerCategoryDataset dataset = createSampleDataset(pf);
    final CategoryAxis xAxis = new CategoryAxis("");
    final NumberAxis yAxis = new NumberAxis("");
    //final NumberAxis yAxis = new NumberAxis("Information Collected");
    yAxis.setAutoRangeIncludesZero(false);
    final BoxAndWhiskerRenderer renderer = new BoxAndWhiskerRenderer();
    renderer.setFillBox(false);
    renderer.setToolTipGenerator(new BoxAndWhiskerToolTipGenerator());
    final CategoryPlot plot = new CategoryPlot(dataset, xAxis, yAxis, renderer);

    Font font = new Font("Dialog", Font.PLAIN, 16);
    xAxis.setTickLabelFont(font);
    yAxis.setTickLabelFont(font);
    yAxis.setLabelFont(font);

    final JFreeChart chart = new JFreeChart("Information Collected " + getTitle(pf),
            new Font("SansSerif", Font.BOLD, 18), plot, true);

    final ChartPanel chartPanel = new ChartPanel(chart);
    chartPanel.setPreferredSize(new java.awt.Dimension(650, 370));
    setContentPane(chartPanel);
    TextTitle legendText = null;
    if (pf.size() == 1) {
        legendText = new TextTitle("Population Size");
    } else {
        legendText = new TextTitle("Population Size - Probability of Failure");
    }

    legendText.setFont(font);
    legendText.setPosition(RectangleEdge.BOTTOM);
    chart.addSubtitle(legendText);
    chart.getLegend().setItemFont(font);
    FileOutputStream output;
    try {
        output = new FileOutputStream("ECALinfoColl" + pf + ".jpg");
        ChartUtilities.writeChartAsJPEG(output, 1.0f, chart, 400, 400, null);
    } catch (FileNotFoundException ex) {
        Logger.getLogger(ECALinfoCollected.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IOException ex) {
        Logger.getLogger(ECALinfoCollected.class.getName()).log(Level.SEVERE, null, ex);
    }

}

From source file:be.fedict.eid.idp.sp.PhotoServlet.java

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
    LOG.debug("doGet");
    response.setContentType("image/jpg");
    response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate, max-age=-1"); // http 1.1
    response.setHeader("Pragma", "no-cache, no-store"); // http 1.0
    response.setDateHeader("Expires", -1);
    ServletOutputStream out = response.getOutputStream();
    HttpSession session = request.getSession();

    byte[] photoData = (byte[]) session.getAttribute(PHOTO_SESSION_ATTRIBUTE);

    if (null != photoData) {
        BufferedImage photo = ImageIO.read(new ByteArrayInputStream(photoData));
        if (null == photo) {
            /*//from   ww  w .j  a va  2  s .co m
             * In this case we render a photo containing some error message.
             */
            photo = new BufferedImage(140, 200, BufferedImage.TYPE_INT_RGB);
            Graphics2D graphics = (Graphics2D) photo.getGraphics();
            RenderingHints renderingHints = new RenderingHints(RenderingHints.KEY_TEXT_ANTIALIASING,
                    RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
            graphics.setRenderingHints(renderingHints);
            graphics.setColor(Color.WHITE);
            graphics.fillRect(1, 1, 140 - 1 - 1, 200 - 1 - 1);
            graphics.setColor(Color.RED);
            graphics.setFont(new Font("Dialog", Font.BOLD, 20));
            graphics.drawString("Photo Error", 0, 200 / 2);
            graphics.dispose();
            ImageIO.write(photo, "jpg", out);
        } else {
            out.write(photoData);
        }
    }
    out.close();
}

From source file:de.hs.mannheim.modUro.reader.JCellCountDiagram.java

protected JFreeChart createChart(XYDataset dataset, List<String> cellTypes) {
    String title = "Cell count";

    JFreeChart xyLineChart = ChartFactory.createXYLineChart(title, // title
            "t", // x-axis label
            "n", // y-axis label
            dataset);// ww  w  .j  a va2 s.co m

    String fontName = "Palatino";
    xyLineChart.getTitle().setFont(new Font(fontName, Font.BOLD, 18));

    XYPlot plot = (XYPlot) xyLineChart.getPlot();
    plot.setDomainPannable(true);
    plot.setRangePannable(true);
    plot.setDomainCrosshairVisible(true);
    plot.setRangeCrosshairVisible(true);
    plot.getDomainAxis().setLowerMargin(0.0);
    plot.getDomainAxis().setLabelFont(new Font(fontName, Font.BOLD, 14));
    plot.getDomainAxis().setTickLabelFont(new Font(fontName, Font.PLAIN, 12));
    plot.getRangeAxis().setLowerMargin(0.0);
    // plot.getRangeAxis().setRange(0.0, 1.01);
    plot.getRangeAxis().setLabelFont(new Font(fontName, Font.BOLD, 14));
    plot.getRangeAxis().setTickLabelFont(new Font(fontName, Font.PLAIN, 12));
    xyLineChart.getLegend().setItemFont(new Font(fontName, Font.PLAIN, 14));
    xyLineChart.getLegend().setFrame(BlockBorder.NONE);
    xyLineChart.getLegend().setHorizontalAlignment(HorizontalAlignment.CENTER);
    XYItemRenderer r = plot.getRenderer();
    // set the default stroke for all series
    int i = 0;
    for (String celltype : cellTypes) {
        r.setSeriesPaint(i, CellTypeColor.getColor(celltype));
        i++;
    }
    r.setSeriesPaint(i, Color.BLACK);
    return xyLineChart;
}

From source file:playground.anhorni.PLOC.analysis.RunsEnsembleBoxPlot.java

public JFreeChart createChart() {
    String title = chartTitle;//  ww  w .  ja v  a  2s .  co  m

    final CategoryAxis xAxis = new CategoryAxis("Hour");
    xAxis.setTickLabelFont(new Font("SansSerif", Font.PLAIN, 10));
    xAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45);

    final NumberAxis yAxis = new NumberAxis("AverageDays_Expenditures");
    yAxis.setAutoRangeIncludesZero(true);

    final BoxAndWhiskerRenderer renderer = new BoxAndWhiskerRenderer();
    renderer.setFillBox(false);
    renderer.setSeriesPaint(0, Color.blue);
    CategoryPlot plot = new CategoryPlot(dataset, xAxis, yAxis, renderer);

    this.chart_ = new JFreeChart(title, new Font("SansSerif", Font.BOLD, 14), plot, false);
    return this.chart_;
}