edu.stanford.hci.r3.units.coordinates
Class BatchedPatternCoordinates
java.lang.Object
edu.stanford.hci.r3.units.coordinates.Coordinates
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.
Fields inherited from class edu.stanford.hci.r3.units.coordinates.Coordinates |
x, y |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BatchedPatternCoordinates
public BatchedPatternCoordinates(int theSegment,
int theShelf,
int theBook,
int thePage,
PatternDots xCoord,
PatternDots yCoord)
- Parameters:
xCoord
- yCoord
-
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()