All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.taligent.widget.Separator

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----COM.taligent.widget.Separator

public class Separator
extends Canvas
implements Serializable
Simple graphic separator.

Version:
1.0
Author:
Andy Clark, Taligent Inc.

Variable Index

 o DEFAULT_INSETS
Default insets (1, 1, 1, 1).
 o DEFAULT_ORIENTATION
Default orientation (HORIZONTAL).
 o HORIZONTAL
Horizontal orientation.
 o VERTICAL
Vertical orientation.

Constructor Index

 o Separator()
Constructs a separator with the default orientation.
 o Separator(int)
Constructs a separator with the specified orientation.

Method Index

 o getInsets()
Returns the current insets.
 o getMinimumSize()
Returns the minimum size of this component.
 o getOrientation()
Returns the current orientation.
 o getPreferredSize()
Returns the preferred size of this component.
 o paint(Graphics)
Paints the separator.
 o setInsets(int, int, int, int)
Sets the insets of the separator.
 o setOrientation(int)
Sets the orientation of the separator.
 o toString()
Returns a string representation of this instance.

Variables

 o HORIZONTAL
 public static final int HORIZONTAL
Horizontal orientation.

 o VERTICAL
 public static final int VERTICAL
Vertical orientation.

 o DEFAULT_ORIENTATION
 public static final int DEFAULT_ORIENTATION
Default orientation (HORIZONTAL).

 o DEFAULT_INSETS
 public static final Insets DEFAULT_INSETS
Default insets (1, 1, 1, 1).

Constructors

 o Separator
 public Separator()
Constructs a separator with the default orientation.

See Also:
DEFAULT_ORIENTATION
 o Separator
 public Separator(int orientation)
Constructs a separator with the specified orientation.

Parameters:
orientation - The orientation.

Methods

 o setOrientation
 public void setOrientation(int orientation)
Sets the orientation of the separator.

Parameters:
orientation - The new orientation.
See Also:
getOrientation, DEFAULT_ORIENTATION
 o getOrientation
 public int getOrientation()
Returns the current orientation.

See Also:
setOrientation
 o setInsets
 public void setInsets(int top,
                       int left,
                       int bottom,
                       int right)
Sets the insets of the separator.

Parameters:
top - Space left at the top.
left - Space left on the left side.
bottom - Space left at the bottom.
right - Space left on the right side.
See Also:
getInsets, DEFAULT_INSETS
 o getInsets
 public Insets getInsets()
Returns the current insets.

See Also:
setInsets
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this component.

Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this component.

Overrides:
getMinimumSize in class Component
 o paint
 public void paint(Graphics g)
Paints the separator.

Overrides:
paint in class Canvas
 o toString
 public String toString()
Returns a string representation of this instance.

Overrides:
toString in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index