public class KopiTitledBorder
extends javax.swing.border.TitledBorder
| Modifier and Type | Field and Description |
|---|---|
static javax.swing.border.Border |
BRD_EMPTY |
static javax.swing.border.Border |
BRD_ETCHED |
static javax.swing.border.Border |
BRD_LINE |
static javax.swing.border.Border |
BRD_LOWERED |
static javax.swing.border.Border |
BRD_RAISED |
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 and Description |
|---|
KopiTitledBorder(javax.swing.border.Border border,
java.lang.String title)
Creates a KopiTitledBorder instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
Reinitialize the insets parameter with this Border's current Insets.
|
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.
|
getBaseline, getBaselineResizeBehavior, getBorder, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePositionpublic static final javax.swing.border.Border BRD_EMPTY
public static final javax.swing.border.Border BRD_RAISED
public static final javax.swing.border.Border BRD_ETCHED
public static final javax.swing.border.Border BRD_LINE
public static final javax.swing.border.Border BRD_LOWERED
public KopiTitledBorder(javax.swing.border.Border border,
java.lang.String title)
title - the title the border should displaypublic void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.TitledBorderc - 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,
java.awt.Insets insets)
getBorderInsets in class javax.swing.border.TitledBorderc - the component for which this border insets value appliesinsets - the object to be reinitialized