Examples of XYAxis


Examples of plotter.xy.XYAxis

    axis.setStart(minimum);
    axis.setEnd(maximum);
  }

  public void setYBounds(double minimum, double maximum) {
    XYAxis axis = getYAxis();
    if (axis == null) {
      axis = new LinearXYAxis(XYDimension.Y);
      setYAxis(axis);
      colorize(axis);
    }
    axis.setStart(minimum);
    axis.setEnd(maximum);
  }
View Full Code Here

Examples of plotter.xy.XYAxis

    .build();
    testPlot.setManifestation(mockPlotViewManifestation);
   
    PlotterPlot qcPlot = (PlotterPlot) testPlot.returnPlottingPackage();
   
    XYAxis xAxis = qcPlot.getPlotView().getXAxis();
    XYAxis yAxis = qcPlot.getPlotView().getYAxis();
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
    testPlot.addDataSet("DataSet1");
    testPlot.addData("DataSet1", time.getTimeInMillis(), 1);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
    time.add(Calendar.MINUTE, 1);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 11);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
   
    time.add(Calendar.MINUTE, 20);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 50);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
  }
View Full Code Here

Examples of plotter.xy.XYAxis

    .build();
    testPlot.setManifestation(mockPlotViewManifestation);
   
    PlotterPlot qcPlot = (PlotterPlot) testPlot.returnPlottingPackage();
   
    XYAxis xAxis = qcPlot.getPlotView().getXAxis();
    XYAxis yAxis = qcPlot.getPlotView().getYAxis();
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
    testPlot.addDataSet("DataSet1");
    testPlot.addData("DataSet1", time.getTimeInMillis(), 1);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
    time.add(Calendar.MINUTE, 1);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 11);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
   
    time.add(Calendar.MINUTE, 20);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 50);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
  }
View Full Code Here

Examples of plotter.xy.XYAxis

    .build();
    testPlot.setManifestation(mockPlotViewManifestation);
   
    PlotterPlot qcPlot = (PlotterPlot) testPlot.returnPlottingPackage();
   
    XYAxis xAxis = qcPlot.getPlotView().getXAxis();
    XYAxis yAxis = qcPlot.getPlotView().getYAxis();
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
    testPlot.addDataSet("DataSet1");
    testPlot.addData("DataSet1", time.getTimeInMillis(), 1);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
    time.add(Calendar.MINUTE, 1);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 11);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
   
    time.add(Calendar.MINUTE, 20);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 50);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
  }
View Full Code Here

Examples of plotter.xy.XYAxis

    .build();
    testPlot.setManifestation(mockPlotViewManifestation);
   
    PlotterPlot qcPlot = (PlotterPlot) testPlot.returnPlottingPackage();
   
    XYAxis xAxis = qcPlot.getPlotView().getXAxis();
    XYAxis yAxis = qcPlot.getPlotView().getYAxis();
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
    testPlot.addDataSet("DataSet1");
    testPlot.addData("DataSet1", time.getTimeInMillis(), 1);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
    time.add(Calendar.MINUTE, 1);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 11);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
   
    time.add(Calendar.MINUTE, 20);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 50);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
  }
View Full Code Here

Examples of plotter.xy.XYAxis

    .build();
    testPlot.setManifestation(mockPlotViewManifestation);
   
    PlotterPlot qcPlot = (PlotterPlot) testPlot.returnPlottingPackage();
   
    XYAxis xAxis = qcPlot.getPlotView().getXAxis();
    XYAxis yAxis = qcPlot.getPlotView().getYAxis();
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
    testPlot.addDataSet("DataSet1");
    testPlot.addData("DataSet1", time.getTimeInMillis(), 1);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
    time.add(Calendar.MINUTE, 1);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 11);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
   
    time.add(Calendar.MINUTE, 20);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 50);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
  }
View Full Code Here

Examples of plotter.xy.XYAxis

    .build();
    testPlot.setManifestation(mockPlotViewManifestation);
   
    PlotterPlot qcPlot = (PlotterPlot) testPlot.returnPlottingPackage();
   
    XYAxis xAxis = qcPlot.getPlotView().getXAxis();
    XYAxis yAxis = qcPlot.getPlotView().getYAxis();
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
    testPlot.addDataSet("DataSet1");
    testPlot.addData("DataSet1", time.getTimeInMillis(), 1);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
    time.add(Calendar.MINUTE, 1);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 11);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
   
   
    time.add(Calendar.MINUTE, 20);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 50);
   
    Assert.assertTrue(yAxis.getStart() > yAxis.getEnd());
    Assert.assertTrue(xAxis.getStart() > xAxis.getEnd());
  }
View Full Code Here

Examples of plotter.xy.XYAxis

    .build();
    testPlot.setManifestation(mockPlotViewManifestation);
   
    PlotterPlot qcPlot = (PlotterPlot) testPlot.returnPlottingPackage();
   
    XYAxis xAxis = qcPlot.getPlotView().getXAxis();
    XYAxis yAxis = qcPlot.getPlotView().getYAxis();
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
    testPlot.addDataSet("DataSet1");
    testPlot.addData("DataSet1", time.getTimeInMillis(), 1);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
    time.add(Calendar.MINUTE, 1);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 11);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
   
    time.add(Calendar.MINUTE, 20);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 50);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
  }
View Full Code Here

Examples of plotter.xy.XYAxis

    .build();
    testPlot.setManifestation(mockPlotViewManifestation);
   
    PlotterPlot qcPlot = (PlotterPlot) testPlot.returnPlottingPackage();
   
    XYAxis xAxis = qcPlot.getPlotView().getXAxis();
    XYAxis yAxis = qcPlot.getPlotView().getYAxis();
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
    testPlot.addDataSet("DataSet1");
    testPlot.addData("DataSet1", time.getTimeInMillis(), 1);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
    time.add(Calendar.MINUTE, 1);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 11);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
   
   
    time.add(Calendar.MINUTE, 20);
    testPlot.addData("DataSet1", time.getTimeInMillis(), 50);
   
    Assert.assertFalse(yAxis.getStart() > yAxis.getEnd());
    Assert.assertFalse(xAxis.getStart() > xAxis.getEnd());
  }
View Full Code Here

Examples of plotter.xy.XYAxis

      legendManager.setVisible(true);
    }

    boolean visible = legendManager.isVisible();
    if(wasVisible != visible) {
      XYAxis yAxis = plotView.getYAxis();
      SpringLayout layout = (SpringLayout) plotView.getLayout();
      if (getAxisOrientationSetting() == AxisOrientationSetting.X_AXIS_AS_TIME) {
        if(visible) {
          layout.putConstraint(SpringLayout.WEST, yAxis, 0, SpringLayout.EAST, legendManager);
        } else {
          layout.putConstraint(SpringLayout.WEST, yAxis, 0, SpringLayout.WEST, plotView);
        }
      } else {
        /* Make room for axis labels, but only if they're non-empty */
        if (yAxis.getComponentCount() > 0) {
          layout.putConstraint(SpringLayout.WEST, yAxis, 2, SpringLayout.EAST, legendManager);
        } else {
          /* Otherwise, push up against the plot contents */
          layout.putConstraint(SpringLayout.WEST, legendManager, 5, SpringLayout.WEST, plotView);
          layout.putConstraint(SpringLayout.WEST, yAxis, 2, SpringLayout.EAST, legendManager);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.