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 intSIDE_ALLstatic intSIDE_BOTTOMstatic intSIDE_LEFTstatic intSIDE_RIGHTstatic intSIDE_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.InsetsgetBorderInsets(java.awt.Component c)java.awt.InsetsgetBorderInsets(java.awt.Component c, java.awt.Insets insets)voidpaintBorder(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:
paintBorderin interfacejavax.swing.border.Border- Overrides:
paintBorderin classjavax.swing.border.AbstractBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsetsin interfacejavax.swing.border.Border- Overrides:
getBorderInsetsin classjavax.swing.border.AbstractBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)- Overrides:
getBorderInsetsin classjavax.swing.border.AbstractBorder
-
-