Class Output
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----Output
- public class Output
- extends Canvas
-
Output(int, int, Applet)
- Output(int, int, Applet) is a constructor
-
drawString(String)
- drawString(String) draws a string in the component
-
minimumSize()
- miminumSize() defines the components minimum size
-
paint(Graphics)
- paint(Graphics) is invoked when the component is repainted
-
preferredSize()
- preferredSize() defines the components preferred size
-
update(Graphics)
- update(Graphics) is invoked when the component is repainted
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
preferredSize
public Dimension preferredSize()
- preferredSize() defines the components preferred size
- Returns:
- dimension
- Overrides:
- preferredSize in class Component
minimumSize
public Dimension minimumSize()
- miminumSize() defines the components minimum size
- Returns:
- dimension
- Overrides:
- minimumSize in class Component
drawString
public void drawString(String str)
- drawString(String) draws a string in the component
- Parameters:
- string - is the string that will be written
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
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