jdk/src/share/classes/javax/swing/table/JTableHeader.java
changeset 25172 b345c47c02b3
parent 22574 7f8ce0c8c20a
equal deleted inserted replaced
25171:5dd99a9e443b 25172:b345c47c02b3
   334 
   334 
   335     /**
   335     /**
   336      * Returns the index of the column that <code>point</code> lies in, or -1 if it
   336      * Returns the index of the column that <code>point</code> lies in, or -1 if it
   337      * lies out of bounds.
   337      * lies out of bounds.
   338      *
   338      *
       
   339      * @param point  if this <code>point</code> lies within a column, the index of
       
   340      *               that column will be returned; otherwise it is out of bounds
       
   341      *               and -1 is returned
       
   342      *
   339      * @return  the index of the column that <code>point</code> lies in, or -1 if it
   343      * @return  the index of the column that <code>point</code> lies in, or -1 if it
   340      *          lies out of bounds
   344      *          lies out of bounds
   341      */
   345      */
   342     public int columnAtPoint(Point point) {
   346     public int columnAtPoint(Point point) {
   343         int x = point.x;
   347         int x = point.x;
   349 
   353 
   350     /**
   354     /**
   351      * Returns the rectangle containing the header tile at <code>column</code>.
   355      * Returns the rectangle containing the header tile at <code>column</code>.
   352      * When the <code>column</code> parameter is out of bounds this method uses the
   356      * When the <code>column</code> parameter is out of bounds this method uses the
   353      * same conventions as the <code>JTable</code> method <code>getCellRect</code>.
   357      * same conventions as the <code>JTable</code> method <code>getCellRect</code>.
       
   358      *
       
   359      * @param column  index of the column
   354      *
   360      *
   355      * @return  the rectangle containing the header tile at <code>column</code>
   361      * @return  the rectangle containing the header tile at <code>column</code>
   356      * @see JTable#getCellRect
   362      * @see JTable#getCellRect
   357      */
   363      */
   358     public Rectangle getHeaderRect(int column) {
   364     public Rectangle getHeaderRect(int column) {
   881             private JTable table;
   887             private JTable table;
   882 
   888 
   883             /**
   889             /**
   884              *  Constructs an AccessiblJTableHeaaderEntry
   890              *  Constructs an AccessiblJTableHeaaderEntry
   885              * @since 1.4
   891              * @since 1.4
       
   892              *
       
   893              * @param c  the column index
       
   894              * @param p  the parent <code>JTableHeader</code>
       
   895              * @param t  the table <code>JTable</code>
   886              */
   896              */
   887             public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) {
   897             public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) {
   888                 parent = p;
   898                 parent = p;
   889                 column = c;
   899                 column = c;
   890                 table = t;
   900                 table = t;