protected class ComponentBorderedPanel.OffsetEtchedBorder
extends javax.swing.border.EtchedBorder
Modifier | Constructor and Description |
---|---|
protected |
OffsetEtchedBorder() |
Modifier and Type | Method and Description |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the insets of the border.
|
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) |
getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaque
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
getBorderInsets
in class javax.swing.border.AbstractBorder
c
- the component for which this border insets value appliespublic java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
getBorderInsets
in class javax.swing.border.EtchedBorder
c
- the component for which this border insets value appliesinsets
- the object to be reinitializedpublic void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
paintBorder
in class javax.swing.border.EtchedBorder
Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)