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:
java.io.Serializable,javax.swing.border.Border
public class KopiTitledBorder extends javax.swing.border.TitledBorder- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static javax.swing.border.BorderBRD_EMPTYstatic javax.swing.border.BorderBRD_ETCHEDstatic javax.swing.border.BorderBRD_LINEstatic javax.swing.border.BorderBRD_LOWEREDstatic javax.swing.border.BorderBRD_RAISED-
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
-
-
Constructor Summary
Constructors Constructor Description KopiTitledBorder(javax.swing.border.Border border, java.lang.String title)Creates a KopiTitledBorder instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.InsetsgetBorderInsets(java.awt.Component c, java.awt.Insets insets)Reinitialize the insets parameter with this Border's current Insets.voidpaintBorder(java.awt.Component c, java.awt.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, setTitlePosition
-
-
-
-
Field Detail
-
BRD_EMPTY
public static final javax.swing.border.Border BRD_EMPTY
-
BRD_RAISED
public static final javax.swing.border.Border BRD_RAISED
-
BRD_ETCHED
public static final javax.swing.border.Border BRD_ETCHED
-
BRD_LINE
public static final javax.swing.border.Border BRD_LINE
-
BRD_LOWERED
public static final javax.swing.border.Border BRD_LOWERED
-
-
Method Detail
-
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size.- Specified by:
paintBorderin interfacejavax.swing.border.Border- Overrides:
paintBorderin classjavax.swing.border.TitledBorder- 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
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)Reinitialize the insets parameter with this Border's current Insets.- Overrides:
getBorderInsetsin classjavax.swing.border.TitledBorder- Parameters:
c- the component for which this border insets value appliesinsets- the object to be reinitialized
-
-