org.fest.swing.driver
Class JTableLocation

java.lang.Object
  extended by org.fest.swing.driver.JTableLocation

public final class JTableLocation
extends Object

Understands a visible location on a JTable.

Author:
Yvonne Wang, Alex Ruiz

Constructor Summary
JTableLocation()
           
 
Method Summary
 Rectangle cellBounds(JTable table, int row, int column)
          Returns the bounds of the given row and column.
 Rectangle cellBounds(JTable table, TableCell cell)
          Returns the bounds of the given cell.
 Point pointAt(JTable table, int row, int column)
          Converts the given row and column into a coordinate pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTableLocation

public JTableLocation()
Method Detail

pointAt

@RunsInCurrentThread
public Point pointAt(JTable table,
                                         int row,
                                         int column)
Converts the given row and column into a coordinate pair. It is assumed that the row and column indices are in the JTable's bounds.

Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.

Parameters:
table - the target JTable.
row - the given row.
column - the given column.
Returns:
the coordinates of the given row and column.

cellBounds

@RunsInCurrentThread
public Rectangle cellBounds(JTable table,
                                                TableCell cell)
Returns the bounds of the given cell.

Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.

Parameters:
table - the target JTable.
cell - the given cell.
Returns:
the bounds of the given cell.

cellBounds

@RunsInCurrentThread
public Rectangle cellBounds(JTable table,
                                                int row,
                                                int column)
Returns the bounds of the given row and column.

Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.

Parameters:
table - the target JTable.
row - the given row.
column - the given column.
Returns:
the bounds of the given row and column.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.