Package org.omegat.util.gui
Class RoundedCornerBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- org.omegat.util.gui.RoundedCornerBorder
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.border.Border
public class RoundedCornerBorder extends javax.swing.border.AbstractBorder
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
SIDE_ALL
static int
SIDE_BOTTOM
static int
SIDE_LEFT
static int
SIDE_RIGHT
static int
SIDE_TOP
-
Constructor Summary
Constructors Constructor Description RoundedCornerBorder()
RoundedCornerBorder(int radius, java.awt.Color color, int side)
RoundedCornerBorder(int radius, java.awt.Color color, int side, int stroke)
-
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)
void
paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
-
-
-
Field Detail
-
SIDE_TOP
public static final int SIDE_TOP
- See Also:
- Constant Field Values
-
SIDE_LEFT
public static final int SIDE_LEFT
- See Also:
- Constant Field Values
-
SIDE_BOTTOM
public static final int SIDE_BOTTOM
- See Also:
- Constant Field Values
-
SIDE_RIGHT
public static final int SIDE_RIGHT
- See Also:
- Constant Field Values
-
SIDE_ALL
public static final int SIDE_ALL
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.AbstractBorder
-
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.AbstractBorder
-
-