Package com.jidesoft.swing
Class PartialEtchedBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.border.EtchedBorder
-
- com.jidesoft.swing.PartialEtchedBorder
-
- All Implemented Interfaces:
PartialSide
,java.io.Serializable
,javax.swing.border.Border
public class PartialEtchedBorder extends javax.swing.border.EtchedBorder implements PartialSide
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.border.EtchedBorder
etchType, highlight, LOWERED, RAISED, shadow
-
Fields inherited from interface com.jidesoft.swing.PartialSide
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST
-
-
Constructor Summary
Constructors 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)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
Methods inherited from class javax.swing.border.EtchedBorder
getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaque
-
-
-
-
Constructor Detail
-
PartialEtchedBorder
public PartialEtchedBorder()
-
PartialEtchedBorder
public PartialEtchedBorder(int sides)
-
PartialEtchedBorder
public PartialEtchedBorder(int etchType, int sides)
-
PartialEtchedBorder
public PartialEtchedBorder(java.awt.Color highlight, java.awt.Color shadow, int sides)
-
PartialEtchedBorder
public PartialEtchedBorder(int etchType, java.awt.Color highlight, java.awt.Color shadow, int sides)
-
-
Method Detail
-
getSides
public int getSides()
-
setSides
public void setSides(int sides)
-
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfacejavax.swing.border.Border
- Overrides:
paintBorder
in classjavax.swing.border.EtchedBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsets
in interfacejavax.swing.border.Border
- Overrides:
getBorderInsets
in classjavax.swing.border.AbstractBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
- Overrides:
getBorderInsets
in classjavax.swing.border.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 isPartialSide.ALL
- Parameters:
roundedCorners
- the flag- Since:
- 3.4.5
-
-