public class Position extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LEFT
An indicator that a Location is to the
left of a GraphComponent
|
static int |
ON
An indicator that a Location is
on a GraphComponent
|
static int |
RIGHT
An indicator that a Location is to the
right of a GraphComponent
|
| Constructor and Description |
|---|
Position()
|
| Modifier and Type | Method and Description |
|---|---|
static int |
opposite(int position)
Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.
|
public static final int ON
public static final int LEFT
public static final int RIGHT