public class BackgroundBorderUIResource extends java.lang.Object implements javax.swing.border.Border, BackgroundBorder, javax.swing.plaf.UIResource
It is used like a regular Border object, the BackgroundBorderUIResource works like an EmptyBorder. It just has insets, but draws nothing. Using the getBackgroundBorder method, one can retrieve the background border used to draw on the background of a JComponent.
| Constructor and Description |
|---|
BackgroundBorderUIResource(javax.swing.border.Border backgroundBorder)
Creates an EmptyBorder which has the same insets as the specified
background border.
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.border.Border |
getBackgroundBorder()
Returns the border that needs to be drawn onto the background.
|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
boolean |
isBorderOpaque() |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
public BackgroundBorderUIResource(javax.swing.border.Border backgroundBorder)
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.Borderpublic boolean isBorderOpaque()
isBorderOpaque in interface javax.swing.border.Borderpublic void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.Borderpublic javax.swing.border.Border getBackgroundBorder()
BackgroundBordergetBackgroundBorder in interface BackgroundBorder