Package org.kopi.vkopi.lib.ui.swing.base
Class KopiTitledBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
org.kopi.vkopi.lib.ui.swing.base.KopiTitledBorder
- All Implemented Interfaces:
Serializable,Border
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Borderstatic final Borderstatic final Borderstatic final Borderstatic final BorderFields 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
ConstructorsConstructorDescriptionKopiTitledBorder(Border border, String title) Creates a KopiTitledBorder instance. -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets(Component c, Insets insets) Reinitialize the insets parameter with this Border's current Insets.voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) Paints the border for the specified component with the specified position and size.Methods inherited from class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePositionMethods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Field Details
-
BRD_EMPTY
-
BRD_RAISED
-
BRD_ETCHED
-
BRD_LINE
-
BRD_LOWERED
-
-
Constructor Details
-
KopiTitledBorder
Creates a KopiTitledBorder instance.- Parameters:
title- the title the border should display
-
-
Method Details
-
paintBorder
Paints the border for the specified component with the specified position and size.- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classTitledBorder- Parameters:
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 border
-
getBorderInsets
Reinitialize the insets parameter with this Border's current Insets.- Overrides:
getBorderInsetsin classTitledBorder- Parameters:
c- the component for which this border insets value appliesinsets- the object to be reinitialized
-