Examples of MapField


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

                    Field.NON_FOCUSABLE));
            add(new RichTextField("Average Speed(m/s): "
                    + Float.toString(avgSpeed), Field.NON_FOCUSABLE));

            // Display the WayPoint on a map
            final MapField map = new MapField();
            map.moveTo(new Coordinates(point._latitude, point._longitude,
                    Float.NaN));
            add(map);
        }
View Full Code Here

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

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

            // 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

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

            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

Examples of org.apache.solr.uima.processor.SolrUIMAConfiguration.MapField

          fieldNameFeature = (String) mapping.get("fieldNameFeature");
          mappedFieldName = (String) mapping.get("dynamicField");
        }
        if(mappedFieldName == null)
          throw new RuntimeException("either of field or dynamicField should be defined for feature " + featureName);
        MapField mapField = new MapField(mappedFieldName, fieldNameFeature);
        subMap.put(featureName, mapField);
      }
      map.put(typeName, subMap);
    }
    return map;
View Full Code Here

Examples of org.apache.solr.uima.processor.SolrUIMAConfiguration.MapField

      Type type = cas.getTypeSystem().getType(typeName);
      for (FSIterator<FeatureStructure> iterator = cas.getFSIndexRepository().getAllIndexedFS(type); iterator
          .hasNext(); ) {
        FeatureStructure fs = iterator.next();
        for (String featureName : featureFieldsmapping.keySet()) {
          MapField mapField = featureFieldsmapping.get(featureName);
          String fieldNameFeature = mapField.getFieldNameFeature();
          String fieldNameFeatureValue = fieldNameFeature == null ? null :
              fs.getFeatureValueAsString(type.getFeatureByBaseName(fieldNameFeature));
          String fieldName = mapField.getFieldName(fieldNameFeatureValue);
          log.info(new StringBuffer("mapping ").append(typeName).append("@").append(featureName)
              .append(" to ").append(fieldName).toString());
          String featureValue = null;
          if (fs instanceof Annotation && "coveredText".equals(featureName)) {
            featureValue = ((Annotation) fs).getCoveredText();
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.