Examples of updatePosition()


Examples of net.sf.l2j.gameserver.model.L2Character.updatePosition()

    {

      L2Character cha = chars[i];

      // Update the position of the L2Character and return True if the movement is finished
      boolean end = cha.updatePosition(_gameTicks);

      // If movement is finished, the L2Character is removed from movingObjects and added to the ArrayList ended
      if (end)
      {
        _movingObjects.remove(cha);
View Full Code Here

Examples of org.broadinstitute.gatk.utils.codecs.hapmap.RawHapMapFeature.updatePosition()

                        alleleMap.put(RawHapMapFeature.DELETION, Allele.create(ref.getBase(), dbsnpVC.isSimpleInsertion()));
                        alleleMap.put(RawHapMapFeature.INSERTION, Allele.create((char)ref.getBase() + ((RawHapMapFeature)record).getAlleles()[1], !dbsnpVC.isSimpleInsertion()));
                        hapmap.setActualAlleles(alleleMap);

                        // also, use the correct positioning for insertions
                        hapmap.updatePosition(dbsnpVC.getStart());

                        if ( hapmap.getStart() < ref.getWindow().getStart() ) {
                            logger.warn("Hapmap record at " + ref.getLocus() + " represents an indel too large to be converted; skipping...");
                            continue;
                        }
View Full Code Here

Examples of org.tinyuml.draw.Selection.updatePosition()

    // These methods have no effect, just check they don't throw
    // exceptions
    selection.startDragging(x, y);
    selection.stopDragging(x, y);
    selection.cancelDragging();
    selection.updatePosition(x, y);
    selection.draw(drawingContext);
    selection.updateDimensions();
  }
}
View Full Code Here

Examples of org.tinyuml.draw.Selection.updatePosition()

    // These methods have no effect, just check they don't throw
    // exceptions
    selection.startDragging(x, y);
    selection.stopDragging(x, y);
    selection.cancelDragging();
    selection.updatePosition(x, y);
    selection.draw(drawingContext);
    selection.updateDimensions();
  }
}
View Full Code Here

Examples of org.tinyuml.draw.Selection.updatePosition()

    // These methods have no effect, just check they don't throw
    // exceptions
    selection.startDragging(x, y);
    selection.stopDragging(x, y);
    selection.cancelDragging();
    selection.updatePosition(x, y);
    selection.draw(drawingContext);
    selection.updateDimensions();
  }
}
View Full Code Here

Examples of org.tinyuml.draw.Selection.updatePosition()

    // these have no effect
    selection.startDragging(1.0, 2.0);
    selection.stopDragging(3.0, 4.0);
    selection.cancelDragging();
    selection.updateDimensions();
    selection.updatePosition(1.0, 2.0);
  }
}
View Full Code Here

Examples of org.tinyuml.draw.Selection.updatePosition()

    // These methods have no effect, just check they don't throw
    // exceptions
    selection.startDragging(x, y);
    selection.stopDragging(x, y);
    selection.cancelDragging();
    selection.updatePosition(x, y);
    selection.draw(drawingContext);
    selection.updateDimensions();
  }
}
View Full Code Here

Examples of org.tinyuml.draw.SimpleConnectionSelection.updatePosition()

    selection.startDragging(105, 30);
    Point2D oldp1 = conn.getEndPoint1();
    Point2D oldp2 = conn.getEndPoint2();
    assertEquals(3, selection.getEditPoints().size());
    assertTrue(selection.isDragging());
    selection.updatePosition(120, 50);
    selection.updatePosition(130, 70);
    selection.cancelDragging();
    assertFalse(selection.isDragging());
    assertEquals(2, conn.getPoints().size());
    assertEquals(oldp1, conn.getPoints().get(0));
View Full Code Here

Examples of org.tinyuml.draw.SimpleConnectionSelection.updatePosition()

    Point2D oldp1 = conn.getEndPoint1();
    Point2D oldp2 = conn.getEndPoint2();
    assertEquals(3, selection.getEditPoints().size());
    assertTrue(selection.isDragging());
    selection.updatePosition(120, 50);
    selection.updatePosition(130, 70);
    selection.cancelDragging();
    assertFalse(selection.isDragging());
    assertEquals(2, conn.getPoints().size());
    assertEquals(oldp1, conn.getPoints().get(0));
    assertEquals(oldp2, conn.getPoints().get(1));
View Full Code Here

Examples of org.tinyuml.draw.SimpleConnectionSelection.updatePosition()

    node2.setOrigin(120, 10); // (120, 10, 80, 40) -> max (200, 50)
    SimpleConnectionSelection selection = setupConnection();
    selection.startDragging(105, 30);
    assertEquals(3, selection.getEditPoints().size());
    assertTrue(selection.isDragging());
    selection.updatePosition(120, 50);
    selection.updatePosition(130, 70);
    selection.stopDragging(140, 90);
    assertFalse(selection.isDragging());
    assertEquals(3, conn.getPoints().size());
    // the position at stopDragging() has no effect !
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.