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


Method Index

 o ensureIndexIsVisible(int)
If neccessary scroll the list so that the specified index is visible.
 o getCellBounds(int, int)
Returns the bounding rectangle for the cells in the specified interval (the interval includes index1 and index2).
 o getFirstVisibleIndex()
Returns the index of the first visible cell.
 o getLastVisibleIndex()
Returns the index of the last visible cell.
 o indexToLocation(int)
Returns the origin of the specified item in ListBox coordinates, null if index isn't valid.
 o locationToIndex(Point)
Convert a point in ListBox coordinates to the index of the item at that location.

Methods

 o 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.

 o indexToLocation
 public abstract Point indexToLocation(int index)
Returns the origin of the specified item in ListBox coordinates, null if index isn't valid.

 o 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.

 o getFirstVisibleIndex
 public abstract int getFirstVisibleIndex()
Returns the index of the first visible cell. Note that the first cell may only be partially visible.

 o getLastVisibleIndex
 public abstract int getLastVisibleIndex()
Returns the index of the last visible cell. Note that the last cell may only be partially visible.

 o 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