public static final class Borders.EmptyBorder
extends javax.swing.border.AbstractBorder
ConstantSize
to define the top, left, bottom and right gap.| Modifier and Type | Field and Description |
|---|---|
private ConstantSize |
bottom |
private ConstantSize |
left |
private ConstantSize |
right |
private ConstantSize |
top |
| Modifier | Constructor and Description |
|---|---|
private |
EmptyBorder(ConstantSize top,
ConstantSize left,
ConstantSize bottom,
ConstantSize right) |
| Modifier and Type | Method and Description |
|---|---|
ConstantSize |
bottom()
Returns this border's bottom size.
|
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)
Returns the insets of the border.
|
ConstantSize |
left()
Returns this border's left size.
|
ConstantSize |
right()
Returns this border's right size.
|
ConstantSize |
top()
Returns this border's top size.
|
private final ConstantSize top
private final ConstantSize left
private final ConstantSize bottom
private final ConstantSize right
private EmptyBorder(ConstantSize top, ConstantSize left, ConstantSize bottom, ConstantSize right)
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
getBorderInsets in class javax.swing.border.AbstractBorderc - the component for which this border insets value appliesinsets - the insets to be reinitializedinsets objectpublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderc - the component for which this border insets value appliespublic ConstantSize top()
public ConstantSize left()
public ConstantSize bottom()
public ConstantSize right()