PartialSide, java.io.Serializable, javax.swing.border.Borderpublic class PartialEtchedBorder extends javax.swing.border.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,
java.awt.Color highlight,
java.awt.Color shadow,
int sides) |
|
PartialEtchedBorder(java.awt.Color highlight,
java.awt.Color shadow,
int sides) |
| Modifier and Type | Method | Description |
|---|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
|
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets) |
|
int |
getSides() |
|
boolean |
isRoundedCorners() |
Gets the flag indicating if the corner should be painted rounded.
|
void |
paintBorder(java.awt.Component c,
java.awt.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, getInteriorRectanglepublic PartialEtchedBorder()
public PartialEtchedBorder(int sides)
public PartialEtchedBorder(int etchType,
int sides)
public PartialEtchedBorder(java.awt.Color highlight,
java.awt.Color shadow,
int sides)
public PartialEtchedBorder(int etchType,
java.awt.Color highlight,
java.awt.Color shadow,
int sides)
public int getSides()
public void setSides(int sides)
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.EtchedBorderpublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderpublic java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
getBorderInsets in class javax.swing.border.EtchedBorderpublic boolean isRoundedCorners()
public void setRoundedCorners(boolean roundedCorners)
PartialSide.ALLroundedCorners - the flag