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, parseValue
protected 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 ComponentLocation
protected 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)
ComponentLocation
Point
relative to the given Component
.getPoint
in class ComponentLocation
public JTableLocation.Cell getCell(javax.swing.JTable table)
public java.awt.Rectangle getBounds(java.awt.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(java.lang.Object o)
ComponentLocation
ComponentLocation
.equals
in class ComponentLocation
public java.lang.String toString()
toString
in class ComponentLocation
public ComponentLocation parse(java.lang.String encoded)
ComponentLocation
parse
in class ComponentLocation
Abbot is hosted on