Home » openjdk-7 » javax » swing » plaf » [javadoc | source]
abstract public class: ListUI [javadoc | source]

Direct Known Subclasses:
    SynthListUI, BasicListUI, MultiListUI

The {@code JList} pluggable look and feel delegate.
Method from javax.swing.plaf.ListUI Summary:
getCellBounds,   indexToLocation,   locationToIndex
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.ListUI Detail:
 abstract public Rectangle getCellBounds(JList list,
    int index1,
    int index2)
    Returns the bounding rectangle, in the given list's coordinate system, for the range of cells specified by the two indices. The indices can be supplied in any order.

    If the smaller index is outside the list's range of cells, this method returns {@code null}. If the smaller index is valid, but the larger index is outside the list's range, the bounds of just the first index is returned. Otherwise, the bounds of the valid range is returned.

 abstract public Point indexToLocation(JList list,
    int index)
    Returns the origin in the given {@code JList}, of the specified item, in the list's coordinate system. Returns {@code null} if the index isn't valid.
 abstract public int locationToIndex(JList list,
    Point location)
    Returns the cell index in the specified {@code JList} closest to the given location in the list's coordinate system. To determine if the cell actually contains the specified location, compare the point against the cell's bounds, as provided by {@code getCellBounds}. This method returns {@code -1} if the list's model is empty.