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.
-
MultiLineLabel(String)
-
-
addNotify()
- Creates the peer of the canvas.
-
measure()
-
-
minimumSize()
-
-
paint(Graphics)
- Paints the canvas in the default background color.
-
preferredSize()
-
-
setFont(Font)
-
Sets the font of the component.
MultiLineLabel
public MultiLineLabel(String label)
measure
protected void measure()
setFont
public void setFont(Font f)
- Sets the font of the component.
- Overrides:
- setFont in class Component
addNotify
public void addNotify()
- Creates the peer of the canvas.
- Overrides:
- addNotify in class Canvas
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Component
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