Package com.tagtraum.beatunes.plaf
Class BeaTunesListUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ListUI
-
- com.tagtraum.beatunes.plaf.BeaTunesListUI
-
public class BeaTunesListUI extends ListUI
List UI, that paints a striped, iTunes-like background. Pretty much all method calls are simply delegated to the underlying platform's ListUI object.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description BeaTunesListUI(JComponent component)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(JComponent c, int x, int y)static ComponentUIcreateUI(JComponent component)AccessiblegetAccessibleChild(JComponent c, int i)intgetAccessibleChildrenCount(JComponent c)RectanglegetCellBounds(JList list, int index1, int index2)DimensiongetMaximumSize(JComponent c)DimensiongetMinimumSize(JComponent c)DimensiongetPreferredSize(JComponent c)PointindexToLocation(JList list, int index)voidinstallUI(JComponent c)intlocationToIndex(JList list, Point location)voidpaint(Graphics g, JComponent c)voiduninstallUI(JComponent c)-
Methods inherited from class javax.swing.plaf.ComponentUI
getBaseline, getBaselineResizeBehavior, update
-
-
-
-
Constructor Detail
-
BeaTunesListUI
public BeaTunesListUI(JComponent component)
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent component)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classComponentUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUIin classComponentUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paintin classComponentUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classComponentUI
-
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
getMinimumSizein classComponentUI
-
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
getMaximumSizein classComponentUI
-
contains
public boolean contains(JComponent c, int x, int y)
- Overrides:
containsin classComponentUI
-
getAccessibleChildrenCount
public int getAccessibleChildrenCount(JComponent c)
- Overrides:
getAccessibleChildrenCountin classComponentUI
-
getAccessibleChild
public Accessible getAccessibleChild(JComponent c, int i)
- Overrides:
getAccessibleChildin classComponentUI
-
locationToIndex
public int locationToIndex(JList list, Point location)
- Specified by:
locationToIndexin classListUI
-
indexToLocation
public Point indexToLocation(JList list, int index)
- Specified by:
indexToLocationin classListUI
-
getCellBounds
public Rectangle getCellBounds(JList list, int index1, int index2)
- Specified by:
getCellBoundsin classListUI
-
-