All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.java.swing.ListBoxUI
- public interface ListBoxUI
- extends ComponentUI
View/Controller factory interface for JListBox
-
ensureIndexIsVisible(int)
-
If neccessary scroll the list so that the specified
index is visible.
-
getCellBounds(int, int)
-
Returns the bounding rectangle for the cells in the
specified interval (the interval includes index1 and index2).
-
getFirstVisibleIndex()
-
Returns the index of the first visible cell.
-
getLastVisibleIndex()
-
Returns the index of the last visible cell.
-
indexToLocation(int)
-
Returns the origin of the specified item in ListBox
coordinates, null if index isn't valid.
-
locationToIndex(Point)
-
Convert a point in ListBox coordinates to the index
of the item at that location.
locationToIndex
public abstract int locationToIndex(Point location)
- Convert a point in ListBox coordinates to the index
of the item at that location. Returns -1 if there's no
ListBox row at location.
indexToLocation
public abstract Point indexToLocation(int index)
- Returns the origin of the specified item in ListBox
coordinates, null if index isn't valid.
getCellBounds
public abstract Rectangle getCellBounds(int index1,
int index2)
- Returns the bounding rectangle for the cells in the
specified interval (the interval includes index1 and index2).
The rectangle is in ListBox coordinates.
Returns null if the indices aren't valid.
getFirstVisibleIndex
public abstract int getFirstVisibleIndex()
- Returns the index of the first visible cell. Note that
the first cell may only be partially visible.
getLastVisibleIndex
public abstract int getLastVisibleIndex()
- Returns the index of the last visible cell. Note that
the last cell may only be partially visible.
ensureIndexIsVisible
public abstract void ensureIndexIsVisible(int index)
- If neccessary scroll the list so that the specified
index is visible.
All Packages Class Hierarchy This Package Previous Next Index