Examples of Line


Examples of com.asakusafw.testdriver.windgate.emulation.testing.model.Line

        deployer.copy(new File("src/test/dist"), deployer.getHome());

        JobFlowTester tester = new JobFlowTester(getClass());
        tester.setFrameworkHomePath(deployer.getHome());

        tester.input("line", Line.class).prepare(Arrays.asList(new Line("Hello, world!")));
        tester.output("line", Line.class).verify(Arrays.asList(new Line("Hello, world!")), new ModelVerifier<Line>() {
            @Override
            public Object getKey(Line target) {
                return target.getValueOption();
            }
            @Override
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.pente.analysis.Line

            stopc = numCols;
        }
        if ( stopr < 1 ) {
            stopc += stopr - 1;
        }
        Line line = lineFactory_.createLine(patterns_, weights);
        for (int i = startc; i <= stopc; i++ )
            line.append( board_.getPosition( startr - i + startc, i ) );

        int position = col - startc;
        return line.computeValueDifference(position);
        //line.worthDebug(Direction.UP_DIAGONAL.name(), position, diff);
    }
View Full Code Here

Examples of com.baulsupp.kolja.log.line.Line

    return reports.size() > 1;
  }

  protected void iterateThroughFile(LineIterator i) {
    while (i.hasNext()) {
      Line l = i.next();

      processLine(l);
    }
  }
View Full Code Here

Examples of com.blitline.image.functions.Line

  public static ImaggaSmartCrop imaggaCrop(int width, int height) {
    return new ImaggaSmartCrop(width, height);
  }

  public static Line line(int x1, int y1, int x2, int y2) {
    return new Line(x1, y1, x2, y2);
  }
View Full Code Here

Examples of com.bookstore.domain.model.Line

    this.paymentReceived = paymentReceived;
  }
 
  public void addBook(Book book, int quantity) {
    if (orderState.equals("Open")) {
      getLines().add(new Line(book, quantity));
    } else {
      throw new IllegalStateException("Can only add books in Open state.");
    }
  }
View Full Code Here

Examples of com.cadrlife.jhaml.internal.Line

  private List<Line> processNesting(List<Line> lines) {
    int indentSize = -1;
    List<Line> lineTree = new ArrayList<Line>();
    for (Line line : lines) {
     
      Line parentLine = parentLine(line, lineTree);
      if (parentLine != null) {
        if (indentSize == -1) {
          indentSize = line.leadingWhitespace.length() - parentLine.leadingWhitespace.length();
        }
        line.indentation = parentLine.indentation + "  ";
        if (parentLine.isFilter()) {
          line.isWithinFilter = true;
        }
        if (line.isBlank() && !line.isWithinFilter) {
          continue;
        }
View Full Code Here

Examples of com.google.collide.shared.document.Line

      Position[] selectionRange = selection.getSelectionRange(true);
      /*
       * TODO: this isn't going to scale for document-sized
       * selections, need to change some APIs
       */
      Line beginLine = selectionRange[0].getLine();
      int beginLineNumber = selectionRange[0].getLineNumber();
      int beginColumn = selectionRange[0].getColumn();
      String textToDelete =
          LineUtils.getText(beginLine, beginColumn,
              selectionRange[1].getLine(), selectionRange[1].getColumn());
View Full Code Here

Examples of com.google.test.metric.report.Source.Line

    ClassReport classReport = report.createClassReport(classCost);
    Source source = classReport.getSource();
    MethodCost m1 = classCost.getMethodCost("void m1()");
    MethodCost m2 = classCost.getMethodCost("void m2()");
    Line l1 = source.getLine(m1.getMethodLineNumber());
    Line l2 = source.getLine(m2.getMethodLineNumber());

    assertTrue(l1.toString(), l1.toString().contains("staticCost4()"));
    assertEquals(4, l1.getCost().getCyclomaticComplexityCost());
    assertTrue(l2.toString(), l2.toString().contains("staticCost3()"));
    assertEquals(3, l2.getCost().getCyclomaticComplexityCost());
  }
View Full Code Here

Examples of com.google.wave.api.Line

          throw new JsonParseException("Couldn't convert to utf-8", e);
        }
      }
      result = new Attachment(properties, data);
    } else if (type == ElementType.LINE) {
      result = new Line(properties);
    } else {
      result = new Element(type, properties);
    }
    return result;
  }
View Full Code Here

Examples of com.googlecode.charts4j.Line

   
    if (min >= max)
      return errorChart();
   
    // Defining lines
    Line line1;
    if (lineLabel == null)
      line1 = Plots.newLine(DataUtil.scaleWithinRange(min, max, points), lineColor);
    else
      line1 = Plots.newLine(DataUtil.scaleWithinRange(min, max, points), lineColor, lineLabel);
    line1.setLineStyle(LineStyle.newLineStyle(1, 1, 0));
    line1.addShapeMarkers(Shape.CIRCLE, lineColor, pointSize);
   
    // Defining chart.
    LineChart chart = GCharts.newLineChart(line1);
    chart.setSize(w, h);
    if (title != null)
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.