Package plotter

Examples of plotter.LineChecker


  public void testPaintSimple() throws InterruptedException, InvocationTargetException {
    add(.1, .1);
    add(.9, .9);
    CountingGraphics g = paint();

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
    assertEquals(2, g.getPointCount());
  }
View Full Code Here


    plot.getXAxis().setEnd(0);
    add(.1, .1);
    add(.9, .9);
    CountingGraphics g = paint();

    LineChecker c = new LineChecker();
    c.require(179, 180, 19, 20);
    c.check(g.getLines());
    assertEquals(2, g.getPointCount());
  }
View Full Code Here

    add(.05, Double.NaN);
    add(.1, .1);
    add(.9, .9);
    CountingGraphics g = paint();

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
    assertEquals(2, g.getPointCount());
  }
View Full Code Here

    add(.1, .1);
    add(.9, .9);
    add(.95, Double.NaN);
    CountingGraphics g = paint();

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
    assertEquals(2, g.getPointCount());
  }
View Full Code Here

    add(.5, Double.NaN);
    add(.8, .8);
    add(.9, .9);
    CountingGraphics g = paint();

    LineChecker c = new LineChecker();
    c.require(19, 180, 39, 160);
    c.require(159, 40, 179, 20);
    c.check(g.getLines());
    assertEquals(4, g.getPointCount());
  }
View Full Code Here

    add(.95, Double.NaN);
    add(.96, Double.NaN);
    add(.97, Double.NaN);
    CountingGraphics g = paint();

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
    assertEquals(2, g.getPointCount());
  }
View Full Code Here

    add(.3, Double.NaN);
    add(.4, .4);
    add(.5, .5);
    CountingGraphics g = paint(new Rectangle(84, 116, 10, 10));

    LineChecker c = new LineChecker();
    c.allow(39, 160, 59, 140);
    c.allow(59, 140, 79, 120);
    c.require(79, 120, 99, 100);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }
View Full Code Here

    prepend(.3, .3);
    prepend(.4, Double.NaN);
    prepend(.5, Double.NaN);
    CountingGraphics g = paint(new Rectangle(24, 176, 10, 10));

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

    prependDD(.3, .3);
    prependDD(.4, Double.NaN);
    prependDD(.5, Double.NaN);
    CountingGraphics g = paint(new Rectangle(24, 176, 10, 10));

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

    add(.1, .1);
    add(.2, .2);
    CountingGraphics g2 = paint(new Rectangle(24, 176, 10, 10));

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

TOP

Related Classes of plotter.LineChecker

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.