java.lang.Object | ||
↳ | javax.swing.plaf.ComponentUI | |
↳ | javax.swing.plaf.ListUI |
Known Direct Subclasses |
The JList
pluggable look and feel delegate.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the bounding rectangle, in the given list's coordinate system,
for the range of cells specified by the two indices.
| |||||||||||
Returns the origin in the given
JList , of the specified item,
in the list's coordinate system. | |||||||||||
Returns the cell index in the specified
JList closest to the
given location in the list's coordinate system. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.swing.plaf.ComponentUI
| |||||||||||
From class
java.lang.Object
|
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 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.
list | the list |
---|---|
index1 | the first index in the range |
index2 | the second index in the range |
null
Returns the origin in the given JList
, of the specified item,
in the list's coordinate system.
Returns null
if the index isn't valid.
list | the list |
---|---|
index | the cell index |
null
Returns the cell index in the specified 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 getCellBounds
.
This method returns -1
if the list's model is empty.
list | the list |
---|---|
location | the coordinates of the point |
-1
NullPointerException | if location is null
|
---|