588 |
return getUI().locationToIndex(this, r.getLocation()); |
return getUI().locationToIndex(this, r.getLocation()); |
589 |
} |
} |
590 |
|
|
591 |
|
|
592 |
|
/** |
593 |
|
* Returns index of the cell to which specified location is closest to |
594 |
|
* @param location for which to look for in the list |
595 |
|
* |
596 |
|
* @return index of the cell to which specified location is closest to. |
597 |
|
*/ |
598 |
|
public int locationToIndex(Point location) { |
599 |
|
return getUI().locationToIndex(this, location); |
600 |
|
} |
601 |
|
|
602 |
|
/** |
603 |
|
* Returns location of the cell located at the specified index in the list. |
604 |
|
* @param index of the cell for which location will be determined |
605 |
|
* |
606 |
|
* @return location of the cell located at the specified index in the list. |
607 |
|
*/ |
608 |
|
public Point indexToLocation(int index){ |
609 |
|
//FIXME: Need to implement. |
610 |
|
return null; |
611 |
|
} |
612 |
|
|
613 |
/** |
/** |
614 |
* Returns the list index of the lower right or lower left corner of the |
* Returns the list index of the lower right or lower left corner of the |
615 |
* {@link #visibleRect} property, depending on the {@link |
* {@link #visibleRect} property, depending on the {@link |