BatchedPatternCoordinates Class Reference

Inheritance diagram for BatchedPatternCoordinates:

Coordinates List of all members.

Public Member Functions

 BatchedPatternCoordinates (int theSegment, int theShelf, int theBook, int thePage, PatternDots xCoord, PatternDots yCoord)
String getAddress ()
int getBook ()
int getPage ()
int getSegment ()
int getShelf ()
PatternDots getX ()
double getXVal ()
PatternDots getY ()
double getYVal ()
void setX (PatternDots xCoord)
void setX (Units xCoord)
void setY (PatternDots yCoord)
void setY (Units yCoord)
String toString ()

Detailed Description

Represents a location in the Anoto LOGICAL coordinate space. We can only get these coordinates through docking the pen into the cradle. Each coordinate is actually bound to a PAD file which has translated the physical coordinates into page addresses. Thus, we need to store physical addresses along with the Batched Coordinate.

Batched coordinates look like 21.3.23.24 [306.625, 240.000]

This software is distributed under the BSD License.

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

Definition at line 23 of file BatchedPatternCoordinates.java.


Constructor & Destructor Documentation

BatchedPatternCoordinates ( int  theSegment,
int  theShelf,
int  theBook,
int  thePage,
PatternDots  xCoord,
PatternDots  yCoord 
)

Parameters:
xCoord 
yCoord 

Definition at line 37 of file BatchedPatternCoordinates.java.


Member Function Documentation

PatternDots getX (  ) 

Returns:

Reimplemented from Coordinates.

Definition at line 69 of file BatchedPatternCoordinates.java.

References Coordinates.x.

double getXVal (  ) 

Returns:
The x value of this streamed coordinate.

Definition at line 76 of file BatchedPatternCoordinates.java.

References Units.getValue(), and Coordinates.x.

PatternDots getY (  ) 

Returns:
The y value of this streamed coordinate.

Reimplemented from Coordinates.

Definition at line 83 of file BatchedPatternCoordinates.java.

References Coordinates.y.

double getYVal (  ) 

Returns:

Definition at line 90 of file BatchedPatternCoordinates.java.

References Units.getValue(), and Coordinates.y.

void setX ( Units  xCoord  ) 

See also:
edu.stanford.hci.r3.units.coordinates.Coordinates.setX(edu.stanford.hci.r3.units.Units)

Reimplemented from Coordinates.

Definition at line 104 of file BatchedPatternCoordinates.java.

References Coordinates.x.

void setX ( PatternDots  xCoord  ) 

Parameters:
xCoord 

Definition at line 97 of file BatchedPatternCoordinates.java.

References Coordinates.x.

void setY ( Units  yCoord  ) 

See also:
edu.stanford.hci.r3.units.coordinates.Coordinates.setY(edu.stanford.hci.r3.units.Units)

Reimplemented from Coordinates.

Definition at line 123 of file BatchedPatternCoordinates.java.

References Coordinates.y.

void setY ( PatternDots  yCoord  ) 

Parameters:
yCoord 

Definition at line 116 of file BatchedPatternCoordinates.java.

References Coordinates.y.

String toString (  ) 

See also:
edu.stanford.hci.r3.units.coordinates.Coordinates.toString()

Reimplemented from Coordinates.

Definition at line 135 of file BatchedPatternCoordinates.java.

References BatchedPatternCoordinates.getAddress(), 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