|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.io.OutputWindow
An RGB frame-buffer accessible window = < title, width, height, byte-buffer >. On construction, a window with the specified width, height, and title appears. This window can be drawn to via Raster or Graphics operations, or its contents can be accessed directly via an RGB byte-buffer. Since the window contents are effectively double-buffered, an explicit call to Refresh() is required to update the window.
Nested Class Summary | |
private class |
OutputWindow.OutputComponent
|
private class |
OutputWindow.OutputFrame
|
Field Summary | |
private OutputWindow.OutputFrame |
f
|
private OutputWindow.OutputComponent |
o
|
Constructor Summary | |
OutputWindow(java.lang.String Title,
int Width,
int Height)
Consturcts a new OutputWindow = < Title, Width, Height, zero-buffer >. |
Method Summary | |
void |
dispose()
|
java.awt.Graphics |
getBufferedGraphics()
Returns: a Graphics object that can be used to draw on the back-buffer |
byte[] |
getByteBuffer()
Returns: a byte array that contains the contents of the back-buffer. |
java.awt.image.WritableRaster |
getRaster()
Returns: a WritableRaster that cna be used to draw to the back-buffer |
void |
Refresh()
Draws the back-buffer contents to the screen |
void |
SetSize(int Width,
int Height)
Sets the size of the window to (Width, Height) |
void |
SetTitle(java.lang.String Title)
Changes the title of the window to 'Title' |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private OutputWindow.OutputFrame f
private OutputWindow.OutputComponent o
Constructor Detail |
public OutputWindow(java.lang.String Title, int Width, int Height)
Method Detail |
public void SetSize(int Width, int Height)
public void SetTitle(java.lang.String Title)
public void dispose()
public void Refresh()
public java.awt.Graphics getBufferedGraphics()
public java.awt.image.WritableRaster getRaster()
public byte[] getByteBuffer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |