| Constructor and Description |
|---|
CartesianPosition(int x,
int y)
JSON-driven constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this position for transmission or persistence.
|
int |
x()
Obtain the X-coordinate of this position.
|
int |
y()
Obtain the Y-coordinate of this position.
|
@JSONMethod(value={"x","y"}) public CartesianPosition(int x, int y)
x - X-coordinatey - Y-coordinatepublic JSONLiteral encode(EncodeControl control)
public int x()
public int y()
Copyright © 2017. All rights reserved.