/** * Set the featureId on VectoreFeauture. Remember the featureId must be * unique * * @param feaureID */ public void setFeatureId(String feaureID) { VectorFeatureImpl.setFeatureId(getJSObject(), feaureID); }
/** * Determine whether the feature is displayed or not * */ public boolean getVisibility() { return VectorFeatureImpl.getVisibility(getJSObject()); }
@Deprecated public void setSelectVectorFeature(VectorFeature feature) { getJSObject().setProperty("select", feature.getJSObject()); }
/** * Moves the feature and redraws it at its new location. * * @param lonLat the location to which to move the feature */ public void move(LonLat lonLat) { VectorFeatureImpl.move(getJSObject(), lonLat.getJSObject()); }
/** * * @return Attributes object */ public Attributes getAttributes(){ return Attributes.narrowToAttributes(getJSObject().getProperty("attributes")); }
/** * Select a feature for modification in standalone mode. In non-standalone * mode, this method is called when the select feature control selects a * feature. Register a listener to the beforefeaturemodified event and * return false to prevent feature modification. * * @param feature - {<OpenLayers.Feature.Vector>} the selected feature. */ public void selectFeature(VectorFeature feature) { ModifyFeatureImpl.selectFeature(getJSObject(), feature.getJSObject()); }
/** * * @return Attributes object */ public Attributes getAttributes() { return Attributes.narrowToAttributes(getJSObject().getProperty( "attributes")); }
/** * Set the attributes. This object (attributes) holds arbitrary properties * that describe the feature. <p> Note: the attributes are only applied for * styles defined inside a {@link StyleMap}. If just using a single style * for the {@link VectorOptions} the attributes will be ignored. * * @param attributes The attributes to set */ public void setAttributes(Attributes attributes) { getJSObject().setProperty("attributes", attributes.getJSObject()); }
/** * Create a clone of this vector feature. Does not set any non-standard * properties. */ public VectorFeature clone() { return narrowToVectorFeature(VectorFeatureImpl.clone(getJSObject())); }
/** * Add feature to the layer�s selectedFeature array, render the feature as * selected, and call the onSelect function. * * @param feature The feature to select */ public void select(VectorFeature feature) { SelectFeatureImpl.select(this.getJSObject(), feature.getJSObject()); }
/** * Remove feature from the layer’s selectedFeature array, render the feature * as normal, and call the onUnselect function. * * @param feature The feature to unselect */ public void unSelect(VectorFeature feature) { SelectFeatureImpl.unselect(this.getJSObject(), feature.getJSObject()); }
/** * Called when the select feature control unselects a feature. * * @param feature - {<OpenLayers.Feature.Vector>} The unselected feature. */ public void unselectFeature(VectorFeature feature) { ModifyFeatureImpl.unselectFeature(getJSObject(), feature.getJSObject()); }
/** * Sets the new state. * * @param state The new state */ public void toState(State state) { VectorFeatureImpl.toState(getJSObject(), state.toString()); }
/** * Gets the state of the feature. * * @return The state of the feature. */ public State getState() { return State.fromString(VectorFeatureImpl.getState(getJSObject())); } }
/** * Set the attributes. This object (attributes) holds arbitrary properties * that describe the feature. * <p> * Note: the attributes are only applied for styles defined inside a * {@link StyleMap}. If just using a single style for the * {@link VectorOptions} the attributes will be ignored. * * @param vectorFeatureAttributes * The attributes to set */ public void setAttributes(Attributes attributes) { getJSObject().setProperty("attributes", attributes.getJSObject()); }
public void setSelectVectorFeature(VectorFeature feature) { getJSObject().setProperty("select", feature.getJSObject()); }
public void addFeature(VectorFeature f) { VectorImpl.addFeature(getJSObject(), f.getJSObject()); }
public Style createSymbolizer(VectorFeature feature, String renderIntent) { return Style.narrowToOpenLayersStyle( StyleImpl.createSymbolizer( getJSObject(), feature.getJSObject(), renderIntent ) ); }
public void drawFeature(VectorFeature vector, Style style) { VectorImpl.drawFeature(this.getJSObject(), vector.getJSObject(), style.getJSObject()); }
public void removeFeatures(VectorFeature[] features) { JSObject[] o = new JSObject[features.length]; for (int i = 0; i < features.length; i++) { o[i] = features[i].getJSObject(); } VectorImpl.removeFeature(getJSObject(), new JObjectArray(o).getJSObject()); }