Class Output

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----Output

public class Output
extends Canvas

Constructor Index

 o Output(int, int, Applet)
Output(int, int, Applet) is a constructor

Method Index

 o drawString(String)
drawString(String) draws a string in the component
 o minimumSize()
miminumSize() defines the components minimum size
 o paint(Graphics)
paint(Graphics) is invoked when the component is repainted
 o preferredSize()
preferredSize() defines the components preferred size
 o update(Graphics)
update(Graphics) is invoked when the component is repainted

Constructors

 o Output
  public Output(int width,
                int height,
                Applet applet)
Output(int, int, Applet) is a constructor

Parameters:
width - os the preferred width of the component
height - is the preferred height of the component
applet - is the referring applet

Methods

 o preferredSize
  public Dimension preferredSize()
preferredSize() defines the components preferred size

Returns:
dimension
Overrides:
preferredSize in class Component
 o minimumSize
  public Dimension minimumSize()
miminumSize() defines the components minimum size

Returns:
dimension
Overrides:
minimumSize in class Component
 o drawString
  public void drawString(String str)
drawString(String) draws a string in the component

Parameters:
string - is the string that will be written
 o paint
  public void paint(Graphics g)
paint(Graphics) is invoked when the component is repainted

Parameters:
g - is the graphics context
Overrides:
paint in class Canvas
 o update
  public void update(Graphics g)
update(Graphics) is invoked when the component is repainted

Parameters:
g - is the graphics context
Overrides:
update in class Component