Package overit.geocall.ux.util.gif
Class WeightedPaletteColor
java.lang.Object
overit.geocall.ux.util.gif.WeightedPaletteColor
- All Implemented Interfaces:
Comparable
This class manages the creation a color quantization of a palette.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWeightedPaletteColor(int color) Creates a new instance of WeightedPaletteColor -
Method Summary
-
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
-
compareTo
- Specified by:
compareToin interfaceComparable
-
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
-