All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.basic.BasicListBoxUI
java.lang.Object
|
+----com.sun.java.swing.basic.BasicListBoxUI
- public class BasicListBoxUI
- extends Object
- implements ListBoxUI
A Windows L&F implementation of ListBoxUI.
-
hsbPolicy
-
-
listbox
-
-
listview
-
-
scrollpane
-
-
vsbPolicy
-
-
BasicListBoxUI()
-
-
convertToListBoxOrigin(Point)
-
Destructively convert a ListView location to ListBox coordinates.
-
convertToListViewOrigin(Point)
-
Destructively convert ListBox location p to ListView coordinates.
-
createScrollPane()
-
-
createUI(JListBox)
-
-
deinstallUI(JComponent)
-
-
ensureIndexIsVisible(int)
-
-
getCellBounds(int, int)
-
Returns the bounding rectangle for the cells in the
specified interval.
-
getFirstVisibleIndex()
- Returns the index of the first visible cell.
-
getInsets(JComponent)
-
-
getLastVisibleIndex()
- Returns the index of the last visible cell.
-
getMaximumSize(JComponent)
-
-
getMinimumSize(JComponent)
-
-
getPreferredSize(JComponent)
-
-
indexToLocation(int)
- Returns the origin of the specified item in ListBox
coordinates, null if index isn't valid.
-
installUI(JComponent)
-
-
locationToIndex(Point)
-
Convert a point in ListBox coordinates to the index
of the item at that location.
-
paint(Graphics, JComponent)
-
-
selectNextRow()
-
-
selectPreviousRow()
-
hsbPolicy
protected static int hsbPolicy
vsbPolicy
protected static int vsbPolicy
listbox
protected JListBox listbox
scrollpane
protected JScrollPane scrollpane
listview
protected BasicListView listview
BasicListBoxUI
public BasicListBoxUI()
paint
public void paint(Graphics g,
JComponent c)
getPreferredSize
public Dimension getPreferredSize(JComponent c)
getMinimumSize
public Dimension getMinimumSize(JComponent c)
getMaximumSize
public Dimension getMaximumSize(JComponent x)
getInsets
public Insets getInsets(JComponent x)
installUI
public void installUI(JComponent x)
deinstallUI
public void deinstallUI(JComponent x)
createUI
public static ListBoxUI createUI(JListBox x)
selectPreviousRow
protected void selectPreviousRow()
selectNextRow
protected void selectNextRow()
convertToListBoxOrigin
protected Point convertToListBoxOrigin(Point listViewPoint)
- Destructively convert a ListView location to ListBox coordinates.
convertToListViewOrigin
protected Point convertToListViewOrigin(Point listBoxPoint)
- Destructively convert ListBox location p to ListView coordinates.
locationToIndex
public 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 Point indexToLocation(int index)
- Returns the origin of the specified item in ListBox
coordinates, null if index isn't valid.
getCellBounds
public Rectangle getCellBounds(int index1,
int index2)
- Returns the bounding rectangle for the cells in the
specified interval. The location of the rectangle
is in ListBox coordinates. Returns null if index
isn't valid.
getFirstVisibleIndex
public int getFirstVisibleIndex()
- Returns the index of the first visible cell. Note that
the first cell may only be partially visible.
getLastVisibleIndex
public int getLastVisibleIndex()
- Returns the index of the last visible cell. Note that
the last cell may only be partially visible.
ensureIndexIsVisible
public void ensureIndexIsVisible(int index)
createScrollPane
protected JScrollPane createScrollPane()
All Packages Class Hierarchy This Package Previous Next Index