|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcharvax.swing.border.TitledBorder
A class that implements a border with the specified title.
| Field Summary | |
protected Border |
_border
|
protected java.lang.String |
_title
|
protected Color |
_titleColor
|
| Constructor Summary | |
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. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String _title
protected Color _titleColor
protected Border _border
| Constructor Detail |
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.| Method Detail |
public Insets getBorderInsets(Component component_)
getBorderInsets in interface Borderpublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||