Class InkPoint

java.lang.Object
com.myscript.iink.graphics.InkPoint

public class InkPoint extends Object
Represents an ink point.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    The point normalised pressure.
    long
    The point timestamp.
    float
    The point x coordinate.
    float
    The point y coordinate.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    InkPoint(float x, float y, long t, float f)
    Constructs a InkPoint
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object obj)
     
    int
     
    @NotNull String
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      public float x
      The point x coordinate.
    • y

      public float y
      The point y coordinate.
    • t

      public long t
      The point timestamp.
    • f

      public float f
      The point normalised pressure.
  • Constructor Details

    • InkPoint

      public InkPoint(float x, float y, long t, float f)
      Constructs a InkPoint
      Parameters:
      x - the event x coordinate.
      y - the event y coordinate.
      t - the event timestamp in ms since Unix EPOCH, or -1.
      f - the event pressure.
    • InkPoint

      public InkPoint()
      Default constructor.
  • Method Details

    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object