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 java.lang.String |
value |
CENTER| Constructor and Description |
|---|
JTableLocation() |
JTableLocation(int row,
int col) |
JTableLocation(java.awt.Point p) |
JTableLocation(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
badFormat(java.lang.String encoded) |
protected java.awt.Point |
cellToPoint(javax.swing.JTable table,
int row,
int col)
Convert the given row, col into a coordinate pair.
|
boolean |
equals(java.lang.Object o)
Returns whether the given object is an equivalent
ComponentLocation. |
java.awt.Rectangle |
getBounds(java.awt.Component c)
Convert the abstract location into a concrete area, relative
to the given
Component. |
JTableLocation.Cell |
getCell(javax.swing.JTable table) |
protected java.awt.Rectangle |
getCellBounds(javax.swing.JTable table,
int row,
int col) |
java.awt.Point |
getPoint(java.awt.Component c)
Convert the abstract location into a concrete one.
|
ComponentLocation |
parse(java.lang.String encoded)
Convert the given encoding into the proper location.
|
java.lang.String |
toString() |
encodeIndex, encodeValue, isIndex, isValue, parseIndex, parseValueprotected java.lang.String value
protected JTableLocation.Cell cell
public JTableLocation()
public JTableLocation(java.lang.String value)
public JTableLocation(int row,
int col)
public JTableLocation(java.awt.Point p)
protected java.lang.String badFormat(java.lang.String encoded)
badFormat in class ComponentLocationprotected java.awt.Point cellToPoint(javax.swing.JTable table,
int row,
int col)
protected java.awt.Rectangle getCellBounds(javax.swing.JTable table,
int row,
int col)
public java.awt.Point getPoint(java.awt.Component c)
ComponentLocationPoint relative to the given Component.getPoint in class ComponentLocationpublic JTableLocation.Cell getCell(javax.swing.JTable table)
public java.awt.Rectangle getBounds(java.awt.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(java.lang.Object o)
ComponentLocationComponentLocation.equals in class ComponentLocationpublic java.lang.String toString()
toString in class ComponentLocationpublic ComponentLocation parse(java.lang.String encoded)
ComponentLocationparse in class ComponentLocation
Abbot is hosted on