public class ListLocation extends ComponentLocation
CENTER| Constructor and Description |
|---|
ListLocation() |
ListLocation(int row) |
ListLocation(java.awt.Point where) |
ListLocation(java.lang.String value) |
| 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(java.awt.List list) |
java.awt.Point |
getPoint(java.awt.Component c)
Return a concrete point for the abstract location.
|
ComponentLocation |
parse(java.lang.String encoded)
Convert the given encoding into the proper location.
|
java.lang.String |
toString() |
encodeIndex, encodeValue, isIndex, isValue, parseIndex, parseValuepublic ListLocation()
public ListLocation(java.lang.String value)
public ListLocation(int row)
public ListLocation(java.awt.Point where)
protected java.lang.String badFormat(java.lang.String encoded)
badFormat in class ComponentLocationpublic int getIndex(java.awt.List 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