Package com.tagtraum.beatunes
Class RoundBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- com.tagtraum.beatunes.RoundBorder
-
- All Implemented Interfaces:
Serializable
,Border
public class RoundBorder extends AbstractBorder
Round border e.g. for a search field.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoundBorder(int arc, Color accentColor, boolean full)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insets
getBorderInsets(Component c)
Insets
getBorderInsets(Component c, Insets insets)
void
paintBorder(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
-
-
-
-
Constructor Detail
-
RoundBorder
public RoundBorder(int arc, Color accentColor, boolean full)
-
-
Method Detail
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classAbstractBorder
-
getBorderInsets
public Insets getBorderInsets(Component c)
- Specified by:
getBorderInsets
in interfaceBorder
- Overrides:
getBorderInsets
in classAbstractBorder
-
getBorderInsets
public Insets getBorderInsets(Component c, Insets insets)
- Overrides:
getBorderInsets
in classAbstractBorder
-
-