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
-
CENTER
- the center alignment for the text.
-
LEFT
- the left alignment for the text.
-
RIGHT
- the right alignment for the text.
Constructor index
-
Delimiter()
- Constructs a new Delimiter.
-
Delimiter(String)
- Constructs a new Delimiter with the specified title.
-
Delimiter(String, int)
- Constructs a new Delimiter with the specified title and the specified
alignment.
Method index
-
getAlignment()
- Gets the title's alignment.
-
getInsets()
- Gets the container's insets.
-
getTitle()
- Gets the title of this container.
-
paint(Graphics)
-
-
setAlignment(int)
- Sets the title's alignment of this container to the specified alignment.
-
setTitle(String)
- Sets the title of the container to the specified title.
Variables
RIGHT
public static final int RIGHT
- the right alignment for the text.
CENTER
public static final int CENTER
- the center alignment for the text.
LEFT
public static final int LEFT
- the left alignment for the text.
Constructors
Delimiter
public Delimiter()
- Constructs a new Delimiter.
Delimiter
public Delimiter(String title)
- Constructs a new Delimiter with the specified title.
- Parameters:
- title - the title of this container
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
setTitle
public void setTitle(String title)
- Sets the title of the container to the specified title.
- Parameters:
- title - the title
getTitle
public String getTitle()
- Gets the title of this container.
setAlignment
public void setAlignment(int alignment)
- Sets the title's alignment of this container to the specified alignment.
- Parameters:
- alignment - the title's alignment
getAlignment
public int getAlignment()
- Gets the title's alignment.
getInsets
public Insets getInsets()
- Gets the container's insets.
- Overrides:
- getInsets in class Container
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container