src/share/classes/javax/swing/plaf/ListUI.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 48,58 ****
* @param list the list
* @param location the coordinates of the point
* @return the cell index closest to the given location, or {@code -1}
* @throws NullPointerException if {@code location} is null
*/
! public abstract int locationToIndex(JList list, Point location);
/**
* Returns the origin in the given {@code JList}, of the specified item,
* in the list's coordinate system.
--- 48,58 ----
* @param list the list
* @param location the coordinates of the point
* @return the cell index closest to the given location, or {@code -1}
* @throws NullPointerException if {@code location} is null
*/
! public abstract int locationToIndex(JList<?> list, Point location);
/**
* Returns the origin in the given {@code JList}, of the specified item,
* in the list's coordinate system.
*** 60,70 ****
*
* @param list the list
* @param index the cell index
* @return the origin of the cell, or {@code null}
*/
! public abstract Point indexToLocation(JList list, int index);
/**
* Returns the bounding rectangle, in the given list's coordinate system,
* for the range of cells specified by the two indices.
--- 60,70 ----
*
* @param list the list
* @param index the cell index
* @return the origin of the cell, or {@code null}
*/
! public abstract Point indexToLocation(JList<?> list, int index);
/**
* Returns the bounding rectangle, in the given list's coordinate system,
* for the range of cells specified by the two indices.
*** 78,84 ****
* @param list the list
* @param index1 the first index in the range
* @param index2 the second index in the range
* @return the bounding rectangle for the range of cells, or {@code null}
*/
! public abstract Rectangle getCellBounds(JList list, int index1, int index2);
}
--- 78,84 ----
* @param list the list
* @param index1 the first index in the range
* @param index2 the second index in the range
* @return the bounding rectangle for the range of cells, or {@code null}
*/
! public abstract Rectangle getCellBounds(JList<?> list, int index1, int index2);
}