/** * * @return Previous Control */ public Control getPrevious() { return Control.narrowToControl(NavigationHistoryImpl.getPrevious(getJSObject())); }
/** * * Select and deselect a feature by clicking on it with the mouse. * * @param toggle * - true to enabling toggling feature selection */ public void setToggle(boolean toggle) { SelectFeatureImpl.setToggle(getJSObject(), toggle); }
/** * * Unselect a feature by clicking outside it. * * This is the default way of selecting/unselecting features. * * @param clickout * - true to enable unselect on click outside feature. */ public void setClickOut(boolean clickout) { SelectFeatureImpl.setClickOut(getJSObject(), clickout); }
/** * * Hold down shift or ctrl and click to select multiple features. * * @param multiple * - true to enable selecting multiple features */ public void setMultiple(boolean multiple) { SelectFeatureImpl.setMultiple(getJSObject(), multiple); }
/** * * @param options - * @since GWT-OL 0.4 */ public MousePosition(MousePositionOptions options) { this(MousePositionImpl.create(options.getJSObject())); }
public ScaleLine(ScaleLineOptions options) { this(ScaleLineImpl.create(options.getJSObject())); } }
/** * * @return Next Control */ public Control getNext() { return Control.narrowToControl(NavigationHistoryImpl.getNext(getJSObject())); }
public Navigation(NavigationOptions options) { this(NavigationImpl.create(options.getJSObject())); } }
/** * Disable Control * */ public void disable() { ControlImpl.disable(getJSObject()); }
/** * Give the Control ID * * @return control id */ public String getControlId() { return ControlImpl.getControlId(getJSObject()); }
/** * Activates the immediate measurement so that the "measurepartial" event is also fired once the measurement sketch * is modified. Default is false. * @return true on success, else false */ public boolean getImmediate() { return MeasureImpl.getImmediate(getJSObject()); }
/** * Switch map view to a previous step in browser's history. * */ public void previous() { NavigationHistoryImpl.previous(this.getJSObject()); }
/** * Optional limit on the number of history items to retain. * If null, there is no limit. Default is 50. * * @param limit - number of items * @return void */ public void limit(int limit) { NavigationHistoryImpl.limit(this.getJSObject(), limit); }
/** * Set dragFeature.handlers['drag'].stopUp to a value * @param stopUp */ public void setDragStopUp(boolean stopUp) { DragFeatureImpl.setDragStopUp(getJSObject(), stopUp); }
/** * Reinsert the most recently removed point resulting from an undo call. The * undo stack is deleted whenever a point is added by other means. * * @return true if an edit was redone. */ public boolean redo() { return DrawFeatureImpl.redo(getJSObject()); }
/** * Finishes the sketch without including the currently drawn point. This * method can be called to terminate drawing programmatically instead of * waiting for the user to end the sketch. */ public void finishSketch() { DrawFeatureImpl.finishSketch(getJSObject()); }
public void maximizeControl() { LayerSwitcherImpl.maximizeControl(getJSObject()); } }
/** * Remove the most recently added point in the current sketch geometry. * * @return true if an edit was undone. */ public boolean undo() { return DrawFeatureImpl.undo(getJSObject()); }
public Control getSource() { JSObject object = getSourceJSObject(); return (object != null) ? TransformFeature.narrowToControl(object) : null; }
public Graticule(GraticuleOptions options) { this(GraticuleImpl.create(options.getJSObject())); } }