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 aGeorGrayscaleEntry
object.GeorGrayscaleEntry(double cellValue, int gray)
Constructs aGeorGrayscaleEntry
object with the given cell value and gray value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCellValue()
Returns the cell value.int
getGray()
Returns the gray value.void
setCellValue(double cellValue)
Sets the cell value.void
setGray(int gray)
Sets the gray value.
-
-
-
Constructor Detail
-
GeorGrayscaleEntry
public GeorGrayscaleEntry()
Constructs aGeorGrayscaleEntry
object.
-
GeorGrayscaleEntry
public GeorGrayscaleEntry(double cellValue, int gray)
Constructs aGeorGrayscaleEntry
object 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:
getCellValue
in 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
-
-