Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.plaf
Class ListUI  view ListUI download ListUI.java

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ListUI

public abstract class ListUI
extends ComponentUI

An abstract base class for delegates that implement the pluggable look and feel for a JList.


Constructor Summary
ListUI()
          Constructs a new ListUI.
 
Method Summary
abstract  java.awt.Rectangle getCellBounds(javax.swing.JList list, int index1, int index2)
          Determines the bounding box of the rectangle spanned by two list indices.
abstract  java.awt.Point indexToLocation(javax.swing.JList list, int index)
          Determines the location of the specified cell.
abstract  int locationToIndex(javax.swing.JList list, java.awt.Point location)
          Determines the cell index which is the closest to the specified location.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUI

public ListUI()
Constructs a new ListUI.

Method Detail

locationToIndex

public abstract int locationToIndex(javax.swing.JList list,
                                    java.awt.Point location)
Determines the cell index which is the closest to the specified location. The find out whether the returned cell actually contains the location, the caller should also use getCellBounds(javax.swing.JList, int, int) 55 .


indexToLocation

public abstract java.awt.Point indexToLocation(javax.swing.JList list,
                                               int index)
Determines the location of the specified cell.


getCellBounds

public abstract java.awt.Rectangle getCellBounds(javax.swing.JList list,
                                                 int index1,
                                                 int index2)
Determines the bounding box of the rectangle spanned by two list indices.