|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.moioli.chart.IntPoint
public class IntPoint
Represents a point on a cartesian plane with integer coordinate.
Field Summary | |
---|---|
int |
x
The x coordinate. |
int |
y
The y coordinate. |
Constructor Summary | |
---|---|
IntPoint()
Constructs the point (0,0). |
|
IntPoint(int x,
int y)
Standard constructor. |
|
IntPoint(IntPoint p)
Copy constructor. |
Method Summary | |
---|---|
double |
getX()
Returns x. |
double |
getY()
Returns y. |
void |
setX(int x)
Sets the x value. |
void |
setY(int y)
Sets the y value. |
java.lang.String |
toString()
Returns a representaive string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int x
public int y
Constructor Detail |
---|
public IntPoint()
public IntPoint(IntPoint p)
p
- the point to be copiedpublic IntPoint(int x, int y)
x
- the point's x coordinatey
- the point's y coordinateMethod Detail |
---|
public double getX()
public double getY()
public java.lang.String toString()
toString
in class java.lang.Object
public void setX(int x)
x
- the new x coordinatepublic void setY(int y)
y
- the new y coordinate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |