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, getInteriorRectangle
public 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 Border
paintBorder
in class AbstractBorder
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
public Insets getBorderInsets(Component c, Insets insets)
getBorderInsets
in class AbstractBorder
public boolean isBorderOpaque()
isBorderOpaque
in interface Border
isBorderOpaque
in class AbstractBorder
public boolean isPaintLeftSide()
public void setPaintLeftSide(boolean paintLeftSide)
public boolean isPaintRightSide()
public void setPaintRightSide(boolean paintRightSide)
Copyright © 2019. All rights reserved.