|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--satin.aro.AROpoint
public class AROpoint
extends java.lang.ObjectA simple immutable point for use in ARO requests. This class encapsulates the syntax for using points in ARO requests. A point is represented in the ARO protocol syntax as a compound datum whose ARO data type is "point", and which contains two integer elements, the first named "x" and the second named "y".
AROpoint transformPoint (AROpoint p)
{
AROoutgoingRequest req = new AROoutgoingRequest("TransformPoint");
p.addTo(req);
AROincomingResponse reply = server.makeRequestAndThrow(req);
return new AROpoint(reply, 0);
}
| Field Summary | |
final int |
x
The X (horizontal) coordinate. |
final int |
y
The Y (vertical) coordinate. |
| Constructor Summary | |
AROpoint(AROcompoundDatum datum,
int position)
Constructs a point from the given data element. |
|
AROpoint(AROcompoundDatum datum,
int position,
java.lang.String paramName)
Constructs a point from the given data element. |
|
AROpoint(int x,
int y)
Simple constructor. |
|
| Method Summary | |
void |
addTo(AROoutgoingData data)
Adds a point to the given data. |
static void |
addTo(AROoutgoingData data,
int x,
int y)
Adds a point to the given data. |
static void |
addTo(AROoutgoingData data,
int x,
int y,
java.lang.String paramName)
Adds a point to the given data. |
void |
addTo(AROoutgoingData data,
java.lang.String paramName)
Adds a point to the given data. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final int x
public final int y
| Constructor Detail |
public AROpoint(int x,
int y)
public AROpoint(AROcompoundDatum datum,
int position,
java.lang.String paramName)
datumpositionparamName
public AROpoint(AROcompoundDatum datum,
int position)
datumposition| Method Detail |
public void addTo(AROoutgoingData data,
java.lang.String paramName)
dataparamNamepublic void addTo(AROoutgoingData data)
data
public static void addTo(AROoutgoingData data,
int x,
int y,
java.lang.String paramName)
xydataparamName
public static void addTo(AROoutgoingData data,
int x,
int y)
xydatapublic java.lang.String toString()
toString in class java.lang.Object| Revision History |
4/6/01 Ed Stauff - changes per initial code review.
4/8/01 Ed Stauff - changed 'add' to 'addTo'.
4/5/01 Ed Stauff - made changes per review.
3/27/01 Ed Stauff - initial review.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
AROpoint.java (PRIVATE SOURCES)