Class StyledMapRenderer.StyleRecord

    • Method Detail

      • floatToFixed

        protected static long floatToFixed​(float number,
                                           int totalBits)
        Converts a float to a fixed point decimal so that the order stays the same.
        Parameters:
        number - The float to convert
        totalBits - Total number of bits. 1 sign bit. There should be at least 15 bits.
        Returns:
        The float converted to an integer.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getStyle

        public StyleElement getStyle()
        Get the style for this style element.
        Returns:
        The style
      • paintPrimitive

        public void paintPrimitive​(MapPaintSettings paintSettings,
                                   StyledMapRenderer painter)
        Paints the primitive with the style.
        Parameters:
        paintSettings - The settings to use.
        painter - The painter to paint the style.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object