Package plotter

Examples of plotter.LineChecker.check()


    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.require(39, 160, 39, 100);
    c.require(159, 40, 179, 20);
    c.require(179, 20, 179, 0);
    c.check(g.getLines());
  }


  public void testPaintMissingPointRightWithMissingEnds() throws InterruptedException, InvocationTargetException {
    line.setMissingPointMode(MissingPointMode.RIGHT);
View Full Code Here


    LineChecker c = new LineChecker();
    c.require(19, 200, 19, 180);
    c.require(19, 180, 39, 160);
    c.require(159, 100, 159, 40);
    c.require(159, 40, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintMissingPointBothWithMissingEnds() throws InterruptedException, InvocationTargetException {
    line.setMissingPointMode(MissingPointMode.BOTH);
View Full Code Here

    c.require(19, 180, 39, 160);
    c.require(39, 160, 39, 100);
    c.require(159, 100, 159, 40);
    c.require(159, 40, 179, 20);
    c.require(179, 20, 179, 0);
    c.check(g.getLines());
  }


  public void testRepaint() {
    add(.1, .2);
View Full Code Here

    assertEquals(3, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 180);
    c.require(179, 180, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintTrailingNaNStepXY() throws InterruptedException, InvocationTargetException {
    line.setLineMode(LineMode.STEP_XY);
View Full Code Here

    assertEquals(3, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 180);
    c.require(179, 180, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintMiddleNaNStepXY() throws InterruptedException, InvocationTargetException {
    line.setLineMode(LineMode.STEP_XY);
View Full Code Here

    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 180);
    c.require(39, 180, 39, 160);
    c.require(159, 40, 179, 40);
    c.require(179, 40, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintClip() throws InterruptedException, InvocationTargetException {
    add(.1, .1);
View Full Code Here

    CountingGraphics g = paint(new Rectangle(150, 0, 50, 200));
    assertEquals(2, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(99, 100, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintClipInverted() throws InterruptedException, InvocationTargetException {
    plot.getXAxis().setStart(1);
View Full Code Here

    CountingGraphics g = paint(new Rectangle(0, 0, 50, 200));
    assertEquals(2, g.getPointCount());

    LineChecker c = new LineChecker();
    c.require(99, 100, 19, 20);
    c.check(g.getLines());
  }


  public void testPaintMissingPointLeft() throws InterruptedException, InvocationTargetException {
    line.setMissingPointMode(MissingPointMode.LEFT);
View Full Code Here

    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.require(39, 160, 99, 160);
    c.require(159, 40, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintMissingPointRight() throws InterruptedException, InvocationTargetException {
    line.setMissingPointMode(MissingPointMode.RIGHT);
View Full Code Here

    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.require(99, 40, 159, 40);
    c.require(159, 40, 179, 20);
    c.check(g.getLines());
  }


  public void testPaintMissingPointBoth() throws InterruptedException, InvocationTargetException {
    line.setMissingPointMode(MissingPointMode.BOTH);
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.