com.mizar.persistence.gdal
Class GdalColorTextFile

java.lang.Object
  extended by com.mizar.persistence.gdal.GdalColorTextFile

public class GdalColorTextFile
extends java.lang.Object

This class currently only supports color-text-files with three value RGB lines following a numeric value without commas or colons or other enhancements of the full range of color-text-files.


Nested Class Summary
protected  class GdalColorTextFile.ColorTextLine
           
 
Constructor Summary
GdalColorTextFile()
           
GdalColorTextFile(java.io.File file)
           
GdalColorTextFile(java.lang.String fileName)
           
 
Method Summary
 java.io.File getFile()
           
 java.util.List<GdalColorTextFile.ColorTextLine> getLines()
           
 java.util.List<GdalColorTextFile.ColorTextLine> gradeFill(java.lang.Long keyInterval)
           
 void gradeStep(int grades, int gap)
          add
static void main(java.lang.String[] args)
           
 java.util.List<GdalColorTextFile.ColorTextLine> readFile(java.io.File file)
           
 void setFile(java.io.File file)
           
 void setLines(java.util.List<GdalColorTextFile.ColorTextLine> lines)
           
 void write(java.lang.String absolutePath)
           
 void write(java.lang.String absolutePath, java.util.List<GdalColorTextFile.ColorTextLine> lines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GdalColorTextFile

public GdalColorTextFile()

GdalColorTextFile

public GdalColorTextFile(java.lang.String fileName)

GdalColorTextFile

public GdalColorTextFile(java.io.File file)
Method Detail

readFile

public java.util.List<GdalColorTextFile.ColorTextLine> readFile(java.io.File file)

gradeStep

public void gradeStep(int grades,
                      int gap)
add

Parameters:
grades - the number of grades to fill in

gradeFill

public java.util.List<GdalColorTextFile.ColorTextLine> gradeFill(java.lang.Long keyInterval)
Parameters:
keyInterval - the desired step between keys

write

public void write(java.lang.String absolutePath)

write

public void write(java.lang.String absolutePath,
                  java.util.List<GdalColorTextFile.ColorTextLine> lines)

setLines

public void setLines(java.util.List<GdalColorTextFile.ColorTextLine> lines)

getLines

public java.util.List<GdalColorTextFile.ColorTextLine> getLines()

setFile

public void setFile(java.io.File file)

getFile

public java.io.File getFile()

main

public static void main(java.lang.String[] args)