Package com.scriptel.proscript.input
Class Coordinate
- java.lang.Object
-
- com.scriptel.proscript.input.Coordinate
-
- Direct Known Subclasses:
ExtendedCoordinate
public class Coordinate extends java.lang.ObjectThis class represents a basic coordinate coming from a ScripTouch device.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCoordinate(boolean penDown, boolean dataSource, int x, int y)Protected constructor, used by children.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetX()X coordinateintgetY()Y coordinatebooleanisDataSource()Data source?booleanisPenDown()Is the pen down?java.lang.StringtoString()Prints this object as a human readable string.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Prints this object as a human readable string.- Overrides:
toStringin classjava.lang.Object- Returns:
- Human readable string.
-
isPenDown
public boolean isPenDown()
Is the pen down?- Returns:
- the penDown
-
isDataSource
public boolean isDataSource()
Data source?- Returns:
- the dataSource
-
getX
public int getX()
X coordinate- Returns:
- the x
-
getY
public int getY()
Y coordinate- Returns:
- the y
-
-