Package org.jfree.chart

Examples of org.jfree.chart.ChartFrame


           DefaultPieDataset data = new DefaultPieDataset();
           for (int k=0; k<values.length; k++
              data.setValue(categories[k], values[k]);
            m_chart = ChartFactory.createPieChart(chartTitle, data, true, true, true);
          
           ChartFrame cf = new ChartFrame("Pie Chart", m_chart);
           cf.setSize(defaultXSize, defaultYSize);
           cf.setVisible(true);
           return cf;
      
       }
View Full Code Here


           DefaultPieDataset  data = new DefaultPieDataset();
           for (int k=0; k<categories.length; k++)
            data.setValue(categories[k], new Double(values[k]));
         JFreeChart pieChart = ChartFactory.createPieChart(pieChartName, data, false, false, false);
         pieChart.setTitle("Category Plot "+pieChartName);
         JFrame pieFrame = new ChartFrame(pieChartName, pieChart);
         pieFrame.pack();
         pieFrame.setVisible(true);
         if (currentPlot != null) {
             currentPlot.m_chart = pieChart;
         }
        
         return pieFrame;
View Full Code Here

            );
            UpdateThread update = new UpdateThread(dataset, tc);

            Thread thread = new Thread(update);
            thread.start();
            frame = new ChartFrame("JMX Attribute: " + attr, chart);
            frame.getChartPanel().setPreferredSize(new java.awt.Dimension(500, 270));
            frame.pack();
         }
         else
         {
View Full Code Here

     
        intervalAxis.setTickUnit(new NumberTickUnit(1.0));
        intervalAxis.setRangeWithMargins(fromInt, toInt);
        plot.setDomainAxis(1, intervalAxis);

    ChartFrame frame = new ChartFrame("Developement between intervals",
        chart);
    frame.setIconImage(Toolkit.getDefaultToolkit().getImage(
        GenericGraphs.class.getClassLoader().getResource("chart.png")));
    frame.pack();
    frame.setVisible(true);
  }
View Full Code Here

        "Dependency Scatter Plot", firstValue.text() + "  " + firstValue.unit(),
        secondValue.text() + "  " + secondValue.unit(), dataCol,
        PlotOrientation.HORIZONTAL, true, true, false);
    chart.addSubtitle(new TextTitle("Each dot represents the value combination of one edge\n" +
        "Only non-zero values are considered"));
    ChartFrame frame = new ChartFrame("Dependency Scatter Plot", chart);
    frame.setIconImage(Toolkit.getDefaultToolkit().getImage(
        GenericGraphs.class.getClassLoader().getResource("chart.png")));
    frame.pack();
    frame.setVisible(true);
  }
View Full Code Here

   */
  protected void makeChart()
  {
    chart = ChartFactory.createScatterPlot("Input vs Output", "Inputs", "Outputs",
        dataSet, PlotOrientation.VERTICAL, true, false, false);
    chartFrame = new ChartFrame(null, chart);
    chartFrame.pack();
    chartFrame.setVisible(true);
  }
View Full Code Here

   */
  protected void makeChart(String title)
  {
    chart = ChartFactory.createScatterPlot(this.title=title, "Inputs", "Outputs",
        dataSet, PlotOrientation.VERTICAL, true, false, false);
    chartFrame = new ChartFrame(null, chart);
    chartFrame.pack();
    chartFrame.setVisible(true);
  }
View Full Code Here

   */
  protected void makeChart(String title, String inputsName, String outputsName)
  {
    chart = ChartFactory.createScatterPlot(this.title = title, this.XAxisLabel=inputsName, this.YAxisLabel=outputsName,
        dataSet, PlotOrientation.VERTICAL, true, false, false);
    chartFrame = new ChartFrame(null, chart);
    chartFrame.pack();
    chartFrame.setVisible(true);
  }
View Full Code Here

    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }*/
       
        ChartFrame frame = new ChartFrame("BarChart", chart);
        frame.pack();
        frame.setVisible(true);
       
        return chart;
    }
View Full Code Here

        /*ChartPanel chartPanel = new ChartPanel(chart);
        chartPanel.setPreferredSize(new Dimension(200, 100));
        JInternalFrame frame = new JInternalFrame("Frame 1", true);
        frame.getContentPane().add(chartPanel);*/
        Container cont = new Container();
        ChartFrame frame = new ChartFrame("pie chart", chart);
        frame.pack();
        frame.setVisible(true);
        return chart;
    }
View Full Code Here

TOP

Related Classes of org.jfree.chart.ChartFrame

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.