Examples of Feature


Examples of org.codehaus.jackson.map.SerializationConfig.Feature

        if (features != null) {
            Enumeration<String> enumFeatureKey = features.keys();
            while (enumFeatureKey.hasMoreElements()) {
                String featureKey = enumFeatureKey.nextElement();
                Boolean featureValue = features.get(featureKey);
                Feature feature;
                if (featureKey != null && featureValue != null) {
                    try {
                        String[] featureParts = featureKey.split("\\.");
                        getLogger().info(
                                "initializing mapper feature: "
View Full Code Here

Examples of org.dbpedia.spotlight.model.Feature

                    System.out.println("Text = " + text);
                    */

                    SurfaceForm surfaceForm = new SurfaceForm(surfaceFormStr);
                    SurfaceFormOccurrence sfocc =  new SurfaceFormOccurrence(surfaceForm, text, entStart);
                    sfocc.features().put("type", new Feature("type",oType.toString()));
                    sfOccurrences.add(sfocc);
                }
            }

        }
View Full Code Here

Examples of org.eclipse.tycho.model.Feature

  private static GenericP2Artifact parseFeature(InputStream in)
      throws IOException
  {
    // no closing of input stream required - our caller will close the jar
    // at the end
    final Feature f = new Feature(new XMLParser().parse(new XMLIOSource(in)));
    return new GenericP2Artifact(f.getId(), f.getVersion(), P2ArtifactType.FEATURE);
  }
View Full Code Here

Examples of org.ff4j.core.Feature

     */
    public Feature mapFeature(DBObject dbObject) {
        String featUid = (String) dbObject.get(UUID);
        boolean status = (Boolean) dbObject.get(ENABLE);

        Feature f = new Feature(featUid, status);
        f.setDescription((String) dbObject.get(DESCRIPTION));
        f.setGroup((String) dbObject.get(GROUPNAME));
        f.setPermissions(mapAuthorization(dbObject));
        f.setFlippingStrategy(mapStrategy(featUid, dbObject));
        return f;
    }
View Full Code Here

Examples of org.formic.wizard.step.shared.Feature

            continue feature;
          }
        }
      }

      Feature feature = new Feature(
          FEATURES[ii],
          enabled[ii],
          FEATURES_DEPENDS[ii],
          FEATURES_EXCLUSIVE[ii]);

      String status = info.getStatus(FEATURES[ii]);
      if (status != null){
        feature.setAvailable(false);
        feature.setEnabled(false);
        feature.setInfo(
            Installer.getString(
              "feature.status." + status,
              Installer.getString("eclipse.version")));
      }
View Full Code Here

Examples of org.gdal.ogr.Feature

        }.start();

        // Add features
        for (i = 0; i < 5000000; i++)
        {
            new Feature(featureDefn);

            if ((i % 100000) == 0)
            {
                /* Due to the fact that the Feature class has a finalize() method */
                /* the garbage collector will differ finalization. So we have to do */
 
View Full Code Here

Examples of org.geojson.Feature

  /**Load shape from the given file.
   * Contents of the file are assumed to be GeoJSON.**/
  public static Shape loadShapeJSON(File source) {
    try (FileInputStream fs = new FileInputStream(source)){
      FeatureCollection fc = new ObjectMapper().readValue(fs, FeatureCollection.class);
      Feature feature = fc.getFeatures().get(0);
      @SuppressWarnings("rawtypes")

      Geometry geometry = (Geometry) feature.getGeometry();
      if (geometry instanceof MultiPolygon) {
        return toArea((MultiPolygon) geometry);
      } else {
        return toArea((Polygon) geometry);
      }
View Full Code Here

Examples of org.geomajas.gwt.client.map.feature.Feature

        GwtCommandDispatcher.getInstance().execute(searchCommand,
            new AbstractCommandCallback<SearchFeatureResponse>() {

              public void execute(SearchFeatureResponse response) {
                for (org.geomajas.layer.feature.Feature feature : response.getFeatures()) {
                  Feature f = new Feature(feature, layer);
                  grid.addFeature(f);
                  layer.getFeatureStore().addFeature(f);
                }
              }
            });
View Full Code Here

Examples of org.geomajas.gwt.client.map.feature.Feature

   * @param context
   *            A MapContext object, responsible for actual drawing.
   */
  public void paint(Paintable paintable, Object group, MapContext context) {
    if (paintable != null) {
      Feature feature = (Feature) paintable;
      WorldViewTransformer worldViewTransformer = feature.getLayer().getMapModel().getMapView()
          .getWorldViewTransformer();
      Geometry geometry = worldViewTransformer.worldToPan(feature.getGeometry());
      ShapeStyle style = createStyleForFeature(feature);
      PaintableGroup selectionGroup = feature.getLayer().getSelectionGroup();
      context.getVectorContext().drawGroup(selectionGroup, feature);
      String name = feature.getLayer().getId() + "-" + feature.getId();

      if (geometry instanceof LineString) {
        context.getVectorContext().drawLine(feature, name, (LineString) geometry, style);
      } else if (geometry instanceof MultiLineString) {
        MultiLineString m = (MultiLineString) geometry;
        for (int i = 0; i < m.getNumGeometries(); i++) {
          context.getVectorContext().drawLine(feature, name + "." + i, (LineString) m.getGeometryN(i), style);
        }
      } else if (geometry instanceof Polygon) {
        context.getVectorContext().drawPolygon(feature, name, (Polygon) geometry, style);
      } else if (geometry instanceof MultiPolygon) {
        MultiPolygon m = (MultiPolygon) geometry;
        for (int i = 0; i < m.getNumGeometries(); i++) {
          context.getVectorContext().drawPolygon(feature, name + "." + i, (Polygon) m.getGeometryN(i), style);
        }
      } else if (geometry instanceof Point) {
        if (hasImageSymbol(feature)) {
          context.getVectorContext().drawSymbol(feature, name, geometry.getCoordinate(), null,
              feature.getStyleId() + "-selection");
        } else {
          context.getVectorContext().drawSymbol(feature, name, geometry.getCoordinate(), style,
              feature.getStyleId());
        }
      } else if (geometry instanceof MultiPoint) {
        Coordinate[] coordinates = geometry.getCoordinates();
        if (hasImageSymbol(feature)) {
          for (int i = 0; i < coordinates.length; i++) {
            context.getVectorContext().drawSymbol(feature, name + "." + i, coordinates[i], null,
                feature.getStyleId() + "-selection");
          }
        } else {
          for (int i = 0; i < coordinates.length; i++) {
            context.getVectorContext().drawSymbol(feature, name + "." + i, coordinates[i], style,
                feature.getStyleId());
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.geomajas.gwt.client.map.feature.Feature

  public void onMouseMove(MouseMoveEvent event) {
    FeatureTransaction featureTransaction = getFeatureTransaction();
    if (featureTransaction != null && parent.getEditMode() == EditMode.DRAG_MODE && dragTargetId != null) {
      TransactionGeomIndex index = TransactionGeomIndexUtil.getIndex(dragTargetId);

      Feature feature = dragTransaction.getNewFeatures()[index.getFeatureIndex()];
      FeatureOperation op = new SetCoordinateOp(index, getWorldPosition(event));
      op.execute(feature);

      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
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.