public class JTableLocation extends ComponentLocation
| Modifier and Type | Class and Description |
|---|---|
static class |
JTableLocation.Cell |
| Modifier and Type | Field and Description |
|---|---|
protected JTableLocation.Cell |
cell |
protected String |
value |
CENTER| Constructor and Description |
|---|
JTableLocation() |
JTableLocation(int row,
int col) |
JTableLocation(Point p) |
JTableLocation(String value) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
badFormat(String encoded) |
protected Point |
cellToPoint(JTable table,
int row,
int col)
Convert the given row, col into a coordinate pair.
|
boolean |
equals(Object o)
Returns whether the given object is an equivalent
ComponentLocation. |
Rectangle |
getBounds(Component c)
Convert the abstract location into a concrete area, relative
to the given
Component. |
JTableLocation.Cell |
getCell(JTable table) |
protected Rectangle |
getCellBounds(JTable table,
int row,
int col) |
Point |
getPoint(Component c)
Convert the abstract location into a concrete one.
|
ComponentLocation |
parse(String encoded)
Convert the given encoding into the proper location.
|
String |
toString() |
encodeIndex, encodeValue, isIndex, isValue, parseIndex, parseValueprotected String value
protected JTableLocation.Cell cell
public JTableLocation()
public JTableLocation(String value)
public JTableLocation(int row,
int col)
public JTableLocation(Point p)
protected String badFormat(String encoded)
badFormat in class ComponentLocationprotected Point cellToPoint(JTable table, int row, int col)
public Point getPoint(Component c)
ComponentLocationgetPoint in class ComponentLocationpublic JTableLocation.Cell getCell(JTable table)
public Rectangle getBounds(Component c)
ComponentLocationComponent. If a point has
been specified, returns a 1x1 rectangle, otherwise returns the
a rectangle at (0, 0) of the Component's size.getBounds in class ComponentLocationpublic boolean equals(Object o)
ComponentLocationComponentLocation.equals in class ComponentLocationpublic String toString()
toString in class ComponentLocationpublic ComponentLocation parse(String encoded)
ComponentLocationparse in class ComponentLocation
Abbot is hosted on