mootcan.UserOutputArea.html

mootcan-0.1.17/docs/mootcan.UserOutputArea.html · 8.2 KB

From the archive mootcan-0.1.17.tar.gz

Download the archive   « Back to the archive contents

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Thu Dec 02 07:37:32 GMT+03:30 1999 -->
<title>
  Class mootcan.UserOutputArea
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-mootcan.html">This Package</a>  <a href="Package-mootcan.html">Previous</a>  <a href="Package-mootcan.html">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class mootcan.UserOutputArea
</h1>
<pre>
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----mootcan.UserOutputArea
</pre>
<hr>
<dl>
  <dt> public class <b>UserOutputArea</b>
  <dt> extends Panel
  <dt> implements Runnable
</dl>
gives the user a textual representation of a stream.
 the TextArea scrolls pretty slow on the implementations of jvm that I've
 seen. the problem is solved by not updating the TextArea until we've read
 all lines currently pending in the stream.
 it may seem like overkill to add a new panel just for the TextArea here. the
 reason I did this was to make it possible to try to add a java-1.1 TextArea
 which is superior to the java-1.0 one. (we are allowed to construct it
 without scrollbars). if the java-1.1 TextArea is not found, we fall back to
 the java-1.0 one.
<p>
<dl>
  <dt> <b>Author:</b>
  <dd> Sindre Sørensen
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ancientAWT"><b>ancientAWT</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#buffer"><b>buffer</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#buffIn"><b>buffIn</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#history"><b>history</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#in"><b>in</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#inputArea"><b>inputArea</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#inputStream"><b>inputStream</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#maxHistoryLength"><b>maxHistoryLength</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#maxMaxHistoryLength"><b>maxMaxHistoryLength</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#numberOfRows"><b>numberOfRows</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#outputArea"><b>outputArea</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#outputStream"><b>outputStream</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#userOutputThread"><b>userOutputThread</b></a>
  <dd> 
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#UserOutputArea(java.awt.Font, mootcan.CommandTextField)"><b>UserOutputArea</b></a>(Font, CommandTextField)
  <dd>  
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getOutputStream()"><b>getOutputStream</b></a>()
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#refreshScreen()"><b>refreshScreen</b></a>()
  <dd> put the tail of the history onto the screen
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#run()"><b>run</b></a>()
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#scrollToBottom()"><b>scrollToBottom</b></a>()
  <dd> 
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="outputArea"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>outputArea</b>
<pre>
 private TextArea outputArea
</pre>
<a name="outputStream"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>outputStream</b>
<pre>
 private PipedOutputStream outputStream
</pre>
<a name="inputStream"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>inputStream</b>
<pre>
 private PipedInputStream inputStream
</pre>
<a name="in"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>in</b>
<pre>
 private DataInputStream in
</pre>
<a name="buffIn"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>buffIn</b>
<pre>
 private BufferedInputStream buffIn
</pre>
<a name="userOutputThread"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>userOutputThread</b>
<pre>
 private Thread userOutputThread
</pre>
<a name="inputArea"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>inputArea</b>
<pre>
 private <a href="mootcan.CommandTextField.html#_top_">CommandTextField</a> inputArea
</pre>
<a name="maxHistoryLength"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>maxHistoryLength</b>
<pre>
 int maxHistoryLength
</pre>
<a name="maxMaxHistoryLength"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>maxMaxHistoryLength</b>
<pre>
 int maxMaxHistoryLength
</pre>
<a name="numberOfRows"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>numberOfRows</b>
<pre>
 private int numberOfRows
</pre>
<a name="history"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>history</b>
<pre>
 String history
</pre>
<a name="buffer"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>buffer</b>
<pre>
 String buffer
</pre>
<a name="ancientAWT"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>ancientAWT</b>
<pre>
 private boolean ancientAWT
</pre>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="UserOutputArea"></a>
<a name="UserOutputArea(java.awt.Font, mootcan.CommandTextField)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>UserOutputArea</b>
<pre>
 UserOutputArea(Font font,
                <a href="mootcan.CommandTextField.html#_top_">CommandTextField</a> inputArea)
</pre>
<dl>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> font - the font of the scrolling text
 the next parameter is necessary because we use select() to scroll down,
 and that also makes us catch the keyboard focus of the applet
    <dd> inputArea - what should be given the focus after we've written
 something to the outputArea
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getOutputStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getOutputStream"><b>getOutputStream</b></a>
<pre>
 public OutputStream getOutputStream()
</pre>
<a name="scrollToBottom()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="scrollToBottom"><b>scrollToBottom</b></a>
<pre>
 private void scrollToBottom()
</pre>
<a name="refreshScreen()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="refreshScreen"><b>refreshScreen</b></a>
<pre>
 private synchronized void refreshScreen()
</pre>
<dl>
  <dd> put the tail of the history onto the screen
<p>
</dl>
<a name="run()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="run"><b>run</b></a>
<pre>
 public void run()
</pre>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-mootcan.html">This Package</a>  <a href="Package-mootcan.html">Previous</a>  <a href="Package-mootcan.html">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>

Site Stats

Snippets: 1791
Codebases: 571