|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--satin.aro.AROrectangle
public class AROrectangle
extends java.lang.ObjectA simple immutable rectangle for use in ARO requests. This class encapsulates the syntax for using rectangles in ARO requests. A rectangle is represented in the ARO protocol syntax as a compound datum whose ARO data type is "rect", and which contains four integer elements named, in order, "left", "top", "right", and "bottom". It defines a rectangle, orthogonal to its coordinate space, defined by the points (left, top), (right, top), (left, bottom), and (right, bottom).
AROrectangle transformRect (AROrectangle r)
{
AROoutgoingRequest req = new AROoutgoingRequest("TransformRect");
r.addTo(req);
AROincomingResponse reply = server.makeRequestAndThrow(req);
return new AROrectangle(reply, 0);
}
| Field Summary | |
final int |
bottom
Always >= top. |
final int |
left
Always <= right. |
final int |
right
Always >= left. |
final int |
top
Always <= bottom. |
| Constructor Summary | |
AROrectangle(AROcompoundDatum datum,
int position)
Constructs a rectangle from the given data element. |
|
AROrectangle(AROcompoundDatum datum,
int position,
java.lang.String paramName)
Constructs a rectangle from the given data element. |
|
| Method Summary | |
void |
addTo(AROoutgoingData data)
Adds a rectangle to the given data. |
static void |
addTo(AROoutgoingData data,
int left,
int top,
int right,
int bottom)
Adds a rectangle to the given data. |
static void |
addTo(AROoutgoingData data,
int left,
int top,
int right,
int bottom,
java.lang.String paramName)
Adds a rectangle to the given data. |
void |
addTo(AROoutgoingData data,
java.lang.String paramName)
Adds a rectangle 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 left
public final int top
public final int right
public final int bottom
| Constructor Detail |
public AROrectangle(AROcompoundDatum datum,
int position,
java.lang.String paramName)
datumpositionparamName
public AROrectangle(AROcompoundDatum datum,
int position)
datumposition| Method Detail |
public void addTo(AROoutgoingData data)
data
public void addTo(AROoutgoingData data,
java.lang.String paramName)
dataparamName
public static void addTo(AROoutgoingData data,
int left,
int top,
int right,
int bottom,
java.lang.String paramName)
lefttoprightbottomdataparamName
public static void addTo(AROoutgoingData data,
int left,
int top,
int right,
int bottom)
lefttoprightbottomdatapublic 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 | ||||||||
AROrectangle.java (PRIVATE SOURCES)