StreamedPatternCoordinates Class Reference

Inheritance diagram for StreamedPatternCoordinates:

Coordinates List of all members.

Public Member Functions

 StreamedPatternCoordinates (PatternDots xCoord, PatternDots yCoord)
 StreamedPatternCoordinates (PenSample sample)
 Constructs one of these from the streaming pen sample.
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 PHYSICAL coordinate space. We can only get these coordinates through streaming. Batched coordinates will have to operate differently, as they will be bound to a PAD file which has translated the physical coordinates into page addresses.

This software is distributed under the BSD License.

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

Definition at line 20 of file StreamedPatternCoordinates.java.


Constructor & Destructor Documentation

StreamedPatternCoordinates ( PatternDots  xCoord,
PatternDots  yCoord 
)

Parameters:
xCoord 
yCoord 

Definition at line 26 of file StreamedPatternCoordinates.java.

StreamedPatternCoordinates ( PenSample  sample  ) 

Constructs one of these from the streaming pen sample.

Parameters:
sample 

Definition at line 35 of file StreamedPatternCoordinates.java.

References PenSample.getX(), and PenSample.getY().


Member Function Documentation

PatternDots getX (  ) 

Returns:

Reimplemented from Coordinates.

Definition at line 42 of file StreamedPatternCoordinates.java.

References Coordinates.x.

double getXVal (  ) 

Returns:
The x value of this streamed coordinate.

Definition at line 49 of file StreamedPatternCoordinates.java.

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

Referenced by TiledPatternCoordinateConverter.contains(), FlexiblePatternCoordinateConverter.contains(), TiledPattern.getOriginXInDots(), TiledPatternCoordinateConverter.getRelativeLocation(), FlexiblePatternCoordinateConverter.getRelativeLocation(), and TiledPattern.TiledPattern().

PatternDots getY (  ) 

Returns:
The y value of this streamed coordinate.

Reimplemented from Coordinates.

Definition at line 56 of file StreamedPatternCoordinates.java.

References Coordinates.y.

double getYVal (  ) 

Returns:

Definition at line 63 of file StreamedPatternCoordinates.java.

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

Referenced by TiledPatternCoordinateConverter.contains(), FlexiblePatternCoordinateConverter.contains(), TiledPattern.getOriginYInDots(), TiledPatternCoordinateConverter.getRelativeLocation(), FlexiblePatternCoordinateConverter.getRelativeLocation(), and TiledPattern.TiledPattern().

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 77 of file StreamedPatternCoordinates.java.

References Coordinates.x.

void setX ( PatternDots  xCoord  ) 

Parameters:
xCoord 

Definition at line 70 of file StreamedPatternCoordinates.java.

References Coordinates.x.

Referenced by TiledPattern.TiledPattern().

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 96 of file StreamedPatternCoordinates.java.

References Coordinates.y.

void setY ( PatternDots  yCoord  ) 

Parameters:
yCoord 

Definition at line 89 of file StreamedPatternCoordinates.java.

References Coordinates.y.

Referenced by TiledPattern.TiledPattern().

String toString (  ) 

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

Reimplemented from Coordinates.

Definition at line 108 of file StreamedPatternCoordinates.java.

References 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