All Packages Class Hierarchy This Package Previous Next Index

Class org.jfouffa.components.Delimiter

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----org.jfouffa.components.Delimiter

public class Delimiter
extends Container
This class is a simple Container with a title and a border.


Variable index

 o CENTER
the center alignment for the text.
 o LEFT
the left alignment for the text.
 o RIGHT
the right alignment for the text.

Constructor index

 o Delimiter()
Constructs a new Delimiter.
 o Delimiter(String)
Constructs a new Delimiter with the specified title.
 o Delimiter(String, int)
Constructs a new Delimiter with the specified title and the specified alignment.

Method index

 o getAlignment()
Gets the title's alignment.
 o getInsets()
Gets the container's insets.
 o getTitle()
Gets the title of this container.
 o paint(Graphics)
 o setAlignment(int)
Sets the title's alignment of this container to the specified alignment.
 o setTitle(String)
Sets the title of the container to the specified title.

Variables

 o RIGHT
 public static final int RIGHT
the right alignment for the text.

 o CENTER
 public static final int CENTER
the center alignment for the text.

 o LEFT
 public static final int LEFT
the left alignment for the text.

Constructors

 o Delimiter
 public Delimiter()
Constructs a new Delimiter.

 o Delimiter
 public Delimiter(String title)
Constructs a new Delimiter with the specified title.

Parameters:
title - the title of this container
 o Delimiter
 public Delimiter(String title,
                  int alignment)
Constructs a new Delimiter with the specified title and the specified alignment.

Parameters:
title - the title of this container
alignment - the title's alignment

Methods

 o setTitle
 public void setTitle(String title)
Sets the title of the container to the specified title.

Parameters:
title - the title
 o getTitle
 public String getTitle()
Gets the title of this container.

 o setAlignment
 public void setAlignment(int alignment)
Sets the title's alignment of this container to the specified alignment.

Parameters:
alignment - the title's alignment
 o getAlignment
 public int getAlignment()
Gets the title's alignment.

 o getInsets
 public Insets getInsets()
Gets the container's insets.

Overrides:
getInsets in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container