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