Examples of Coordinate


Examples of at.bestsolution.efxclipse.tooling.svgpath.svgPath.coordinate

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetC2(coordinate newC2, NotificationChain msgs)
  {
    coordinate oldC2 = c2;
    c2 = newC2;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SvgPathPackage.COORDINATE_PAIR__C2, oldC2, newC2);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of bad.robot.excel.sheet.Coordinate

    @Test
    public void replaceNonDateCellWithACell() throws IOException {
        Workbook workbook = getWorkbook("cellTypes.xls");
        PoiWorkbook sheet = new PoiWorkbook(workbook);
        Coordinate coordinate = coordinate(B, 2);

        assertThat(getCellForCoordinate(coordinate, workbook), equalTo(new DoubleCell(1001d)));
        sheet.replaceCell(coordinate, createDate(15, MARCH, 2012));

        assertThat(getCellForCoordinate(coordinate, workbook), equalTo(new DateCell(createDate(15, MARCH, 2012))));
View Full Code Here

Examples of ca.coolman.location.Coordinate

          if (lloc.getLookupStatus() == LookupLocation.STATUS_OK) {
            setLocation(lloc);
          }
        } else {
          LocationLookupService lookup = LocationLookupService.createLookupByGeocode();
          LookupLocation lloc = lookup.getLocation(new Coordinate(loc));
          if (lloc.getLookupStatus() != LookupLocation.STATUS_OK) {
            lloc.setLatitude(loc.getLatitude());
            lloc.setLongtitude(loc.getLongtitude());
          }
        }
View Full Code Here

Examples of civquest.util.Coordinate

    public void afterGameChanged(MarkField change) {
        Field markedField = Game.getMapData().getField(change.getFields()[0]);
       
        if (markedField != null) {
            FieldReader fieldReader = gameData.getFieldReader();
            Coordinate lmfPosition = markedField.getPosition();
            String vegName = fieldReader.getVegetationName(lmfPosition)
                .toLowerCase();

            setSelectedButton(this.vegetationButtons, vegName);
View Full Code Here

Examples of com.cumulocity.me.rest.representation.inventory.Coordinate

//    }

    @Test
    public void createManagedObjectWithCoordinateFragment() throws Exception {
        // Given
        Coordinate coordinate = new Coordinate(100.0, 10.0);
        ManagedObjectRepresentation rep = aSampleMo().with(coordinate).build();

        // When
        ManagedObjectRepresentation result = inventory.create(rep);

        // Then
        assertThat(result.getId()).isNotNull();
        Coordinate fragment = (Coordinate) result.get(Coordinate.class);
        assertThat(fragment).isEqualTo(coordinate);
    }
View Full Code Here

Examples of com.dtrules.decisiontables.DTNode.Coordinate

     * @return
     */
    public Coordinate validate(){
       if(decisiontree==null){
           if(actions !=null && actions.length==0)return null;
            return new Coordinate(0,0);
       }
       return decisiontree.validate();
    }
View Full Code Here

Examples of com.impetus.kundera.gis.geometry.Coordinate

        dao.createEntityManager();

        GeometryFactory factory = new GeometryFactory();

        Coordinate[] coordinates = new Coordinate[6];
        coordinates[0] = new Coordinate(1.0, 1.0);
        coordinates[1] = new Coordinate(1.0, 2.0);
        coordinates[2] = new Coordinate(3.0, 4, 0);
        coordinates[3] = new Coordinate(4.0, 3.0);
        coordinates[4] = new Coordinate(4.0, 1.0);
        coordinates[5] = new Coordinate(1.0, 1.0);

        CoordinateSequence points = factory.getCoordinateSequenceFactory().create(coordinates);

        LinearRing shell = new LinearRing(points, factory);
        LinearRing[] holes = new LinearRing[0];
View Full Code Here

Examples of com.sijobe.spc.wrapper.Coordinate

    * @see com.sijobe.spc.wrapper.CommandBase#execute(com.sijobe.spc.wrapper.CommandSender, java.util.List)
    */
   @Override
   public void execute(CommandSender sender, List<?> params) throws CommandException {
      Player player = super.getSenderAsPlayer(sender);
      Coordinate c = player.getPosition();
      int distance = 0;
      try {
         distance = Integer.parseInt((String)params.get(0));
      } catch (NumberFormatException e) {
         throw new CommandException("Could not parse disance specified as integer: " + params.get(0));
      }
     
      if (((String)params.get(1)).toUpperCase().startsWith("N")) {
         player.setPosition(new Coordinate(player.getPosition().getX(), player.getPosition().getY(), player.getPosition().getZ() - distance));
      } else if (((String)params.get(1)).toUpperCase().startsWith("E")) {
         player.setPosition(new Coordinate(player.getPosition().getX() + distance, player.getPosition().getY(), player.getPosition().getZ()));
      } else if (((String)params.get(1)).toUpperCase().startsWith("S")) {
         player.setPosition(new Coordinate(player.getPosition().getX(), player.getPosition().getY(), player.getPosition().getZ() + distance));
      } else if (((String)params.get(1)).toUpperCase().startsWith("W")) {
         player.setPosition(new Coordinate(player.getPosition().getX() - distance, player.getPosition().getY(), player.getPosition().getZ()));
      } else if (((String)params.get(1)).toUpperCase().startsWith("U")) {
         player.setPosition(new Coordinate(player.getPosition().getX(), player.getPosition().getY() + distance, player.getPosition().getZ()));
      } else if (((String)params.get(1)).toUpperCase().startsWith("D")) {
         player.setPosition(new Coordinate(player.getPosition().getX(), player.getPosition().getY() - distance, player.getPosition().getZ() - distance));
      } else {
         throw new CommandException("Invalid direction specified.");
      }

      sender.sendMessageToPlayer("Moved from " +
               FontColour.AQUA + c.getBlockX() + FontColour.WHITE + ", " +
               FontColour.AQUA + c.getBlockX() + FontColour.WHITE + ", " +
               FontColour.AQUA + c.getBlockX() + FontColour.WHITE + " to " +
               FontColour.AQUA + player.getPosition().getBlockX() + FontColour.WHITE + ", " +
               FontColour.AQUA + player.getPosition().getBlockY() + FontColour.WHITE + ", " +
               FontColour.AQUA + player.getPosition().getBlockZ()
      );
   }
View Full Code Here

Examples of com.vividsolutions.jts.geom.Coordinate

 
  private void createDummyPointMarker() throws Exception{
    // create some dummy data
    m1.setMarkerIconId(0);
    m1.setNotes("marker1");
    m1.setPoint(factory.createPoint(new Coordinate(10,10)));
    int id = geomMarkerDao.createPointMarker(m1);
    m1.setId(id);
   
    m2.setMarkerIconId(0);
    m2.setNotes("marker2");
    m2.setPoint(factory.createPoint(new Coordinate(20,20)));
    id = geomMarkerDao.createPointMarker(m2);
    m2.setId(id)
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.Coordinate

 
  public void testUpdatePointMarker() throws Exception{
    PointMarker pm = geomMarkerDao.getPointMarker(m1.getId());
    pm.setMarkerIconId(10);
    pm.setNotes("newnotes");
    Point p3 = factory.createPoint(new Coordinate(30,30));
    pm.setPoint(p3);
    assertTrue(geomMarkerDao.updatePointMarker(pm));
    pm = geomMarkerDao.getPointMarker(m1.getId());
    assertEquals(m1.getId(),pm.getId());
    assertEquals(10,pm.getMarkerIconId());
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.