/** * Draw the ruler * * @param drawingTools the {@link DrawingTools} of the canvas where the ruler will be drawn. */ public void draw(DrawingTools drawingTools) { oneShotRulerDrawer.draw(drawingTools); }
/** Dispose all used resources. */ public void disposeResources() { textureManager.dispose(spriteMap.values()); spriteMap.clear(); oneShotRulerDrawer.dispose(); }
/** * Ruler drawing method. * * @param drawingTools the {@link DrawingTools} of the canvas where the ruler will be drawn. * @param model the {@link RulerModel} of the drawn ruler. * @return the {@link RulerDrawingResult} give information about how the ruler have been drawn. */ public RulerDrawingResult draw(DrawingTools drawingTools, RulerModel model) { return oneShotRulerDrawer.drawWithResults(drawingTools, model); }
/** * Compute different parameters on a ruler * * @param drawingTools the {@link DrawingTools} of the canvas where the ruler will be drawn. * @param rulerModel the {@link RulerModel} of the drawn ruler. * @param canvasProjection the canvas projection. */ public RulerDrawingResult computeRuler( DrawingTools drawingTools, RulerModel model, Transformation canvasProjection) { return oneShotRulerDrawer.computeRuler(drawingTools, model, canvasProjection); }