Class JTableLocation

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

public final class JTableLocation extends Object
Understands a visible location on a JTable.
  • Constructor Details

    • JTableLocation

      public JTableLocation()
  • Method Details

    • 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 executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in 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 executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in 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 executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

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