public final class JTableLocation extends Object
JTable
.Constructor and Description |
---|
JTableLocation() |
Modifier and Type | Method and Description |
---|---|
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.
|
@RunsInCurrentThread @Nonnull public Point pointAt(@Nonnull 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 accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
table
- the target JTable
.row
- the given row.column
- the given column.@RunsInCurrentThread @Nonnull public Rectangle cellBounds(@Nonnull JTable table, @Nonnull TableCell cell)
Returns the bounds of the given cell.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
table
- the target JTable
.cell
- the given cell.@RunsInCurrentThread @Nonnull public Rectangle cellBounds(JTable table, int row, int column)
Returns the bounds of the given row and column.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
table
- the target JTable
.row
- the given row.column
- the given column.Copyright © 2014–2019 AssertJ. All rights reserved.