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, parseValue
protected 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 ComponentLocation
protected Point cellToPoint(JTable table, int row, int col)
public Point getPoint(Component c)
ComponentLocation
getPoint
in class ComponentLocation
public JTableLocation.Cell getCell(JTable table)
public Rectangle getBounds(Component c)
ComponentLocation
Component
. 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 ComponentLocation
public boolean equals(Object o)
ComponentLocation
ComponentLocation
.equals
in class ComponentLocation
public String toString()
toString
in class ComponentLocation
public ComponentLocation parse(String encoded)
ComponentLocation
parse
in class ComponentLocation
Abbot is hosted on