|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
com.tensegrity.gui.swing.control.LabelLineBorder
A header border as commonly seen in Windows or Mac-applciation. Just a line going over the whole width of the component with a title in the middle.
| Field Summary |
| Fields inherited from class javax.swing.border.TitledBorder |
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING |
| Constructor Summary | |
LabelLineBorder(java.lang.String title)
Constructor specifying the title of the Border. |
|
| Method Summary | |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints a label line border for the specified component. |
| Methods inherited from class javax.swing.border.TitledBorder |
getBorder, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition |
| Methods inherited from class javax.swing.border.AbstractBorder |
getInteriorRectangle, getInteriorRectangle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LabelLineBorder(java.lang.String title)
title - the title to use.| Method Detail |
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
c - the component for which this border is being paintedg - the paint graphicsx - the x position of the painted bordery - the y position of the painted borderwidth - the width of the painted borderheight - the height of the painted borderpublic java.awt.Insets getBorderInsets(java.awt.Component c)
Border.getBorderInsets(java.awt.Component)
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||