public class Location
extends java.lang.Object
Constructor and Description |
---|
Location(int k,
int x,
int y)
Instantiate a Location using k, the plane, and (x,y), the location in the plane
|
Location(int k,
java.awt.Point n)
Instantiate a Location using k, the plane, and n, the location in the plane
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getPlane()
Get which plane the specific cell is located within.
|
java.awt.Point |
getPoint()
Get where the cell is within the plane
|
void |
setPoint(java.awt.Point p)
Set where the cell is within a specific plane
|
public Location(int k, int x, int y)
k
- The specific plane within the layerx
- The specific location within the plane. Sometimes called n.y
- The specific location within the plane. Sometimes called m.public Location(int k, java.awt.Point n)
k
- The specific plane within the layer.n
- The specific location within the plane.public int getPlane()
public java.awt.Point getPoint()
public void setPoint(java.awt.Point p)
p
- New point within the plane value.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object