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 boolean
contains(JComponent c, int x, int y)
static ComponentUI
createUI(JComponent component)
Accessible
getAccessibleChild(JComponent c, int i)
int
getAccessibleChildrenCount(JComponent c)
Rectangle
getCellBounds(JList list, int index1, int index2)
Dimension
getMaximumSize(JComponent c)
Dimension
getMinimumSize(JComponent c)
Dimension
getPreferredSize(JComponent c)
Point
indexToLocation(JList list, int index)
void
installUI(JComponent c)
int
locationToIndex(JList list, Point location)
void
paint(Graphics g, JComponent c)
void
uninstallUI(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:
installUI
in classComponentUI
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in classComponentUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paint
in classComponentUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in classComponentUI
-
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
getMinimumSize
in classComponentUI
-
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
getMaximumSize
in classComponentUI
-
contains
public boolean contains(JComponent c, int x, int y)
- Overrides:
contains
in classComponentUI
-
getAccessibleChildrenCount
public int getAccessibleChildrenCount(JComponent c)
- Overrides:
getAccessibleChildrenCount
in classComponentUI
-
getAccessibleChild
public Accessible getAccessibleChild(JComponent c, int i)
- Overrides:
getAccessibleChild
in classComponentUI
-
locationToIndex
public int locationToIndex(JList list, Point location)
- Specified by:
locationToIndex
in classListUI
-
indexToLocation
public Point indexToLocation(JList list, int index)
- Specified by:
indexToLocation
in classListUI
-
getCellBounds
public Rectangle getCellBounds(JList list, int index1, int index2)
- Specified by:
getCellBounds
in classListUI
-
-