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.


Variable Index

 o length
 o orientation

Constructor Index

 o Separator()
Construct a new Separator widget.
 o Separator(int)
Construct a new Separator widget.

Method Index

 o getMinimumSize()
 o getPreferredSize()
 o paint(Graphics)
Draws a vertical or horizontal relief box.
 o setLength(int)

Variables

 o orientation
 protected int orientation
 o length
 protected int length

Constructors

 o Separator
 public Separator(int o)
Construct a new Separator widget.

Parameters:
o - separator's orientation: VERTICAL or HORIZONTAL
 o Separator
 public Separator()
Construct a new Separator widget. orientation is set to HORIZONTAL.

Methods

 o setLength
 public void setLength(int size)
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component
 o 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