    All Packages    This Package    Previous    Next

# Class awt.TextWindow

    java.lang.Object
       |
       +----awt.Component
               |
               +----awt.Container
                       |
                       +----awt.Window
                               |
                               +----awt.DisplayItemWindow
                                       |
                                       +----awt.TextWindow

public class TextWindow
extends DisplayItemWindow

A class that displays formatted text in a window. Also has a SmoothScroller associated with it.

See Also:
  Formatter, Text, SmoothScroller
Version:
  1.25 23 Feb 1995
Author:
  Jonathan Payne

##

formatter

##

TextWindow(Window, String)
TextWindow(Frame, String)

##

clearItems()
  Clears the list of DisplayItems for this window.
dumpItemInfo()
keyPressed(Event)
  Override this method to take some action when a key is pressed in this window.
layoutDocument()
print(PSGraphics)
setFormatter(Formatter)
startNewLine(int)
startNewLine(int, int)
validate()
  Marks this window as valid (not in need of repainting)

##

formatter

      public Formatter formatter

##

TextWindow

      public TextWindow(Window parent,
                        String client)

TextWindow

      public TextWindow(Frame parent,
                        String client)

##

setFormatter

      public synchronized void setFormatter(Formatter f)

validate

      public void validate()

  Marks this window as valid (not in need of repainting)
  Overrides:
    validate in class DisplayItemWindow

clearItems

      public void clearItems()

  Clears the list of DisplayItems for this window.
  Overrides:
    clearItems in class DisplayItemWindow

layoutDocument

      protected void layoutDocument()

startNewLine

      public void startNewLine(int n)

startNewLine

      public void startNewLine(int n,
                               int y)

print

      public synchronized void print(PSGraphics pg)

dumpItemInfo

      public void dumpItemInfo()

keyPressed

      public void keyPressed(Event e)

  Override this method to take some action when a key is pressed in this window.
  Overrides:
    keyPressed in class DisplayItemWindow

    All Packages    This Package    Previous    Next