Class TableCell3DBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- com.tagtraum.beatunes.songtable.renderer.TableCell3DBorder
-
- All Implemented Interfaces:
Serializable
,Border
public class TableCell3DBorder extends AbstractBorder
Table cell 3D border as used in iTunes 11.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Border
EMPTY_BORDER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Border
create(Color background)
Creates a border with the given background color.Insets
getBorderInsets(Component c)
Insets
getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current 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
-
-
-
-
Field Detail
-
EMPTY_BORDER
public static final Border EMPTY_BORDER
-
-
Method Detail
-
create
public static Border create(Color background)
Creates a border with the given background color.- Parameters:
background
- color- Returns:
- border
-
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, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.- Overrides:
getBorderInsets
in classAbstractBorder
- Parameters:
c
- the component for which this border insets value appliesinsets
- the object to be reinitialized
-
getBorderInsets
public Insets getBorderInsets(Component c)
- Specified by:
getBorderInsets
in interfaceBorder
- Overrides:
getBorderInsets
in classAbstractBorder
-
-