Package org.jamesii.gui.visualization.chart.coordinatesystem

Examples of org.jamesii.gui.visualization.chart.coordinatesystem.CoordinateSystemXY


        timer.setRepeats(true);
        timer.start();

      }

      CoordinateSystemXY system = new CoordinateSystemXY(model);
      // system.setRenderer(new SimpleAxisRenderer());

      BasicChart chart = new BasicChart(system.getModel(), system);
      chart.setShowLegend(false);
      chart.setPlotterForSeries(system.getModel().getSeries(1), new NullPlot());
      system.setAxis(0, new SteppingAxis(new LinearAxis(), 0, 0.1));

      Point2D start = new Point2D.Float(0, 0);
      Point2D end = new Point2D.Float(50, 50);
      float[] dist = { 0.0f, 0.2f, 0.7f, 1.0f };
      Color[] c = { Color.RED, Color.WHITE, Color.BLUE, Color.green };
      LinearGradientPaint p =
          new LinearGradientPaint(start, end, dist, c, CycleMethod.REPEAT);

      chart.setPlotterForSeries(system.getModel().getSeries(2),
          new TwoSeriesAreaLinePlot(system.getModel().getSeries(1), p));
      frame.add(new JScrollPane(chart), BorderLayout.CENTER);

      frame.setVisible(true);
    }
View Full Code Here


    // .setSelectionMode(DefaultListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    //
    // CheckBoxGroup<ISeries> legend =
    // new CheckBoxGroup<>(new PlotterLegendGroupModel(model),
    // selectionModel);
    chart = new BasicChart(model, new CoordinateSystemXY(model));
    chart.setShowLegend(false);

    panel.setLayout(new BorderLayout());
    panel.add(chart, BorderLayout.CENTER);
    // panel.add(new JScrollPane(legend), BorderLayout.LINE_END);
View Full Code Here

    // selectionModel.addSelectionInterval(e.getIndex0(), e.getIndex1());
    // }
    // };
    //
    // legend.setBorder(new EmptyBorder(5, 5, 5, 5));
    chart = new BasicChart(model, new CoordinateSystemXY(model));
    chart.setShowLegend(true);
    //
    // JScrollPane sLegend = new JScrollPane(legend);
    // sLegend.setBorder(new EmptyBorder(0, 0, 0, 0));
    //
View Full Code Here

TOP

Related Classes of org.jamesii.gui.visualization.chart.coordinatesystem.CoordinateSystemXY

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.