Interface ColorTableIO
public interface ColorTableIO
Class to read
ColorTable from files and write ColorTable to
files.- Author:
- fdiaz
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Reads file to createColorTablefrom it.voidread(ColorTable colorTable, File file) Reads file to set information toColorTablereceived as parameter.voidwrite(ColorTable colorTable, File file) WritesColorTableto file.
-
Method Details
-
getName
String getName()- Returns:
- the name of
ColorTableIO
-
getDescription
String getDescription()- Returns:
- the description of
ColorTableIO
-
read
Reads file to createColorTablefrom it.- Parameters:
file-ColorTablefile.- Returns:
- ColorTable
ColorTablecreated from file. - Throws:
ColorTableIOException
-
read
Reads file to set information toColorTablereceived as parameter.- Parameters:
colorTable-ColorTableto be filled.file- File of newColorTable.- Throws:
ColorTableIOException
-
write
WritesColorTableto file.- Parameters:
colorTable-ColorTableto be writtenfile- File ofColorTable- Throws:
ColorTableIOException
-