public class GeorColormapEntry
extends java.lang.Object
Two constructors are provided: one is default constructor without parameters, and the other constructor allows you to specify the cell value and four components: red, green, blue, and alpha.
Methods in this class are provided for retrieving and setting the cell value and each component of red, green, blue, and alpha.
Constructor and Description |
---|
GeorColormapEntry()
Constructs a
GeorColormapEntry object. |
GeorColormapEntry(double value, int red, int green, int blue, java.lang.Double alpha)
Constructs a
GeorColormapEntry object with the given cell value, red, green, blue, and alpha values. |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getAlpha()
Returns the alpha value component.
|
int |
getBlue()
Returns the blue color component.
|
double |
getCellValue()
Returns the cell value.
|
int |
getGreen()
Returns the green color component.
|
int |
getRed()
Returns the red color component.
|
void |
setAlpha(java.lang.Double alpha)
Sets the alpha value component.
|
void |
setBlue(int blue)
Sets the blue color component.
|
void |
setCellValue(double cellValue)
Sets the cell value.
|
void |
setGreen(int green)
Sets the green color component.
|
void |
setRed(int red)
Sets the red color component.
|
public GeorColormapEntry()
GeorColormapEntry
object.public GeorColormapEntry(double value, int red, int green, int blue, java.lang.Double alpha)
GeorColormapEntry
object with the given cell value, red, green, blue, and alpha values.
Alpha value can be null.
value
- cell valuered
- red color componentgreen
- green color componentblue
- blue color componentalpha
- alpha color componentpublic double getCellValue()
public void setCellValue(double cellValue)
cellValue
- cell valuepublic int getRed()
public void setRed(int red)
red
- red color componentpublic int getGreen()
public void setGreen(int green)
green
- green color componentpublic int getBlue()
public void setBlue(int blue)
blue
- blue color componentpublic java.lang.Double getAlpha()
public void setAlpha(java.lang.Double alpha)
alpha
- alpha value component