Package de.fhpotsdam.unfolding.marker

Examples of de.fhpotsdam.unfolding.marker.AbstractShapeMarker


      for (Marker m : mm.getMarkers()) {
        locations.addAll(getLocations(m));
      }
    } else if (marker instanceof AbstractShapeMarker) {
      // line or polygon
      AbstractShapeMarker sm = (AbstractShapeMarker) marker;
      locations.addAll(sm.getLocations());
    } else {
      // default: point
      locations.add(marker.getLocation());
    }
    return locations;
View Full Code Here


    Location pragueLocation = new Location(50.08f, 14.42f);

    for (Marker marker : map.getMarkers()) {
      if ("DEU".equals(marker.getId())) {

        AbstractShapeMarker shapeMarker = (AbstractShapeMarker) marker;

        assertTrue(shapeMarker.isInsideByLocation(berlinLocation));
        assertFalse(shapeMarker.isInsideByLocation(pragueLocation));
      }
    }

  }
View Full Code Here

TOP

Related Classes of de.fhpotsdam.unfolding.marker.AbstractShapeMarker

Copyright © 2018 www.massapicom. 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.