Class WeightedPaletteColor

java.lang.Object
overit.geocall.ux.util.gif.WeightedPaletteColor
All Implemented Interfaces:
Comparable

public class WeightedPaletteColor extends Object implements Comparable
This class manages the creation a color quantization of a palette.
  • Field Details

    • _color

      protected int _color
    • _number

      protected int _number
  • Constructor Details

    • WeightedPaletteColor

      public WeightedPaletteColor(int color)
      Creates a new instance of WeightedPaletteColor
      Parameters:
      color - A color in int
  • Method Details

    • increase

      public void increase()
      Increase the number
    • getColor

      public int getColor()
      Returns the color
      Returns:
      The color
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
    • getRed

      public int getRed()
      Returns the red part of the color
      Returns:
      The red part of the color
    • getGreen

      public int getGreen()
      Returns the green part of the color
      Returns:
      The green part of the color
    • getBlue

      public int getBlue()
      Returns the blue part of the color
      Returns:
      The blue part of the color