All Packages Class Hierarchy This Package Previous Next Index
Class fr.l2f.gui.Separator
java.lang.Object
|
+----java.awt.Component
|
+----fr.l2f.gui.Separator
- public class Separator
- extends Component
A Separator is a widget that draws a line. It may be HORIZONTAL
or VERTICAL.
-
length
-
-
orientation
-
-
Separator()
- Construct a new Separator widget.
-
Separator(int)
- Construct a new Separator widget.
-
getMinimumSize()
-
-
getPreferredSize()
-
-
paint(Graphics)
- Draws a vertical or horizontal relief box.
-
setLength(int)
-
orientation
protected int orientation
length
protected int length
Separator
public Separator(int o)
- Construct a new Separator widget.
- Parameters:
- o - separator's orientation: VERTICAL or HORIZONTAL
Separator
public Separator()
- Construct a new Separator widget.
orientation is set to HORIZONTAL.
setLength
public void setLength(int size)
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
paint
public void paint(Graphics g)
- Draws a vertical or horizontal relief box. If orientation is HORIZONTAL,
the line is vertically centered. If orientation is VERTICAL, it is
horizontally centered.
- Overrides:
- paint in class Component
All Packages Class Hierarchy This Package Previous Next Index