public static JPanel createDemoPanel()
 {
   ChartPanel chartPanel = new ChartPanel(TimeSeriesChartDemo1.createChart(TimeSeriesChartDemo1.createDataset()));
   chartPanel.setFillZoomRectangle(true);
   chartPanel.setMouseWheelEnabled(true);
   return (JPanel) chartPanel;
 }
 public MouseWheelHandler([In] ChartPanel obj0)
 {
   base.\u002Ector();
   MouseWheelHandler mouseWheelHandler = this;
   this.chartPanel = obj0;
   this.zoomFactor = 0.1;
   ((Component) this.chartPanel).addMouseWheelListener((MouseWheelListener) this);
 }
示例#3
0
 public JThermometer()
 {
   base.\u002Ector((LayoutManager) new CardLayout());
   JThermometer jthermometer = this;
   this.plot = new ThermometerPlot();
   this.plot.setInsets(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
   this.data = new DefaultValueDataset();
   this.plot.setDataset((ValueDataset) this.data);
   JFreeChart.__\u003Cclinit\u003E();
   this.chart = new JFreeChart((string) null, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) this.plot, false);
   ChartPanel.__\u003Cclinit\u003E();
   this.panel = new ChartPanel(this.chart);
   ((Container) this).add((Component) this.panel, (object) "Panel");
   this.setBackground(((Component) this).getBackground());
 }
示例#4
0
 public ChartFrame(string title, JFreeChart chart, bool scrollPane)
 {
   int num = scrollPane ? 1 : 0;
   base.\u002Ector(title);
   ChartFrame chartFrame = this;
   this.setDefaultCloseOperation(2);
   this.chartPanel = new ChartPanel(chart);
   if (num != 0)
   {
     JScrollPane.__\u003Cclinit\u003E();
     this.setContentPane((Container) new JScrollPane((Component) this.chartPanel));
   }
   else
     this.setContentPane((Container) this.chartPanel);
 }