Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /** Dispose all used resources. */
 public void disposeResources() {
   textureManager.dispose(spriteMap.values());
   spriteMap.clear();
   oneShotRulerDrawer.dispose();
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 /**
  * 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);
 }