Liking cljdoc? Tell your friends :D

javax.swing.plaf.ListUI

The JList pluggable look and feel delegate.

The JList pluggable look and feel delegate.
raw docstring

->list-uiclj

(->list-ui)

Constructor.

Constructor.
raw docstring

get-cell-boundsclj

(get-cell-bounds this list index-1 index-2)

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 - javax.swing.JList index-1 - the first index in the range - int index-2 - the second index in the range - int

returns: the bounding rectangle for the range of cells, or null - java.awt.Rectangle

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 - `javax.swing.JList`
index-1 - the first index in the range - `int`
index-2 - the second index in the range - `int`

returns: the bounding rectangle for the range of cells, or null - `java.awt.Rectangle`
raw docstring

index-to-locationclj

(index-to-location this list index)

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 - javax.swing.JList index - the cell index - int

returns: the origin of the cell, or null - java.awt.Point

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 - `javax.swing.JList`
index - the cell index - `int`

returns: the origin of the cell, or null - `java.awt.Point`
raw docstring

location-to-indexclj

(location-to-index this list location)

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 - javax.swing.JList location - the coordinates of the point - java.awt.Point

returns: the cell index closest to the given location, or -1 - int

throws: java.lang.NullPointerException - if location is 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 - `javax.swing.JList`
location - the coordinates of the point - `java.awt.Point`

returns: the cell index closest to the given location, or -1 - `int`

throws: java.lang.NullPointerException - if location is null
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close