public class RoundedCornerBorder extends AbstractBorder
Constructor and Description |
---|
RoundedCornerBorder() |
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c) |
Insets |
getBorderInsets(Component c,
Insets insets) |
Shape |
getBorderShape(int x,
int y,
int width,
int height) |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
setColor(Color color) |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
public void setColor(Color color)
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
paintBorder
in class AbstractBorder
public Shape getBorderShape(int x, int y, int width, int height)
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
public Insets getBorderInsets(Component c, Insets insets)
getBorderInsets
in class AbstractBorder
Copyright © 2019. All rights reserved.