Package plotter

Examples of plotter.LineChecker.check()


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


  public void testPaintClip2() throws InterruptedException, InvocationTargetException {
View Full Code Here


    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 testPaintClip3() throws InterruptedException, InvocationTargetException {
View Full Code Here

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


  public void testPaintClip4() throws InterruptedException, InvocationTargetException {
View Full Code Here

    add(.5, .5);
    CountingGraphics g = paint(new Rectangle(84, 96, 10, 10));

    LineChecker c = new LineChecker();
    c.require(79, 120, 99, 100);
    c.check(g.getLines());
    assertEquals(g.getLines().size() + 1, g.getPointCount());
  }


  public void testPaintClipInverted() throws InterruptedException, InvocationTargetException {
View Full Code Here

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


  public void testPaintClipPrepend() throws InterruptedException, InvocationTargetException {
View Full Code Here

    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());
  }


  public void testPaintClipPrepend2() throws InterruptedException, InvocationTargetException {
View Full Code Here

    CountingGraphics g = paint(new Rectangle(44, 156, 10, 10));

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


  public void testPaintClipPrepend3() throws InterruptedException, InvocationTargetException {
View Full Code Here

    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());
  }


  public void testPaintClipPrepend4() throws InterruptedException, InvocationTargetException {
View Full Code Here

    CountingGraphics g = paint(new Rectangle(44, 156, 10, 10));

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


  public void testPaintClipPrependDD() throws InterruptedException, InvocationTargetException {
View Full Code Here

    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());
  }


  public void testRemoveFirst() throws InterruptedException, InvocationTargetException {
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.