public ModifyFeature(Vector vectorLayer) { this(ModifyFeatureImpl.create(vectorLayer.getJSObject())); }
/** * Property: modified {Boolean} The currently selected feature has been * modified. */ public boolean isSelectedFeatureModified() { return ModifyFeatureImpl.isSelectedFeatureModified(getJSObject()); }
public void onModificationEnd(OnModificationEndListener listener) { JSObject callback = ModifyFeatureImpl.createOnModificationEndCallback(listener); getJSObject().setProperty("onModificationEnd", callback); } }
public void onModificationStart(OnModificationStartListener listener) { JSObject callback = ModifyFeatureImpl.createOnModificationStartCallback(listener); getJSObject().setProperty("onModificationStart", callback); }
public void onModification(OnModificationListener listener) { JSObject callback = ModifyFeatureImpl.createOnModificationCallback(listener); getJSObject().setProperty("onModification", callback); }
/** * 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()); }
/** * 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()); }
public void onModificationEnd(OnModificationEndListener listener) { JSObject callback = ModifyFeatureImpl.createOnModificationEndCallback(listener); getJSObject().setProperty("onModificationEnd", callback); } }
public void onModificationStart(OnModificationStartListener listener) { JSObject callback = ModifyFeatureImpl.createOnModificationStartCallback(listener); getJSObject().setProperty("onModificationStart", callback); }
public void onModification(OnModificationListener listener) { JSObject callback = ModifyFeatureImpl.createOnModificationCallback(listener); getJSObject().setProperty("onModification", callback); }
public ModifyFeature(Vector vectorLayer) { this(ModifyFeatureImpl.create(vectorLayer.getJSObject())); }
public ModifyFeature(Vector vectorLayer, ModifyFeatureOptions modifyFeatureOptions) { this(ModifyFeatureImpl.create(vectorLayer.getJSObject(), modifyFeatureOptions.getJSObject())); }
public ModifyFeature(Vector vectorLayer, ModifyFeatureOptions modifyFeatureOptions) { this(ModifyFeatureImpl.create(vectorLayer.getJSObject(), modifyFeatureOptions.getJSObject())); }