public class JListLocation extends ComponentLocation
CENTER| Constructor and Description |
|---|
JListLocation()
The center of the target list.
|
JListLocation(int row)
Specify location by row in the list.
|
JListLocation(java.lang.Object value)
Specify location by explicit reference to an object.
|
JListLocation(java.awt.Point where)
Specify a location by component-relative coordinate.
|
JListLocation(java.lang.String value)
Specify location by string representation of an object.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
badFormat(java.lang.String encoded) |
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. |
int |
getIndex(javax.swing.JList list) |
java.awt.Point |
getPoint(java.awt.Component c)
Return a concrete point for the abstract location.
|
protected java.awt.Point |
indexToPoint(javax.swing.JList list,
int index)
Convert the given index into a coordinate.
|
ComponentLocation |
parse(java.lang.String encoded)
Convert the given encoding into the proper location.
|
java.lang.String |
toString() |
encodeIndex, encodeValue, isIndex, isValue, parseIndex, parseValuepublic JListLocation()
public JListLocation(java.lang.Object value)
public JListLocation(java.lang.String value)
public JListLocation(int row)
public JListLocation(java.awt.Point where)
protected java.lang.String badFormat(java.lang.String encoded)
badFormat in class ComponentLocationprotected java.awt.Point indexToPoint(javax.swing.JList list,
int index)
public int getIndex(javax.swing.JList list)
public java.awt.Point getPoint(java.awt.Component c)
getPoint in class ComponentLocationpublic 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