public class PartialEtchedBorder extends EtchedBorder implements PartialSide
etchType, highlight, LOWERED, RAISED, shadow
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST
Constructor and Description |
---|
PartialEtchedBorder() |
PartialEtchedBorder(Color highlight,
Color shadow,
int sides) |
PartialEtchedBorder(int sides) |
PartialEtchedBorder(int etchType,
Color highlight,
Color shadow,
int sides) |
PartialEtchedBorder(int etchType,
int sides) |
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c) |
Insets |
getBorderInsets(Component c,
Insets insets) |
int |
getSides() |
boolean |
isRoundedCorners()
Gets the flag indicating if the corner should be painted rounded.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
setRoundedCorners(boolean roundedCorners)
Sets the flag indicating if the corner should be painted rounded.
|
void |
setSides(int sides) |
getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaque
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
public PartialEtchedBorder()
public PartialEtchedBorder(int sides)
public PartialEtchedBorder(int etchType, int sides)
public int getSides()
public void setSides(int sides)
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
paintBorder
in class EtchedBorder
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
public Insets getBorderInsets(Component c, Insets insets)
getBorderInsets
in class EtchedBorder
public boolean isRoundedCorners()
public void setRoundedCorners(boolean roundedCorners)
PartialSide.ALL
roundedCorners
- the flag