java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
org.greenstone.gatherer.gui.border.TitledBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable
- public class TitledBorder
- extends javax.swing.border.TitledBorder
| Nested classes inherited from class javax.swing.border.TitledBorder |
|
|
Field Summary |
private java.awt.Component |
parent
The parent component of this border, which is not available until the Border has been realized. |
| Fields inherited from class javax.swing.border.TitledBorder |
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING |
|
Constructor Summary |
TitledBorder(javax.swing.border.Border border)
Creates a TitledBorder instance with the specified border and an empty title. |
TitledBorder(javax.swing.border.Border border,
java.lang.String title)
Creates a TitledBorder instance with the specified border and title. |
TitledBorder(javax.swing.border.Border border,
java.lang.String title,
int justification,
int position)
Creates a TitledBorder instance with the specified border, title, title-justification, and title-position. |
TitledBorder(javax.swing.border.Border border,
java.lang.String title,
int justification,
int position,
java.awt.Font font)
Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font. |
TitledBorder(javax.swing.border.Border border,
java.lang.String title,
int justification,
int position,
java.awt.Font font,
java.awt.Color color)
Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. |
TitledBorder(java.lang.String title)
Creates a TitledBorder instance. |
| Methods inherited from class javax.swing.border.TitledBorder |
getBorder, getBorderInsets, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
private java.awt.Component parent
- The parent component of this border, which is not available until the Border has been realized.
TitledBorder
public TitledBorder(javax.swing.border.Border border)
- Creates a TitledBorder instance with the specified border and an empty title.
TitledBorder
public TitledBorder(javax.swing.border.Border border,
java.lang.String title)
- Creates a TitledBorder instance with the specified border and title.
TitledBorder
public TitledBorder(javax.swing.border.Border border,
java.lang.String title,
int justification,
int position)
- Creates a TitledBorder instance with the specified border, title, title-justification, and title-position.
TitledBorder
public TitledBorder(javax.swing.border.Border border,
java.lang.String title,
int justification,
int position,
java.awt.Font font)
- Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font.
TitledBorder
public TitledBorder(javax.swing.border.Border border,
java.lang.String title,
int justification,
int position,
java.awt.Font font,
java.awt.Color color)
- Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color.
TitledBorder
public TitledBorder(java.lang.String title)
- Creates a TitledBorder instance.
getParent
public java.awt.Component getParent()
- Gets the parent of this component.
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Paints the border for the specified component with the specified position and size.