Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
TextWindow Class Reference
Inheritance diagram for TextWindow:

Public Member Functions

 TextWindow (String title, String data, int width, int height)
 
 TextWindow (String title, String headings, String data, int width, int height)
 
 TextWindow (String path, int width, int height)
 
void append (String text)
 
void setFont (Font font)
 
TextPanel getTextPanel ()
 
void load (BufferedReader in) throws IOException
 
void actionPerformed (ActionEvent evt)
 
void processWindowEvent (WindowEvent e)
 
void close ()
 
void focusGained (FocusEvent e)
 
void focusLost (FocusEvent e)
 

Detailed Description

Uses a TextPanel to displays text in a window.

See Also
TextPanel

Definition at line 15 of file TextWindow.java.

Constructor & Destructor Documentation

TextWindow ( String  title,
String  data,
int  width,
int  height 
)
inline

Opens a new single-column text window.

Parameters
titlethe title of the window
strthe text initially displayed in the window
widththe width of the window in pixels
heightthe height of the window in pixels

Definition at line 26 of file TextWindow.java.

TextWindow ( String  title,
String  headings,
String  data,
int  width,
int  height 
)
inline

Opens a new multi-column text window.

Parameters
titlethe title of the window
headingsthe tab-delimited column headings
datathe text initially displayed in the window
widththe width of the window in pixels
heightthe height of the window in pixels

Definition at line 38 of file TextWindow.java.

TextWindow ( String  path,
int  width,
int  height 
)
inline

Opens a new text window containing the contents of a text file.

Parameters
paththe path to the text file
widththe width of the window in pixels
heightthe height of the window in pixels

Definition at line 66 of file TextWindow.java.

Member Function Documentation

void append ( String  text)
inline

Adds one or lines of text to the window.

Parameters
textThe text to be appended. Multiple lines should be separated by
.

Definition at line 106 of file TextWindow.java.

TextPanel getTextPanel ( )
inline

Returns a reference to this TextWindow's TextPanel.

Definition at line 140 of file TextWindow.java.

void load ( BufferedReader  in) throws IOException
inline

Appends the text in the specified file to the end of this TextWindow.

Definition at line 145 of file TextWindow.java.

void setFont ( Font  font)
inline

Set the font that will be used to display the text.

Definition at line 111 of file TextWindow.java.


The documentation for this class was generated from the following file: