Package org.fest.swing.driver
Class JTableLocation
java.lang.Object
org.fest.swing.driver.JTableLocation
Understands a visible location on a
JTable
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncellBounds
(JTable table, int row, int column) Returns the bounds of the given row and column.cellBounds
(JTable table, TableCell cell) Returns the bounds of the given cell.Converts the given row and column into a coordinate pair.
-
Constructor Details
-
JTableLocation
public JTableLocation()
-
-
Method Details
-
pointAt
Converts the given row and column into a coordinate pair. It is assumed that the row and column indices are in the
's bounds.JTable
Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Parameters:
table
- the targetJTable
.row
- the given row.column
- the given column.- Returns:
- the coordinates of the given row and column.
-
cellBounds
Returns the bounds of the given cell.Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Parameters:
table
- the targetJTable
.cell
- the given cell.- Returns:
- the bounds of the given cell.
-
cellBounds
Returns the bounds of the given row and column.Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Parameters:
table
- the targetJTable
.row
- the given row.column
- the given column.- Returns:
- the bounds of the given row and column.
-