public abstract class ListUI extends ComponentUI
JList.| Constructor and Description |
|---|
ListUI()
Constructs a new
ListUI. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
abstract java.awt.Point |
indexToLocation(javax.swing.JList list,
int index)
Determines the location of the specified cell.
|
abstract int |
locationToIndex(javax.swing.JList list,
java.awt.Point location)
Determines the cell index which is the closest to the specified
location.
|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, updatepublic ListUI()
ListUI.public abstract int locationToIndex(javax.swing.JList list, java.awt.Point location)
getCellBounds(javax.swing.JList, int, int).list - the JList for which this delegate object
provides the pluggable user interface.location - a point in the JList coordinate
system.public abstract java.awt.Point indexToLocation(javax.swing.JList list, int index)
list - the JList for which this delegate object
provides the pluggable user interface.index - the zero-based index of the cell whose location shall be
determined.JList coordinate system, or null
if cell does not designate a valid cell.public abstract java.awt.Rectangle getCellBounds(javax.swing.JList list, int index1, int index2)
list - the JList for which this delegate object
provides the pluggable user interface.index1 - the zero-based index of the first cell.index2 - the zero-based index of the second cell.null if either
index1 or index2 does not
designate a valid cell.