Class Gesture


  • class Gesture
    extends Object
    • Field Detail

      • action

        private int action
      • ptNext

        private int ptNext
      • time0

        private long time0
    • Constructor Detail

      • Gesture

        public Gesture​(int nPoints,
                       Viewer vwr)
    • Method Detail

      • setAction

        void setAction​(int action,
                       long time)
      • add

        int add​(int action,
                int x,
                int y,
                long time)
      • getTimeDifference

        public long getTimeDifference​(int nPoints)
      • getSpeedPixelsPerMillisecond

        public float getSpeedPixelsPerMillisecond​(int nPoints,
                                                  int nPointsPrevious)
      • getDX

        int getDX​(int nPoints,
                  int nPointsPrevious)
      • getDY

        int getDY​(int nPoints,
                  int nPointsPrevious)
      • getPointCount

        int getPointCount()
      • getPointCount2

        private int getPointCount2​(int nPoints,
                                   int nPointsPrevious)