Package oracle.spatial.georaster
Class GeorColormapEntry
- java.lang.Object
-
- oracle.spatial.georaster.GeorColormapEntry
-
- All Implemented Interfaces:
CellValueInterface
public class GeorColormapEntry extends java.lang.Object implements CellValueInterface
A GeoRaster colormap entry, which contains five components: cellValue, red, green, blue, and alpha (alpha is optional). It is combined with class GeorColormap to represent a GeoRaster colormap.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 Summary
Constructors Constructor Description GeorColormapEntry()Constructs aGeorColormapEntryobject.GeorColormapEntry(double value, int red, int green, int blue, java.lang.Double alpha)Constructs aGeorColormapEntryobject with the given cell value, red, green, blue, and alpha values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoublegetAlpha()Returns the alpha value component.intgetBlue()Returns the blue color component.doublegetCellValue()Returns the cell value.intgetGreen()Returns the green color component.intgetRed()Returns the red color component.voidsetAlpha(java.lang.Double alpha)Sets the alpha value component.voidsetBlue(int blue)Sets the blue color component.voidsetCellValue(double cellValue)Sets the cell value.voidsetGreen(int green)Sets the green color component.voidsetRed(int red)Sets the red color component.
-
-
-
Constructor Detail
-
GeorColormapEntry
public GeorColormapEntry()
Constructs aGeorColormapEntryobject.
-
GeorColormapEntry
public GeorColormapEntry(double value, int red, int green, int blue, java.lang.Double alpha)Constructs aGeorColormapEntryobject with the given cell value, red, green, blue, and alpha values.Alpha value can be null.
- Parameters:
value- cell valuered- red color componentgreen- green color componentblue- blue color componentalpha- alpha color component
-
-
Method Detail
-
getCellValue
public double getCellValue()
Returns the cell value.- Specified by:
getCellValuein interfaceCellValueInterface- Returns:
- cell value
-
setCellValue
public void setCellValue(double cellValue)
Sets the cell value.- Parameters:
cellValue- cell value
-
getRed
public int getRed()
Returns the red color component.- Returns:
- red color component
-
setRed
public void setRed(int red)
Sets the red color component.- Parameters:
red- red color component
-
getGreen
public int getGreen()
Returns the green color component.- Returns:
- green color component
-
setGreen
public void setGreen(int green)
Sets the green color component.- Parameters:
green- green color component
-
getBlue
public int getBlue()
Returns the blue color component.- Returns:
- blue color component
-
setBlue
public void setBlue(int blue)
Sets the blue color component.- Parameters:
blue- blue color component
-
getAlpha
public java.lang.Double getAlpha()
Returns the alpha value component.- Returns:
- alpha value component
-
setAlpha
public void setAlpha(java.lang.Double alpha)
Sets the alpha value component.- Parameters:
alpha- alpha value component
-
-