Coordinates Class Reference

Inheritance diagram for Coordinates:

BatchedPatternCoordinates PercentageCoordinates StreamedPatternCoordinates List of all members.

Public Member Functions

 Coordinates (Units xCoord, Units yCoord)
Units getX ()
Units getY ()
void setX (Units xCoord)
 Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!
void setY (Units yCoord)
 Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!
String toString ()

Protected Attributes

Units x
 X Value of this coordinate.
Units y
 Y Value of this coordinate.

Detailed Description

A point in 2D space.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 16 of file Coordinates.java.


Constructor & Destructor Documentation

Coordinates ( Units  xCoord,
Units  yCoord 
)

Parameters:
x 
y 

Definition at line 32 of file Coordinates.java.

References Coordinates.x, and Coordinates.y.


Member Function Documentation

Units getX (  ) 

Returns:

Reimplemented in BatchedPatternCoordinates, and StreamedPatternCoordinates.

Definition at line 40 of file Coordinates.java.

References Coordinates.x.

Referenced by CompoundRegion.addChild(), RegionGroup.addRegion(), InkCollector.handleEvent(), HandwritingRecognizer.handleEvent(), FlowPaperLayout.layout(), FlowPaperLayout.layoutRegionGroups(), SheetRenderer.renderToG2D(), PDFSheetRenderer.renderToG2D(), and CompoundRenderer.renderToG2D().

Units getY (  ) 

Returns:

Reimplemented in BatchedPatternCoordinates, and StreamedPatternCoordinates.

Definition at line 47 of file Coordinates.java.

References Coordinates.y.

Referenced by CompoundRegion.addChild(), RegionGroup.addRegion(), InkCollector.handleEvent(), HandwritingRecognizer.handleEvent(), FlowPaperLayout.layout(), FlowPaperLayout.layoutRegionGroups(), SheetRenderer.renderToG2D(), PDFSheetRenderer.renderToG2D(), and CompoundRenderer.renderToG2D().

void setX ( Units  xCoord  ) 

Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!

Parameters:
xCoord 

Reimplemented in BatchedPatternCoordinates, PercentageCoordinates, and StreamedPatternCoordinates.

Definition at line 56 of file Coordinates.java.

References Coordinates.x.

void setY ( Units  yCoord  ) 

Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!

Parameters:
yCoord 

Reimplemented in BatchedPatternCoordinates, PercentageCoordinates, and StreamedPatternCoordinates.

Definition at line 65 of file Coordinates.java.

References Coordinates.y.

String toString (  ) 

See also:
java.lang.Object.toString()

Reimplemented in BatchedPatternCoordinates, PercentageCoordinates, and StreamedPatternCoordinates.

Definition at line 72 of file Coordinates.java.

References Units.toString(), Coordinates.x, and Coordinates.y.


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:45 2007 for R3 Paper Toolkit by  doxygen 1.4.7