public class SafeBorder extends AbstractBorder implements UIResource
Modifier and Type | Field and Description |
---|---|
private AbstractBorder |
delegate |
Constructor and Description |
---|
SafeBorder(AbstractBorder delegate) |
Modifier and Type | Method and Description |
---|---|
int |
getBaseline(Component c,
int width,
int height) |
Component.BaselineResizeBehavior |
getBaselineResizeBehavior(Component c) |
Insets |
getBorderInsets(Component c) |
Insets |
getBorderInsets(Component c,
Insets insets) |
Rectangle |
getInteriorRectangle(Component c,
int x,
int y,
int width,
int height) |
boolean |
isBorderOpaque() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
private Insets |
safeInsets(Insets insets) |
getInteriorRectangle
private AbstractBorder delegate
public SafeBorder(AbstractBorder delegate)
public int getBaseline(Component c, int width, int height)
getBaseline
in class AbstractBorder
public Component.BaselineResizeBehavior getBaselineResizeBehavior(Component c)
getBaselineResizeBehavior
in class AbstractBorder
public Insets getBorderInsets(Component c, Insets insets)
getBorderInsets
in class AbstractBorder
private Insets safeInsets(Insets insets)
insets
- the insets to querynull
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height)
getInteriorRectangle
in class AbstractBorder
public boolean isBorderOpaque()
isBorderOpaque
in interface Border
isBorderOpaque
in class AbstractBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
paintBorder
in class AbstractBorder
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses