cz.vity.freerapid.swing.components
Class CompTitledBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
cz.vity.freerapid.swing.components.CompTitledBorder
- All Implemented Interfaces:
- Serializable, Border
public class CompTitledBorder
- extends TitledBorder
- See Also:
- Serialized Form
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 |
Methods inherited from class javax.swing.border.TitledBorder |
getBaseline, getBaselineResizeBehavior, getBorder, 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 |
component
protected Component component
CompTitledBorder
public CompTitledBorder(Component component)
CompTitledBorder
public CompTitledBorder(Border border)
CompTitledBorder
public CompTitledBorder(Component component,
Border border)
CompTitledBorder
public CompTitledBorder(Border border,
Component component,
int titleJustification,
int titlePosition)
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
- Specified by:
paintBorder
in interface Border
- Overrides:
paintBorder
in class TitledBorder
getBorderInsets
public Insets getBorderInsets(Component c,
Insets insets)
- Overrides:
getBorderInsets
in class TitledBorder
getTitleComponent
public Component getTitleComponent()
setTitleComponent
public void setTitleComponent(JComponent component)
getComponentRect
public Rectangle getComponentRect(Rectangle rect,
Insets borderInsets)