Class DefaultRulerSpriteFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Texture create​(double value, java.text.DecimalFormat adaptedFormat, TextureManager textureManager)
      Return the texture for the given value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultRulerSpriteFactory

        public DefaultRulerSpriteFactory()
        Default constructor.
    • Method Detail

      • create

        public Texture create​(double value,
                              java.text.DecimalFormat adaptedFormat,
                              TextureManager textureManager)
        Description copied from interface: RulerSpriteFactory
        Return the texture for the given value.
        Specified by:
        create in interface RulerSpriteFactory
        Parameters:
        value - the value.
        adaptedFormat - an adapted number format for the given value.
        textureManager - TextureManager to use.
        Returns:
        a positioned text entity for the given value.