Class GrassColorTable


  • public class GrassColorTable
    extends ColorTable

    Representation of a GRASS colortable for raster maps

    Since:
    1.1.0
    Author:
    Andrea Antonello - www.hydrologis.com
    • Method Detail

      • createDefaultColorTable

        public void createDefaultColorTable​(double[] dataRange)
        create the default color table for a given dataRange for the case in which no hardcoded color table is found
        Overrides:
        createDefaultColorTable in class ColorTable
        Parameters:
        dataRange - the datarange for which the colortable is created
      • setColorTableFromRules

        public static String setColorTableFromRules​(File colrFile,
                                                    double[] dataRange,
                                                    int[][] colorRules)
                                             throws IOException
        Throws:
        IOException
      • createDefaultColorRulesString

        public String createDefaultColorRulesString​(double[] dataRange,
                                                    boolean writeToDisk)
                                             throws Exception
        Create a default colorrules of the string format of the colorfile of the map.
        Parameters:
        dataRange - can be null
        Returns:
        the string format of the colorfile of the map
        Throws:
        Exception
      • getColrFile

        public File getColrFile()