Class 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 a GeorGrayscaleEntry object.
      GeorGrayscaleEntry​(double cellValue, int gray)
      Constructs a GeorGrayscaleEntry 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeorGrayscaleEntry

        public GeorGrayscaleEntry()
        Constructs a GeorGrayscaleEntry object.
      • GeorGrayscaleEntry

        public GeorGrayscaleEntry​(double cellValue,
                                  int gray)
        Constructs a GeorGrayscaleEntry object with the given cell value and gray value.

        Parameters:
        cellValue - cell value
        gray - gray value
    • Method Detail

      • getCellValue

        public double getCellValue()
        Returns the cell value.
        Specified by:
        getCellValue in interface CellValueInterface
        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