public class GraphPosition extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
GraphPosition() |
|
GraphPosition(int x,
int y) |
|
GraphPosition(org.json.JSONObject position) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(GraphPosition graphPosition) |
boolean |
equals(Object o) |
static GraphPosition |
fromJSONObject(org.json.JSONObject json) |
int |
getX() |
int |
getY() |
int |
hashCode() |
void |
setX(int x) |
void |
setY(int y) |
void |
subtract(GraphPosition graphPosition) |
org.json.JSONObject |
toJSONObject() |
String |
toString() |
protected GraphPosition()
public GraphPosition(org.json.JSONObject position)
public GraphPosition(int x,
int y)
public int getX()
public void setX(int x)
public int getY()
public void setY(int y)
public void add(GraphPosition graphPosition)
public void subtract(GraphPosition graphPosition)
public org.json.JSONObject toJSONObject()
public static GraphPosition fromJSONObject(org.json.JSONObject json)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.