Examples of MapPoint


Examples of net.rim.device.api.lbs.maps.model.MapPoint

            final String lon = _editFieldLongitude.getText().trim();
            if (lat.length() > 0 && lon.length() > 0) {
                // Check if this is to be a blocking request
                final boolean blocking = _blockingCheckbox.getChecked();

                final MapPoint origin =
                        new MapPoint(Float.parseFloat(lat), Float
                                .parseFloat(lon));

                final MapDimensions dim =
                        new MapDimensions(origin, MAP_WIDTH, MAP_HEIGHT,
                                ZOOM_LEVEL, ROTATION);
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapPoint

        if (attached) {
            // Set the location of the map to some random
            // location and set zoom to 5 (this zoom level
            // will be overriden by this application's
            // RestrictedMapAction class).
            _map.getMapField().getAction().setCenterAndZoom(new MapPoint(0, 0),
                    5);
        }
    }
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapPoint

                final MapAction mapAction =
                        _richMapField.getMapField().getAction();

                // Set center of map near to desired origin and zoom to desired
                // level
                mapAction.setCenterAndZoom(new MapPoint(ORIGIN_LATITUDE,
                        ORIGIN_LONGITUDE), ZOOM_LEVEL);

                _richMapField.setFocus();
            }
        }
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapPoint

                final BlackBerryLocation location) {
            final Coordinates coordinates = location.getQualifiedCoordinates();

            // Move the map to the current location
            final MapAction mapAction = _richMapField.getMapField().getAction();
            mapAction.setCenter(new MapPoint(coordinates));

            final double lat = 100000.0 * coordinates.getLatitude();
            final double lng = 100000.0 * coordinates.getLongitude();

            // Update the status field
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapPoint

                    (int) (100000.0 * location.getQualifiedCoordinates()
                            .getLongitude());

            // Move the map to the current location
            final MapAction mapAction = _richMapField.getMapField().getAction();
            mapAction.setCenter(new MapPoint(lat, lng));

            // Update the status field
            final StringBuffer strBuffer = new StringBuffer(tag);
            strBuffer.append(": Good bye, come again!");
            strBuffer.append(" Lat: ");
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapPoint

        private void addDataToMap() {
            // Polygon will be rendered solid white with a black border if we
            // don't change the style.
            final MapPoint[] points = new MapPoint[6];
            points[0] = new MapPoint(ORIGIN_LATITUDE, ORIGIN_LONGITUDE);
            points[1] =
                    new MapPoint(ORIGIN_LATITUDE - 0.05,
                            ORIGIN_LONGITUDE + 0.05);
            points[2] =
                    new MapPoint(ORIGIN_LATITUDE - 0.1,
                            ORIGIN_LONGITUDE + 0.025);
            points[3] =
                    new MapPoint(ORIGIN_LATITUDE - 0.1,
                            ORIGIN_LONGITUDE - 0.025);
            points[4] =
                    new MapPoint(ORIGIN_LATITUDE - 0.05,
                            ORIGIN_LONGITUDE - 0.05);

            // Close the polygon
            points[5] = new MapPoint(ORIGIN_LATITUDE, ORIGIN_LONGITUDE);

            final MapSimplePolygon poly = new MapSimplePolygon(points);
            poly.setStyleId("poly");
            _bigMap.getModel().add(poly, "Polygon", true);
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapPoint

            if (attached) {
                final MapAction mapAction = _bigMap.getMapField().getAction();

                // Set the location of both the big map and the PIP map
                mapAction.setCenter(new MapPoint(43.47483, -80.53919));

                mapAction.setZoom(ZOOM_LEVEL);
                _bigMap.setFocus();
            }
        }
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapPoint

            final String name, final String description) {
        super(lat, lon, name, description);

        _eventManager = new MappableEventManager();

        _mapPointOldState = new MapPoint(lat, lon);
    }
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapPoint

    protected void onUiEngineAttached(final boolean attached) {
        super.onUiEngineAttached(attached);
        if (attached) {
            // Set the location of the map to some random location
            _map.getMapField().getAction().setCenter(
                    new MapPoint(ORIGIN_LATITUDE, ORIGIN_LONGITUDE));

            // Set the zoom level of the map
            _map.getMapField().getAction().setZoom(ZOOM_LEVEL);

            // Now that we know the map is up and running, start the "service"
View Full Code Here

Examples of org.openiaml.model.model.visual.MapPoint

    setGeneratedBy(list, by);
    return list;
  }
 
  public MapPoint generatedMapPoint(GeneratesElements by, VisibleThing container) throws InferenceException {
    MapPoint field = (MapPoint) createElement( container, VisualPackage.eINSTANCE.getMapPoint(), ModelPackage.eINSTANCE.getVisibleThing_Children() );
    setGeneratedBy(field, by);
    return field;
  }
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.