Examples of MapDimensions


Examples of net.rim.device.api.lbs.maps.MapDimensions

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

                final MapDimensions dim =
                        new MapDimensions(origin, MAP_WIDTH, MAP_HEIGHT,
                                ZOOM_LEVEL, ROTATION);

                if (_choiceField.getSelectedIndex() == 0) // Use the freeform
                                                          // text
                {
View Full Code Here

Examples of net.rim.device.api.lbs.maps.MapDimensions

            final MapAction mapAction = _richMapField.getAction();
            mapAction.enableOperationMode(MapConstants.MODE_SHARED_FOCUS);

            // Set the size of the map field
            final MapField mapField = _richMapField.getMapField();
            mapField.setDimensions(new MapDimensions(Display.getWidth(),
                    MAP_HEIGHT));

            add(_richMapField);

            // Establish a Geofence around a circular region defined by a
View Full Code Here

Examples of net.rim.device.api.lbs.maps.MapDimensions

        }

        _map = MapFactory.getInstance().generateRichMapField();
        _map.getMapField()
                .setDimensions(
                        new MapDimensions(Display.getWidth(), Display
                                .getHeight() - 130));

        // Register for field updates (when the center and zoom changes)
        _map.getMapField().addChangeListener(this);
View Full Code Here

Examples of net.rim.device.api.lbs.maps.MapDimensions

     * @see net.rim.device.api.ui.FieldChangeListener#fieldChanged(Field, int)
     */
    public void fieldChanged(final Field field, final int context) {
        if (field == _map.getMapField()) {
            // Get the map's current dimensions
            final MapDimensions dim = _map.getMapField().getDimensions();

            switch (context) {
            case MapAction.ACTION_CENTER_CHANGE:
                _latField.setText("Latitude: " + dim.getCenter().getLat());
                _lonField.setText("Longitude: " + dim.getCenter().getLon());
                break;
            case MapAction.ACTION_ZOOM_CHANGE:
                _zoomField.setText("Zoom Level: " + dim.getZoom());
                break;
            }
        }
    }
View Full Code Here

Examples of net.rim.device.api.lbs.maps.MapDimensions

    public DynamicMappableScreen() {
        _map = MapFactory.getInstance().generateRichMapField();

        // Set the size of the map field
        _map.getMapField().setDimensions(
                new MapDimensions(Display.getWidth(), Display.getHeight()));

        // Add any dynamic mappables to the model
        UpdateManager.getInstance().addMappablesToModel(_map.getModel());

        // Add the map to the screen
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.