public class RoundedCornerBorder extends AbstractBorder
| Constructor and Description |
|---|
RoundedCornerBorder(Color color,
int arc) |
RoundedCornerBorder(Color color,
int arc,
int thickness,
int lineWidth) |
| Modifier and Type | Method and Description |
|---|---|
Insets |
getBorderInsets(Component c) |
Insets |
getBorderInsets(Component c,
Insets insets) |
boolean |
isBorderOpaque() |
boolean |
isPaintLeftSide() |
boolean |
isPaintRightSide() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
setPaintLeftSide(boolean paintLeftSide) |
void |
setPaintRightSide(boolean paintRightSide) |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectanglepublic RoundedCornerBorder(Color color, int arc)
public RoundedCornerBorder(Color color, int arc, int thickness, int lineWidth)
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface BorderpaintBorder in class AbstractBorderpublic Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderpublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class AbstractBorderpublic boolean isBorderOpaque()
isBorderOpaque in interface BorderisBorderOpaque in class AbstractBorderpublic boolean isPaintLeftSide()
public void setPaintLeftSide(boolean paintLeftSide)
public boolean isPaintRightSide()
public void setPaintRightSide(boolean paintRightSide)
Copyright © 2019. All rights reserved.