Package oracle.spatial.georaster
Class GeorGrayscaleEntry
- java.lang.Object
-
- oracle.spatial.georaster.GeorGrayscaleEntry
-
- All Implemented Interfaces:
CellValueInterface
public class GeorGrayscaleEntry extends java.lang.Object implements CellValueInterface
A GeoRaster grayscale entry, which contains two components: cellvalue and gray. It is combined with class GeorGrayscale to represent a GeoRaster grayscale.Two constructors are provided: one is the default constructor without parameters, and the other constructor allows you to specify a cell value and gray value.
Methods in this class are provided for retrieving and setting the cell value and gray value.
-
-
Constructor Summary
Constructors Constructor Description GeorGrayscaleEntry()Constructs aGeorGrayscaleEntryobject.GeorGrayscaleEntry(double cellValue, int gray)Constructs aGeorGrayscaleEntryobject with the given cell value and gray value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCellValue()Returns the cell value.intgetGray()Returns the gray value.voidsetCellValue(double cellValue)Sets the cell value.voidsetGray(int gray)Sets the gray value.
-
-
-
Constructor Detail
-
GeorGrayscaleEntry
public GeorGrayscaleEntry()
Constructs aGeorGrayscaleEntryobject.
-
GeorGrayscaleEntry
public GeorGrayscaleEntry(double cellValue, int gray)Constructs aGeorGrayscaleEntryobject with the given cell value and gray value.- Parameters:
cellValue- cell valuegray- gray value
-
-
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
-
getGray
public int getGray()
Returns the gray value.- Returns:
- gray value.
-
setGray
public void setGray(int gray)
Sets the gray value.- Parameters:
gray- gray value
-
-