/** * 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()); }
/** * Cancel the current sketch. This removes the current sketch and keeps the * drawing control active. */ public void cancel() { DrawFeatureImpl.cancel(getJSObject()); }
/** * 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()); }
/** * This method returns the Handler associated to the control. The CLASS_NAME * of the handler depends on the kind of control. * * @return Handler */ public <H extends Handler> H getHandler() { return chainHandlerManager.buildHandler(DrawFeatureImpl.getHandler( getJSObject())); }