Package org.jfree.chart

Examples of org.jfree.chart.ChartPanel


      variable = new JTextField(25);
      variable.setEditable(true);
      variable.setMinimumSize(new Dimension(80,25));
      super.add(variable, createGBC(1,1, GridBagConstraints.HORIZONTAL));
     
    chartPanel = new ChartPanel(null);
    this.add(chartPanel,new GridBagConstraints(0, 2, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2,2,2,2), 1, 1));
   
    model = new HistogramChartModel(type);
  }
View Full Code Here


      scrollpane.setEnabled(true);
      scrollpane.setMinimumSize(new Dimension(120,250));
      scrollpane.setVisible(false);
      sub.add(scrollpane,new GridBagConstraints(0,0, 1, 1, 0.2, 0.2, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2,2,2,2), 1, 1));
     
    chartPanel = new ChartPanel(null);
    sub.add(chartPanel,new GridBagConstraints(1, 0, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2,2,2,2), 1, 1));
   
    model = new NonNumericalChartModel(type);
  }
View Full Code Here

      category = new JTextField(25);
      category.setEditable(true);
      category.setMinimumSize(new Dimension(80,25));
      super.add(category, createGBC(1,2, GridBagConstraints.HORIZONTAL));
     
    chartPanel = new ChartPanel(null);
    this.add(chartPanel,new GridBagConstraints(0, 3, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2,2,2,2), 1, 1));
   
    model = new XYChartModel(type);
  }
View Full Code Here

      category.setMinimumSize(new Dimension(80,25));
      super.add(category, createGBC(1,2, GridBagConstraints.HORIZONTAL));
     
      model = new CategoryChartModel(chartTyp);
     
    chartPanel = new ChartPanel(null);
    this.add(chartPanel,new GridBagConstraints(0, 3, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2,2,2,2), 1, 1));
  }
View Full Code Here

            this.dimension = 5;
            this.seed = 42;
            this.sobol = new SobolRsg(this.dimension, this.seed);

            final JFreeChart chart = createDefaultChart();
            final ChartPanel panel = new ChartPanel(chart, true, true, true, false, true);
            panel.setPreferredSize(new java.awt.Dimension(800, 570));
            setContentPane(panel);
        }
View Full Code Here

        this.plot.setInsets(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
        this.data = new DefaultValueDataset();
        this.plot.setDataset(this.data);
        this.chart = new JFreeChart(null, JFreeChart.DEFAULT_TITLE_FONT,
                this.plot, false);
        this.panel = new ChartPanel(this.chart);
        add(this.panel, "Panel");
        setBackground(getBackground());
    }
View Full Code Here

     4x2 Panel containing the drawn graphs
     */
    @Override
    public JPanel Draw() {
        JPanel mainPanel = new JPanel(new GridLayout(2, 4, 5, 5));
        mainPanel.add(new ChartPanel(movementChart));
        mainPanel.add(new ChartPanel(soilPressureChart));
        mainPanel.add(new ChartPanel(limitPressureChart));
        mainPanel.add(new ChartPanel(rotationChart));
        mainPanel.add(new ChartPanel(displacementChart));
        mainPanel.add(new ChartPanel(bendingMomentChart));
        mainPanel.add(new ChartPanel(shearForceChart));
        return mainPanel;

    }
View Full Code Here

    private ChartPanel buildChart(XYDataset data) {
        JFreeChart chart = createChart(data);
        charts[numCharts]    = chart;
        legends[numCharts++] = chart.getLegend();
        ChartPanel panel = new ChartPanel(chart);
        return panel;
    }
View Full Code Here

    this.permitLogarithmic = permitLogarithmic;

    this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
    this.setBorder(BorderFactory.createEtchedBorder());

    chartPanel = new ChartPanel(chart);
    this.add(chartPanel);

    this.add(createControlPanel());

    configureChart();
View Full Code Here

                .getString("Chart.No_Data_Message"));

        // create a chart and a chart panel
        JFreeChart chart = new JFreeChart(plot);
        chart.removeLegend();
        ChartPanel chartPanel = new ChartPanel(chart);
        chartPanel.setInitialDelay(50);
        chartPanel.setDismissDelay(60000);
        chartPanel.setMinimumDrawHeight(40);
        chartPanel.setMinimumDrawWidth(40);
        chartPanel.setMaximumDrawHeight(3000);
        chartPanel.setMaximumDrawWidth(3000);
        chartPanel.setPreferredSize(new Dimension(300, gridY * 25));

        // add the chart to the dialog content pane
        GridBagConstraints c = new GridBagConstraints();
        c.gridy = gridY;
        c.gridwidth = 4;
View Full Code Here

TOP

Related Classes of org.jfree.chart.ChartPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.