Package org.omegat.util.gui
Class RoundedCornerBorder
java.lang.Object
javax.swing.border.AbstractBorder
org.omegat.util.gui.RoundedCornerBorder
- All Implemented Interfaces:
Serializable,Border
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRoundedCornerBorder(int radius, Color color, int side) RoundedCornerBorder(int radius, Color color, int side, int stroke) -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets(Component c, Insets insets) voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
Field Details
-
SIDE_TOP
public static final int SIDE_TOP- See Also:
-
SIDE_LEFT
public static final int SIDE_LEFT- See Also:
-
SIDE_BOTTOM
public static final int SIDE_BOTTOM- See Also:
-
SIDE_RIGHT
public static final int SIDE_RIGHT- See Also:
-
SIDE_ALL
public static final int SIDE_ALL- See Also:
-
-
Constructor Details
-
RoundedCornerBorder
public RoundedCornerBorder() -
RoundedCornerBorder
-
RoundedCornerBorder
-
-
Method Details
-
paintBorder
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classAbstractBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classAbstractBorder
-