Example usage for org.jfree.chart ChartFrame setExtendedState

List of usage examples for org.jfree.chart ChartFrame setExtendedState

Introduction

In this page you can find the example usage for org.jfree.chart ChartFrame setExtendedState.

Prototype

public void setExtendedState(int state) 

Source Link

Document

Sets the state of this frame.

Usage

From source file:control.JGeraGraficos.java

private void PrintGrafico(ArrayList<DadosEstatisticos> listaJava, ArrayList<DadosEstatisticos> listaJavaThRead,
        ArrayList<DadosEstatisticos> listaOpenCl) {
    int i = 0;/*ww  w  . j av a 2 s  . co  m*/
    String titulo = "";
    for (DadosEstatisticos dados : listaJava) {
        i++;
        if (listaJava.indexOf(dados) < 2) {
            titulo = titulo + "C" + i + " - " + dados.getDescricao() + "       ";
        } else {
            titulo = titulo + "C" + i + " - " + dados.getDimensoes() + "       ";
        }
    }

    JFreeChart chart = createGraficoXY("GRAFICO TOTAL DE PROCESSOS", titulo, " TEMPO (ms)",
            createDataset(listaJava, listaJavaThRead, listaOpenCl));
    ChartFrame frame = new ChartFrame("GRAFICO TOTAL DE PROCESSOS", chart);

    frame.setExtendedState(ChartFrame.MAXIMIZED_BOTH);
    frame.setVisible(true);

}