IT. Expert System.

Android Reference

Gesture


android.gesture

Class Gesture

  • All Implemented Interfaces:
    Parcelable


    public class Gesture
    extends Object
    implements Parcelable
    A gesture is a hand-drawn shape on a touch screen. It can have one or multiple strokes. Each stroke is a sequence of timed points. A user-defined gesture can be recognized by a GestureLibrary.
    • Constructor Detail

      • Gesture

        public Gesture()
    • Method Detail

      • clone

        public Object clone()
        Description copied from class: Object
        Creates and returns a copy of this Object. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.
        Overrides:
        clone in class Object
        Returns:
        a copy of this object.
      • getStrokesCount

        public int getStrokesCount()
        Returns:
        the number of strokes included by this gesture
      • addStroke

        public void addStroke(GestureStroke stroke)
        Adds a stroke to the gesture.
        Parameters:
        stroke -
      • getLength

        public float getLength()
        Calculates the total length of the gesture. When there are multiple strokes in the gesture, this returns the sum of the lengths of all the strokes.
        Returns:
        the length of the gesture
      • getBoundingBox

        public RectF getBoundingBox()
        Returns:
        the bounding box of the gesture
      • toPath

        public Path toPath()
      • toPath

        public Path toPath(int width,
                  int height,
                  int edge,
                  int numSample)
      • toPath

        public Path toPath(Path path,
                  int width,
                  int height,
                  int edge,
                  int numSample)
      • getID

        public long getID()
        Returns:
        the id of the gesture
      • toBitmap

        public Bitmap toBitmap(int width,
                      int height,
                      int edge,
                      int numSample,
                      int color)
        Creates a bitmap of the gesture with a transparent background.
        Parameters:
        width - width of the target bitmap
        height - height of the target bitmap
        edge - the edge
        numSample -
        color -
        Returns:
        the bitmap
      • toBitmap

        public Bitmap toBitmap(int width,
                      int height,
                      int inset,
                      int color)
        Creates a bitmap of the gesture with a transparent background.
        Parameters:
        width -
        height -
        inset -
        color -
        Returns:
        the bitmap
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 259 / 158855593. Delta: 0.04681 с