edu.stanford.hci.r3.units.coordinates
Class StreamedPatternCoordinates

java.lang.Object
  extended by edu.stanford.hci.r3.units.coordinates.Coordinates
      extended by edu.stanford.hci.r3.units.coordinates.StreamedPatternCoordinates

public class StreamedPatternCoordinates
extends Coordinates

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.


Field Summary
 
Fields inherited from class edu.stanford.hci.r3.units.coordinates.Coordinates
x, y
 
Constructor Summary
StreamedPatternCoordinates(PatternDots xCoord, PatternDots yCoord)
           
StreamedPatternCoordinates(PenSample sample)
          Constructs one of these from the streaming pen sample.
 
Method Summary
 PatternDots getX()
           
 double getXVal()
           
 PatternDots getY()
           
 double getYVal()
           
 void setX(PatternDots xCoord)
           
 void setX(Units xCoord)
          Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!
 void setY(PatternDots yCoord)
           
 void setY(Units yCoord)
          Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamedPatternCoordinates

public StreamedPatternCoordinates(PatternDots xCoord,
                                  PatternDots yCoord)
Parameters:
xCoord -
yCoord -

StreamedPatternCoordinates

public StreamedPatternCoordinates(PenSample sample)
Constructs one of these from the streaming pen sample.

Parameters:
sample -
Method Detail

getX

public PatternDots getX()
Overrides:
getX in class Coordinates
Returns:

getXVal

public double getXVal()
Returns:
The x value of this streamed coordinate.

getY

public PatternDots getY()
Overrides:
getY in class Coordinates
Returns:
The y value of this streamed coordinate.

getYVal

public double getYVal()
Returns:

setX

public void setX(PatternDots xCoord)
Parameters:
xCoord -

setX

public void setX(Units xCoord)
Description copied from class: Coordinates
Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!

Overrides:
setX in class Coordinates
See Also:
Coordinates.setX(edu.stanford.hci.r3.units.Units)

setY

public void setY(PatternDots yCoord)
Parameters:
yCoord -

setY

public void setY(Units yCoord)
Description copied from class: Coordinates
Subclasses of Coordinates should verify that the passed-in unit is in fact of the right type!

Overrides:
setY in class Coordinates
See Also:
Coordinates.setY(edu.stanford.hci.r3.units.Units)

toString

public java.lang.String toString()
Overrides:
toString in class Coordinates
See Also:
Coordinates.toString()

Copyright 2006 Stanford University