Examples of moveTo()


Examples of org.apache.jackrabbit.vault.vlt.meta.MetaFile.moveTo()

            if (diff.hasConflicts()) {
                entry.conflict(file, baseFile, tmpFile);
                action = FileAction.CONFLICTED;
            } else {
                // make the tmp file the new base
                tmpFile.moveTo(baseFile);
                base.update(baseFile, true);
                action = FileAction.MERGED;
            }

            // and update the 'work'
View Full Code Here

Examples of org.apache.kato.hprof.datalayer.CachedRandomAccesDataProvider.moveTo()

  public void testReadBackwards() throws Exception {
    CachedRandomAccesDataProvider provider = new CachedRandomAccesDataProvider(testFile);
    provider.open();
   
    for(int i=1048572; i >0 ; i-=1) {
      provider.moveTo(i*4);
      int val = provider.readU4();
      assertEquals(i,val);
    }
    provider.close();
  }
View Full Code Here

Examples of org.apache.poi.hslf.model.Table.moveTo()

    table.setColumnWidth(0, 300);
    // set width of the 2nd column
    table.setColumnWidth(1, 150);
   
    slide.addShape(table);
    table.moveTo(100, 100);
   
    FileOutputStream out = new FileOutputStream("data/Table_Apache.ppt");
    ppt.write(out);
    out.close();
  }
View Full Code Here

Examples of org.apache.uima.cas.FSIterator.moveTo()

      it.next(); // should throw
    } catch (ConcurrentModificationException e) {
      ok = true;
    }
    assertTrue(ok);
    it.moveTo(a);
    ok = false;
    try {
      it.next(); // should not throw
      ok = true;
    } catch (ConcurrentModificationException e) {
View Full Code Here

Examples of org.apache.uima.internal.util.ComparableIntPointerIterator.moveTo()

      // Set all iterators to insertion point.
      int i = 0;
      while (i <= lvi) {
        final ComparableIntPointerIterator it = this.indexes[i];
        it.resetConcurrentModification();
        it.moveTo(fs);
        if (it.isValid()) {
          heapify_up(it, i, 1);
          ++i;
        } else {
          // swap this iterator with the last possibly valid one
View Full Code Here

Examples of org.eclipse.swt.graphics.Path.moveTo()

        PathIterator pit = shape.getPathIterator(null);
        while (!pit.isDone()) {
            type = pit.currentSegment(coords);
            switch (type) {
                case (PathIterator.SEG_MOVETO):
                    path.moveTo(coords[0], coords[1]);
                    break;
                case (PathIterator.SEG_LINETO):
                    path.lineTo(coords[0], coords[1]);
                    break;
                case (PathIterator.SEG_QUADTO):
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.moveTo()

        context.useShell("Color chooser");
        {
          List<ColorsGridComposite> grids = context.findWidgets(ColorsGridComposite.class);
          ColorsGridComposite colorsComposite = grids.get(1);
          EventSender sender = new EventSender(colorsComposite);
          sender.moveTo(30, 50).click();
        }
        context.clickButton("OK");
      }
    });
    assertEquals(getSource(".style {", "  color: cornflowerblue;", "}"), getFileContent(styleFile));
View Full Code Here

Examples of org.freeplane.plugin.script.proxy.Proxy.Node.moveTo()

    final Node root = map.getRoot();
    final Node child1 = root.createChild("child 1");
    final Node child2 = root.createChild("child 2");
    final Node grandchild = child1.createChild("grandchild");
    assertEquals("child2 should have no children", 0, child2.getChildren().size());
    grandchild.moveTo(child2);
    assertEquals("grandchild should be a child of child2 now", child2, grandchild.getParent());
  }

  public void test_Node_moveTo_Node_parentNode_int_position() {
    map = c.newMap();
View Full Code Here

Examples of org.gudy.azureus2.core3.global.GlobalManager.moveTo()

      name = "?";
   
    GlobalManager  gm = dm.getGlobalManager();

    if (moveto) {
      gm.moveTo(dm, nmoveto - 1);
      gm.fixUpDownloadManagerPositions();
      ci.out.println("> Torrent #" + Integer.toString(number) + " (" + name + ") moved to #" + Integer.toString(nmoveto) + ".");
    } else if (ncommand > 0) {
      if (gm.isMoveableUp(dm)) {
        while (gm.isMoveableUp(dm))
View Full Code Here

Examples of org.nlogo.agent.Turtle.moveTo()

        (!(patch.getPatchVariable(reference.vn()) instanceof Double) ||
            winningValue < ((Double) patch.getPatchVariable(reference.vn())).doubleValue())) {
      Patch winner = winners.get(context.job.random.nextInt(winners.size()));
      turtle.face(winner, true);
      try {
        turtle.moveTo(winner);
      } catch (AgentException ex) {
        // should be impossible
        throw new IllegalStateException(ex);
      }
    }
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.