com.jidesoft.swing
Class PartialEtchedBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EtchedBorder
com.jidesoft.swing.PartialEtchedBorder
- All Implemented Interfaces:
- PartialSide, Serializable, Border
public class PartialEtchedBorder
- extends EtchedBorder
- implements PartialSide
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartialEtchedBorder
public PartialEtchedBorder()
PartialEtchedBorder
public PartialEtchedBorder(int sides)
PartialEtchedBorder
public PartialEtchedBorder(int etchType,
int sides)
PartialEtchedBorder
public PartialEtchedBorder(Color highlight,
Color shadow,
int sides)
PartialEtchedBorder
public PartialEtchedBorder(int etchType,
Color highlight,
Color shadow,
int sides)
getSides
public int getSides()
setSides
public void setSides(int sides)
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
- Specified by:
paintBorder
in interface Border
- Overrides:
paintBorder
in class EtchedBorder
getBorderInsets
public Insets getBorderInsets(Component c)
- Specified by:
getBorderInsets
in interface Border
- Overrides:
getBorderInsets
in class EtchedBorder
getBorderInsets
public Insets getBorderInsets(Component c,
Insets insets)
- Overrides:
getBorderInsets
in class EtchedBorder
isRoundedCorners
public boolean isRoundedCorners()
- Gets the flag indicating if the corner should be painted rounded.
- Returns:
- true if the corner should be painted rounded. Otherwise false.
- Since:
- 3.4.5
setRoundedCorners
public void setRoundedCorners(boolean roundedCorners)
- Sets the flag indicating if the corner should be painted rounded.
By default, the value is false to keep the default behavior backward compatibility.
This flag take effects only if the side is
PartialSide.ALL
- Parameters:
roundedCorners
- the flag- Since:
- 3.4.5