Public Member Functions | |
PenSample (double xVal, double yVal, int f, long ts) | |
PenSample (double theX, double theY, int theForce, long theTimestamp, boolean isPenUp) | |
double | getDistanceFrom (PenSample otherSample) |
int | getForce () |
Date | getTime () |
long | getTimestamp () |
double | getX () |
double | getY () |
boolean | isPenUp () |
void | setForce (int f) |
void | setPenUp (boolean b) |
Does this sample represent a Pen Up? Perhaps we should subclass PenSample, instead of storing another field in here? It seems a little wasteful if most samples are not pen up samples. | |
void | setTimestamp (long t) |
void | setX (double xVal) |
void | setY (double yVal) |
String | toCommaSeparatedString () |
String | toString () |
String | toXMLString () |
So far, this is used when communicating with Flash in real time. | |
Public Attributes | |
int | force |
measure of force from pen tip | |
boolean | penUp |
whether pen is up | |
long | timestamp |
timestamp of server when received | |
double | x |
x location of the point, in physical Anoto coordinates TODO: Make these private later. | |
double | y |
y location of the point, in physical Anoto coordinates |
This software is distributed under the BSD License.
Joel Brandt
Definition at line 22 of file PenSample.java.
PenSample | ( | double | xVal, | |
double | yVal, | |||
int | f, | |||
long | ts | |||
) |
PenSample | ( | double | theX, | |
double | theY, | |||
int | theForce, | |||
long | theTimestamp, | |||
boolean | isPenUp | |||
) |
theX | ||
theY | ||
theForce | hehehe. | |
theTimestamp | ||
isPenUp |
Definition at line 72 of file PenSample.java.
References PenSample.force, PenSample.penUp, PenSample.timestamp, PenSample.x, and PenSample.y.
int getForce | ( | ) |
Definition at line 87 of file PenSample.java.
References PenSample.force.
Referenced by RegionComponent.RegionComponent().
Date getTime | ( | ) |
long getTimestamp | ( | ) |
double getX | ( | ) |
Definition at line 108 of file PenSample.java.
References PenSample.x.
Referenced by StreamedPatternCoordinates.StreamedPatternCoordinates(), and SketchToPaperUI.translate().
double getY | ( | ) |
Definition at line 115 of file PenSample.java.
References PenSample.y.
Referenced by StreamedPatternCoordinates.StreamedPatternCoordinates(), and SketchToPaperUI.translate().
boolean isPenUp | ( | ) |
Definition at line 122 of file PenSample.java.
References PenSample.penUp.
Referenced by PenSample.toCommaSeparatedString(), PenSample.toString(), and PenSample.toXMLString().
void setForce | ( | int | f | ) |
void setPenUp | ( | boolean | b | ) |
Does this sample represent a Pen Up? Perhaps we should subclass PenSample, instead of storing another field in here? It seems a little wasteful if most samples are not pen up samples.
=\
b |
Definition at line 139 of file PenSample.java.
References PenSample.penUp.
Referenced by PenSimulator.mouseReleased().
void setTimestamp | ( | long | t | ) |
void setX | ( | double | xVal | ) |
void setY | ( | double | yVal | ) |
String toCommaSeparatedString | ( | ) |
Definition at line 167 of file PenSample.java.
References PenSample.force, PenSample.isPenUp(), PenSample.timestamp, PenSample.x, and PenSample.y.
String toString | ( | ) |
Definition at line 178 of file PenSample.java.
References PenSample.force, PenSample.isPenUp(), PenSample.timestamp, PenSample.x, and PenSample.y.
String toXMLString | ( | ) |
So far, this is used when communicating with Flash in real time.
Definition at line 188 of file PenSample.java.
References PenSample.force, PenSample.isPenUp(), PenSample.timestamp, PenSample.x, and PenSample.y.
Referenced by FlashWhiteboard.addPen().
double x |
x location of the point, in physical Anoto coordinates TODO: Make these private later.
..
Definition at line 47 of file PenSample.java.
Referenced by InkStroke.addSample(), ShapeContext.blendHelper(), GestureDatabase.display(), GestureDatabase.generateGesture(), ShapeContext.generateShapeHistogram(), PenSample.getDistanceFrom(), PenSample.getX(), ShapeContext.logPolarAndTime(), PenSample.PenSample(), InkSimplification.processNewSample(), PenSample.setX(), ShapeContext.tangent(), PenSample.toCommaSeparatedString(), PenSample.toString(), and PenSample.toXMLString().