ListUIpublic abstract class ListUI extends ComponentUI The JList pluggable look and feel delegate. This interface adds
methods that allow the JList component to map locations, e.g. mouse
coordinates, to list cells and from cell indices to the bounds of
the cell. |
Methods Summary |
---|
public abstract java.awt.Rectangle | getCellBounds(javax.swing.JList list, int index1, int index2)Returns the bounds of the specified item in JList
coordinates, null if index isn't valid.
| public abstract java.awt.Point | indexToLocation(javax.swing.JList list, int index)Returns the origin of the specified item in JList
coordinates, null if index isn't valid.
| public abstract int | locationToIndex(javax.swing.JList list, java.awt.Point location)Convert a point in JList coordinates to the closest index
of the cell at that location. To determine if the cell actually
contains the specified location use a combination of this method and
getCellBounds . Returns -1 if the model is empty.
|
|