|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoptics.Optics
optics.PrintMonitor
public class PrintMonitor
Simple RayMonitor implementtaion to print out Ray information to a PrintStream which may be connected to a file, or a TextPanel or Frame.
The default information written is controlled but the
toString()
method of the Rays.
Field Summary |
---|
Fields inherited from class optics.Optics |
---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS |
Constructor Summary | |
---|---|
PrintMonitor()
Default PrintMonitor to print to System.out . |
|
PrintMonitor(java.io.File file)
Form a PrintMonitor to output to a specified File. |
|
PrintMonitor(java.io.PrintStream out)
Form a PrintMonitor to output to s specified PrintStream . |
|
PrintMonitor(java.lang.String fileName)
Form a PrintMonitor to output to a file specified by name. |
|
PrintMonitor(TextFrame frame)
Form a PrintMonitor that prints to a TextFrame containing a TextPanel . |
|
PrintMonitor(TextPanel panel)
Form a PrintMonitor with output to a TextPanel |
Method Summary | |
---|---|
void |
update(Ray r)
Method specified in interface to update a Ray by printing the default toString() method to the specified output PrintStream . |
Methods inherited from class optics.Optics |
---|
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintMonitor()
System.out
.
public PrintMonitor(java.io.PrintStream out)
PrintStream
.
out
- the output PrintStreampublic PrintMonitor(java.io.File file)
System.out
file
- the output Filepublic PrintMonitor(java.lang.String fileName)
fileName
- the output file name.public PrintMonitor(TextPanel panel)
TextPanel
panel
- the TextPanelpublic PrintMonitor(TextFrame frame)
TextFrame
containing a TextPanel
.
frame
- the TextFrameMethod Detail |
---|
public void update(Ray r)
PrintStream
.
update
in interface RayMonitor
r
- the Ray
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |