PartialSide, Serializable, Borderpublic class PartialEtchedBorder extends EtchedBorder implements PartialSide
etchType, highlight, LOWERED, RAISED, shadowALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST| Constructor | Description |
|---|---|
PartialEtchedBorder() |
|
PartialEtchedBorder(int sides) |
|
PartialEtchedBorder(int etchType,
int sides) |
|
PartialEtchedBorder(int etchType,
Color highlight,
Color shadow,
int sides) |
|
PartialEtchedBorder(Color highlight,
Color shadow,
int sides) |
| Modifier and Type | Method | 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) |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectanglegetEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaquepublic 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 BorderpaintBorder in class EtchedBorderpublic Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderpublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class EtchedBorderpublic boolean isRoundedCorners()
public void setRoundedCorners(boolean roundedCorners)
PartialSide.ALLroundedCorners - the flag