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.
-
DEFAULT_INSETS
- Default insets (1, 1, 1, 1).
-
DEFAULT_ORIENTATION
- Default orientation (HORIZONTAL).
-
HORIZONTAL
- Horizontal orientation.
-
VERTICAL
- Vertical orientation.
-
Separator()
- Constructs a separator with the default orientation.
-
Separator(int)
- Constructs a separator with the specified orientation.
-
getInsets()
- Returns the current insets.
-
getMinimumSize()
- Returns the minimum size of this component.
-
getOrientation()
- Returns the current orientation.
-
getPreferredSize()
- Returns the preferred size of this component.
-
paint(Graphics)
- Paints the separator.
-
setInsets(int, int, int, int)
- Sets the insets of the separator.
-
setOrientation(int)
- Sets the orientation of the separator.
-
toString()
- Returns a string representation of this instance.
HORIZONTAL
public static final int HORIZONTAL
- Horizontal orientation.
VERTICAL
public static final int VERTICAL
- Vertical orientation.
DEFAULT_ORIENTATION
public static final int DEFAULT_ORIENTATION
- Default orientation (HORIZONTAL).
DEFAULT_INSETS
public static final Insets DEFAULT_INSETS
- Default insets (1, 1, 1, 1).
Separator
public Separator()
- Constructs a separator with the default orientation.
- See Also:
- DEFAULT_ORIENTATION
Separator
public Separator(int orientation)
- Constructs a separator with the specified orientation.
- Parameters:
- orientation - The orientation.
setOrientation
public void setOrientation(int orientation)
- Sets the orientation of the separator.
- Parameters:
- orientation - The new orientation.
- See Also:
- getOrientation, DEFAULT_ORIENTATION
getOrientation
public int getOrientation()
- Returns the current orientation.
- See Also:
- setOrientation
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
getInsets
public Insets getInsets()
- Returns the current insets.
- See Also:
- setInsets
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size of this component.
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
paint
public void paint(Graphics g)
- Paints the separator.
- Overrides:
- paint in class Canvas
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