java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
- public abstract class ListUI
- extends ComponentUI
An abstract base class for delegates that implement the pluggable
look and feel for a JList.
|
Constructor Summary |
ListUI()
Constructs a new ListUI. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListUI
public ListUI()
- Constructs a new
ListUI.
locationToIndex
public abstract int locationToIndex(javax.swing.JList list,
java.awt.Point location)
- Determines the cell index which is the closest to the specified
location. The find out whether the returned cell actually
contains the location, the caller should also use
getCellBounds(javax.swing.JList, int, int) 55 .
indexToLocation
public abstract java.awt.Point indexToLocation(javax.swing.JList list,
int index)
- Determines the location of the specified cell.
getCellBounds
public abstract java.awt.Rectangle getCellBounds(javax.swing.JList list,
int index1,
int index2)
- Determines the bounding box of the rectangle spanned by
two list indices.