Package plotter

Examples of plotter.LineChecker.check()


    LineChecker c = new LineChecker();
    c.allow(19, 180, 39, 160);
    c.require(39, 160, 59, 140);
    c.allow(59, 140, 79, 120);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }


  public void testRepaint() {
View Full Code Here


    c.require(174, 15, 174, 25);
    c.require(174, 25, 184, 25);
    c.require(184, 25, 184, 15);
    c.require(184, 15, 174, 15);

    c.check(g.getLines());
  }


  public void testPointOutlineNaN() throws InterruptedException, InvocationTargetException {
    line.setPointOutline(createSquare());
View Full Code Here

    c.require(174, 15, 174, 25);
    c.require(174, 25, 184, 25);
    c.require(184, 25, 184, 15);
    c.require(184, 15, 174, 15);

    c.check(g.getLines());
  }


  private GeneralPath createSquare() {
    GeneralPath pointShape = new GeneralPath();
View Full Code Here

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

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


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

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

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


  public void testPaintLeadingNaN() throws InterruptedException, InvocationTargetException {
    add(.05, Double.NaN);
View Full Code Here

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

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


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

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

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


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

    assertEquals(4, g.getPointCount());

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


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

    CountingGraphics g = paint();
    assertEquals(2, g.getPointCount());

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


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

    assertEquals(3, g.getPointCount());

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


  public void testPaintLeadingNaNStep() throws InterruptedException, InvocationTargetException {
    line.setLineMode(LineMode.STEP_YX);
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.