All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ij.gui.MultiLineLabel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ij.gui.MultiLineLabel

public class MultiLineLabel
extends Canvas
Custom component for displaying multiple lines. Based on MultiLineLabel class from "Java in a Nutshell" by David Flanagan.


Constructor Index

 o MultiLineLabel(String)

Method Index

 o addNotify()
Creates the peer of the canvas.
 o measure()
 o minimumSize()
 o paint(Graphics)
Paints the canvas in the default background color.
 o preferredSize()
 o setFont(Font)
Sets the font of the component.

Constructors

 o MultiLineLabel
 public MultiLineLabel(String label)

Methods

 o measure
 protected void measure()
 o setFont
 public void setFont(Font f)
Sets the font of the component.

Overrides:
setFont in class Component
 o addNotify
 public void addNotify()
Creates the peer of the canvas.

Overrides:
addNotify in class Canvas
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Component
 o paint
 public void paint(Graphics g)
Paints the canvas in the default background color.

Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index