Package net.rim.device.api.lbs.maps.ui

Examples of net.rim.device.api.lbs.maps.ui.MapField


     // Register for pinch events so we can get pinch-to-zoom.
        final InputSettings is = TouchscreenSettings.createEmptySet();
        is.set( TouchscreenSettings.DETECT_PINCH, 1 );
        addInputSettings( is );
       
        map = new MapField();
       
        // Add a change listener to listen to changes to the MapField.
        map.addChangeListener( this );
        add( map );
       
View Full Code Here


            // Allow map to get focus but not be interactive unless clicked
            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

            final int displayWidth = Display.getWidth();
            final int displayHeight = Display.getHeight();

            // Initialize PIP map
            _pipMap = new MapField(displayWidth / 3, displayHeight / 3) {
                public boolean isFocusable() {
                    return false;
                }
            };
            _pipMap.setBorder(BorderFactory.createSimpleBorder(new XYEdges(2,
View Full Code Here

TOP

Related Classes of net.rim.device.api.lbs.maps.ui.MapField

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.