|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.clocksketch.model.Point
public abstract class Point
Abstract class for a point- a single point created by the pen. Outlines methods a point should have to set/read: X coordinate Y coordinate Pressure (the amount of pressure applied for that point) Time stamp Label
| Constructor Summary | |
|---|---|
Point()
|
|
| Method Summary | |
|---|---|
abstract boolean |
comesAfter(Point point2)
Returns true iff this Point comes after point2 in time Returns false if the two points' times are equal |
abstract boolean |
comesBefore(Point point2)
Returns true iff this Point comes before point2 in time. |
abstract boolean |
equals(java.lang.Object o)
Returns true iff the Point equals another Point. |
abstract double |
getDistance(Point secondPoint)
Finds the Euclidian distance between this Point and another |
abstract double |
getDistance(java.awt.geom.Point2D secondPoint)
|
abstract java.lang.String |
getLabel()
Returns a point's label |
abstract double[] |
getPolarCoordinate(Point centerPoint)
|
abstract double[] |
getPolarCoordinate(java.awt.geom.Point2D centerPoint)
Finds the polar coordinate of a point with respect to the centerPoint |
abstract int |
getPressure()
Returns the pressure of the point |
abstract long |
getUNIXTimeStamp()
Returns a UNIX time stamp; |
abstract double |
getX()
Returns the X coordinate |
abstract double |
getY()
Returns the Y coordinate |
abstract boolean |
isExtrapolated()
Returns true if the point was generated and actually obtained from real data |
abstract boolean |
isHooklet()
Returns true if the point is considered a hooklet |
abstract void |
setHooklet(boolean status)
Set's the Point's hooklet status |
abstract void |
setLabel(java.lang.String label)
Assigns a label to the point |
abstract void |
setPressure(int pressure)
Sets the pressure of the point |
abstract void |
setUNIXTimeStamp(long timeStamp)
Sets the time stamp of the point |
abstract void |
setX(double x)
Sets the X coordinate of the point. |
abstract void |
setY(double y)
Sets the Y coordinate of the point |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public Point()
| Method Detail |
|---|
public abstract double getX()
public abstract void setX(double x)
x - public abstract double getY()
public abstract void setY(double y)
y - public abstract int getPressure()
public abstract void setPressure(int pressure)
pressure - public abstract long getUNIXTimeStamp()
public abstract void setUNIXTimeStamp(long timeStamp)
timeStamp - public abstract boolean comesBefore(Point point2)
point2 - public abstract boolean comesAfter(Point point2)
point2 - public abstract boolean isExtrapolated()
public abstract boolean isHooklet()
public abstract void setHooklet(boolean status)
status - public abstract void setLabel(java.lang.String label)
label - public abstract java.lang.String getLabel()
public abstract double getDistance(Point secondPoint)
secondPoint -
public abstract double[] getPolarCoordinate(java.awt.geom.Point2D centerPoint)
centerPoint -
public abstract double[] getPolarCoordinate(Point centerPoint)
public abstract boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic abstract double getDistance(java.awt.geom.Point2D secondPoint)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||