Class RulerDrawer


  • public class RulerDrawer
    extends java.lang.Object
    Author:
    Pierre Lando
    • Constructor Detail

      • RulerDrawer

        public RulerDrawer​(TextureManager textureManager)
        Ruler drawer constructor.
        Parameters:
        textureManager - the TextureManager of the canvas where the ruler will be drawn.
    • Method Detail

      • draw

        public void draw​(DrawingTools drawingTools)
        Draw the ruler
        Parameters:
        drawingTools - the DrawingTools of the canvas where the ruler will be drawn.
      • getModel

        public RulerModel getModel()
        Get the model
        Returns:
        the ruler model.
      • getSubTicksValue

        public java.util.List<java.lang.Double> getSubTicksValue()
        Get the subticks values
        Returns:
        the values.
      • getTicksValue

        public java.util.List<java.lang.Double> getTicksValue()
        Get the ticks values
        Returns:
        the values.
      • disposeResources

        public void disposeResources()
        Dispose all used resources.