|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object backend.SettingsFileReader
public class SettingsFileReader
SettingsFileReader is meant to read in data files containing information about the program
Method Summary | |
---|---|
javax.vecmath.Color3f |
getColor3fFromTuple(java.lang.String name)
getColor3fFromTuple returns a color3f made from the Tuple3d matching the key provided |
double |
getDouble(java.lang.String name)
getDouble returns a double from the file reader given a key |
javax.vecmath.Point3d |
getPoint3dFromTuple(java.lang.String name)
This function turns a Tuple3d in the data file to a Point3d |
java.lang.String |
getString(java.lang.String name)
getString returns a string from the file reader given a key |
java.awt.Color |
getSwingColorFromTuple(java.lang.String name)
getSwingColorFromTuple returns a swing Color object using a tuple |
static SettingsFileReader |
instance()
instance returns the instance of this SettingsFileReader |
void |
readInNewFile(java.lang.String filename)
readInNewFile reads a new file into the SettingsFileReader |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public double getDouble(java.lang.String name)
name
- the key to search for
public java.lang.String getString(java.lang.String name)
name
- the key to search for
public static SettingsFileReader instance()
public void readInNewFile(java.lang.String filename)
filename
- the name of the file to readpublic javax.vecmath.Color3f getColor3fFromTuple(java.lang.String name)
name
- the string key for the color3f
public javax.vecmath.Point3d getPoint3dFromTuple(java.lang.String name)
name
- the key to grab from the data file
public java.awt.Color getSwingColorFromTuple(java.lang.String name)
name
- the name of the string to get the color from
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |