|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpalmed.edit.util.Coordinate
public final class Coordinate
This class encapsulates a two integers coordinate.
| Field Summary | |
|---|---|
int |
x_
The abcissa value. |
int |
y_
The ordinate value. |
| Constructor Summary | |
|---|---|
Coordinate()
Create a coordinate (0,0). |
|
Coordinate(int x,
int y)
Create a coordinate (x,y). |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
int |
hashCode()
|
boolean |
lessThan(Coordinate other)
Test if the coordinate is less than another. |
void |
marshall(java.io.OutputStream stream)
Write to an output stream. |
java.lang.String |
toString()
|
void |
unmarshall(java.io.InputStream stream)
Read from an input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int x_
public int y_
| Constructor Detail |
|---|
public Coordinate()
public Coordinate(int x,
int y)
x - abcissay - ordinate| Method Detail |
|---|
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean lessThan(Coordinate other)
other - the other coordinate
public java.lang.String toString()
toString in class java.lang.Object
public void unmarshall(java.io.InputStream stream)
throws java.io.IOException
unmarshall in interface ISerializablestream - the stream to read from
java.io.IOException - an io exception occurs
public void marshall(java.io.OutputStream stream)
throws java.io.IOException
marshall in interface ISerializablestream - the stream to write to
java.io.IOException - an io exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||