JList
pluggable look and feel delegate.
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public abstract Rectangle | Returns: the bounding rectangle for the range of cells, ornull the list list, int the first index in the range index1, int the second index in the range index2)Returns the bounding rectangle, in the given list's coordinate system, for the range of cells specified by the two indices. |
public abstract Point | Returns: the origin of the cell, ornull the list list, int the cell index index)Returns the origin in the given |
public abstract int | Returns: the cell index closest to the given location, or-1 the list list, Point the coordinates of the point location)Returns the cell index in the specified |
ListUI | back to summary |
---|---|
protected ListUI() Constructor for subclasses to call. |
getCellBounds | back to summary |
---|---|
public abstract 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 |
indexToLocation | back to summary |
---|---|
public abstract Point indexToLocation(JList<?> list, int index) Returns the origin in the given |
locationToIndex | back to summary |
---|---|
public abstract int locationToIndex(JList<?> list, Point location) Returns the cell index in the specified
|