de.softpro.signdocmobile.foundations
Class TabletPoint

java.lang.Object
  extended by de.softpro.signdocmobile.foundations.TabletPoint
All Implemented Interfaces:
java.io.Serializable

public class TabletPoint
extends java.lang.Object
implements java.io.Serializable

TabletPoint represents a single sample point

The TabletPoint class provides the get and set functions for developers.

See Also:
Serialized Form

Constructor Summary
TabletPoint()
          TabletPoint constructs an empty TabletPoint
TabletPoint(float x, float y, float p, long time)
          TabletPoint constructor initialized with parameter list
TabletPoint(TabletPoint src)
          TabletPoint copy constructor
 
Method Summary
 float getPressure()
          get pressure of point
 long getTime()
          get the time the point was captured
 float getX()
          get X coordinate
 float getY()
          get Y coordinate
 boolean isEqual(TabletPoint b)
          Check if two points are equal
 void setPressure(float p)
          set pressure
 void setTime(long time)
          set Time
 void setX(float x)
          set X coordinate
 void setY(float y)
          set Y coordinate
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabletPoint

public TabletPoint()
TabletPoint constructs an empty TabletPoint


TabletPoint

public TabletPoint(TabletPoint src)
TabletPoint copy constructor

Parameters:
src - Tablet point to copy

TabletPoint

public TabletPoint(float x,
                   float y,
                   float p,
                   long time)
TabletPoint constructor initialized with parameter list

Parameters:
x - X -coordinate
y - Y -coordinate
p - pressure
time - time
Method Detail

getX

public float getX()
get X coordinate

Returns:
X coordinate

getY

public float getY()
get Y coordinate

Returns:
Y coordinate

getTime

public long getTime()
get the time the point was captured

Returns:
time

getPressure

public float getPressure()
get pressure of point

Returns:
pressure of point

setX

public void setX(float x)
set X coordinate

Parameters:
x - X-coordinate

setY

public void setY(float y)
set Y coordinate

Parameters:
y - Y-coordinate

setTime

public void setTime(long time)
set Time

Parameters:
time -

setPressure

public void setPressure(float p)
set pressure

Parameters:
p - pressure

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isEqual

public boolean isEqual(TabletPoint b)
Check if two points are equal

Parameters:
b - point to compare to
Returns:
true if equal