public class ObjectLocation extends java.awt.geom.Point2D.Float implements java.io.Serializable, java.lang.Comparable<ObjectLocation>
Modifier and Type | Field and Description |
---|---|
int |
frame |
Constructor and Description |
---|
ObjectLocation(float x,
float y) |
ObjectLocation(float x,
float y,
int frame) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ObjectLocation o) |
static ObjectLocation |
read(java.lang.String s)
Converts a whitespace-split floating-point x-y coordinate string to
ObjectLocation.
|
getX, getY, setLocation, setLocation, toString
public ObjectLocation(float x, float y, int frame)
public ObjectLocation(float x, float y)
public static ObjectLocation read(java.lang.String s)
s
- public int compareTo(ObjectLocation o)
compareTo
in interface java.lang.Comparable<ObjectLocation>