|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Light
Light superclass Each type of light must extend and implement this class.
Field Summary | |
Colour |
Intensity
Holds the colour of this light |
Constructor Summary | |
Light()
|
Method Summary | |
abstract void |
print(SceneWriter os)
Print a human readable version of the light definition to the given destination |
abstract void |
read(SceneReader is)
Read the light from the given source |
abstract void |
write(SceneWriter os)
Write the light to the given destination |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Colour Intensity
Constructor Detail |
public Light()
Method Detail |
public abstract void read(SceneReader is) throws java.io.IOException, java.lang.NumberFormatException
is
- the source to read from
java.io.IOException
- if the light can not be read
java.io.NumberFormatException
- if there a number format error is encountered
java.lang.NumberFormatException
public abstract void write(SceneWriter os) throws java.io.IOException
os
- the destination to write to
java.io.IOException
- if the write fails.public abstract void print(SceneWriter os) throws java.io.IOException
os
- the destination to write to
java.io.IOException
- if the write fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |