Display
ptolemy.actor.lib.gui.Display

Display the values of the tokens arriving on the input channels in a text area on the screen. Each input token is written on a separate line. The input type can be of any type. If the input happens to be a StringToken, then the surrounding quotation marks are stripped before printing the value of the token. Thus, string-valued tokens can be used to generate arbitrary textual output, at one token per line. Tokens are read from the input only in the postfire() method, to allow them to settle in domains where they converge to a fixed point.

This actor has a suppressBlankLines parameter, whose default value is false. If this parameter is configured to be true, this actor does not put a blank line in the display.

Note that because of complexities in Swing, if you resize the display window, then, unlike the plotters, the new size will not be persistent. That is, if you save the model and then re-open it, the new size is forgotten. To control the size, you should set the rowsDisplayed and columnsDisplayed parameters.

Note that this actor internally uses JTextArea, a Java Swing object that is known to consume large amounts of memory. It is not advisable to use this actor to log large output streams.

Author(s): Yuhong Xiong, Edward A. Lee
Version:$Id: Display.java,v 1.69 2005/07/08 19:56:18 cxh Exp $
Pt.Proposed Rating:Yellow (yuhong)
Pt.Accepted Rating:Yellow (vogel)




columnsDisplayed
The horizontal size of the display, in columns. This contains an integer, and defaults to 40.

rowsDisplayed
The vertical size of the display, in rows. This contains an integer, and defaults to 10.

suppressBlankLines
The flag indicating whether this display actor suppress blank lines. The default value is false.