Class LegendPainter

    • Method Detail

      • setFont

        public LegendPainter setFont​(int size,
                                     boolean bold)
      • setFont

        public LegendPainter setFont​(int size,
                                     boolean bold,
                                     boolean antialias)
      • getFont

        public Font getFont()
      • setTextColor

        public LegendPainter setTextColor​(float[] rgba)
      • setTextColor

        public void setTextColor​(float r,
                                 float g,
                                 float b,
                                 float a)
      • addItem

        public void addItem​(String label,
                            float r,
                            float g,
                            float b,
                            float a)
      • addItem

        public void addItem​(String label,
                            float[] rgba)
      • removeItem

        public void removeItem​(String label)
      • clear

        public void clear()
      • setColor

        public void setColor​(String label,
                             float r,
                             float g,
                             float b,
                             float a)
      • setColor

        public void setColor​(String label,
                             float[] rgba)
      • setOffsetX

        public void setOffsetX​(int offset)
      • setOffsetY

        public void setOffsetY​(int offset)
      • setOffset

        public void setOffset​(int offsetX,
                              int offsetY)
      • setSpacing

        public void setSpacing​(int spacer)
        Sets the space between elements in the legend.
        Parameters:
        spacer -
      • setLegendItemWidth

        public void setLegendItemWidth​(int width)
        Sets the width of the item to the left of the label in the legend.
        Parameters:
        width -