charvax.swing.border
Modifier and Type | Field and Description |
---|---|
protected Border |
_border |
protected java.lang.String |
_title |
protected Color |
_titleColor |
Constructor and Description |
---|
TitledBorder(Border border_)
Create a titled border with the specified border and an
empty title.
|
TitledBorder(Border border_,
java.lang.String title_)
Create a TitledBorder instance with the specified border
and title, and with the title text in black.
|
TitledBorder(Border border_,
java.lang.String title_,
int titleJustification_,
int titlePosition_,
Font titleFont_,
Color titleColor_)
Creates a TitledBorder instance with the specified border,
title, title-justification, title-position, title-font,
and title-color.
|
TitledBorder(java.lang.String title_)
Create a TitledBorder instance with a line border and
the specified title, with the title text in black.
|
Modifier and Type | Method and Description |
---|---|
Border |
getBorder()
Returns the border of the titled border.
|
Insets |
getBorderInsets(Component component_)
Returns the insets of the border.
|
java.lang.String |
getTitle()
Returns the title
|
Color |
getTitleColor()
Returns the color of the title text.
|
void |
paintBorder(Component component_,
int graphics_,
int x_,
int y_,
int width_,
int height_)
Paints the border for the specified component with the specified
position and size.
|
void |
setBorder(Border border_)
Sets the border of this titled border.
|
void |
setTitle(java.lang.String title_)
Sets the title text.
|
void |
setTitleColor(Color titleColor_)
Set the color of the title text.
|
protected java.lang.String _title
protected Color _titleColor
protected Border _border
public TitledBorder(Border border_)
public TitledBorder(java.lang.String title_)
public TitledBorder(Border border_, java.lang.String title_)
public TitledBorder(Border border_, java.lang.String title_, int titleJustification_, int titlePosition_, Font titleFont_, Color titleColor_)
border_
- the border.title_
- the title the border should display.titleJustification_
- the title justification (UNUSED).titlePosition_
- the position of the title (UNUSED)titleFont_
- the title font (UNUSED)titleColor_
- the title color.public Insets getBorderInsets(Component component_)
getBorderInsets
in interface Border
public void setTitle(java.lang.String title_)
public java.lang.String getTitle()
public void setTitleColor(Color titleColor_)
public Color getTitleColor()
public void setBorder(Border border_)
public Border getBorder()
public void paintBorder(Component component_, int graphics_, int x_, int y_, int width_, int height_)
paintBorder
in interface Border