|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdatabionics.io.BaseFile
databionics.io.ListFile
databionics.io.ColorTable
public class ColorTable
File that stores a color table from *.rgb files. Should really be RGBFile, but color table is more intuitive.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
Log4j logging. |
| Fields inherited from class databionics.io.ListFile |
|---|
data |
| Fields inherited from class databionics.io.BaseFile |
|---|
allowEmptyLines, comment, commentPrefix, delimiter, delimiters, file, header, headerPrefix, loc, nf |
| Constructor Summary | |
|---|---|
ColorTable()
Standard constructor |
|
ColorTable(java.lang.String filename)
Constructor with a filename |
|
| Method Summary | |
|---|---|
protected java.lang.String |
buildLine(int row)
Get line for file. |
java.awt.Color |
getColor(int i)
|
static FileType |
getFileType()
Get the type of file. |
protected void |
parseLine(int row,
java.lang.String line)
Parse a line. |
void |
setFilename(java.lang.String filename)
Change the name of the file. |
| Methods inherited from class databionics.io.ListFile |
|---|
getData, getSize, setData |
| Methods inherited from class databionics.io.BaseFile |
|---|
buildHeader, checkHeader, checkHeaderAgainstSize, getComment, getFile, getFilename, getHeader, getLocale, getNumberFormat, init, isHeader, isNaN, isNumber, load, load, parseError, parseHeader, save, save, setComment, setLocale, writeStringList, writeStringList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
| Constructor Detail |
|---|
public ColorTable()
public ColorTable(java.lang.String filename)
filename - Name of the file| Method Detail |
|---|
public void setFilename(java.lang.String filename)
setFilename in class BaseFile
protected void parseLine(int row,
java.lang.String line)
parseLine in class BaseFilerow - Number of current line.line - Current line.protected java.lang.String buildLine(int row)
buildLine in class ListFilerow - Number of current line.
public static FileType getFileType()
public java.awt.Color getColor(int i)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||