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

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

public class BatchedPatternCoordinates
extends Coordinates

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.


Field Summary
 
Fields inherited from class edu.stanford.hci.r3.units.coordinates.Coordinates
x, y
 
Constructor Summary
BatchedPatternCoordinates(int theSegment, int theShelf, int theBook, int thePage, PatternDots xCoord, PatternDots yCoord)
           
 
Method Summary
 java.lang.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)
          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

BatchedPatternCoordinates

public BatchedPatternCoordinates(int theSegment,
                                 int theShelf,
                                 int theBook,
                                 int thePage,
                                 PatternDots xCoord,
                                 PatternDots yCoord)
Parameters:
xCoord -
yCoord -
Method Detail

getAddress

public java.lang.String getAddress()

getBook

public int getBook()

getPage

public int getPage()

getSegment

public int getSegment()

getShelf

public int getShelf()

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