IT. Expert System.

Android Reference

GestureStroke


android.gesture

Class GestureStroke



  • public class GestureStroke
    extends Object
    A gesture stroke started on a touch down and ended on a touch up. A stroke consists of a sequence of timed points. One or multiple strokes form a gesture.
    • Field Detail

      • boundingBox

        public final RectF boundingBox
      • length

        public final float length
      • points

        public final float[] points
    • Constructor Detail

      • GestureStroke

        public GestureStroke(ArrayList<GesturePoint> points)
        A constructor that constructs a gesture stroke from a list of gesture points.
        Parameters:
        points -
    • 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.
      • getPath

        public Path getPath()
      • toPath

        public Path toPath(float width,
                  float height,
                  int numSample)
        Converts the stroke to a Path of a given number of points.
        Parameters:
        width - the width of the bounding box of the target path
        height - the height of the bounding box of the target path
        numSample - the number of points needed
        Returns:
        the path
      • clearPath

        public void clearPath()
        Invalidates the cached path that is used to render the stroke.
      • computeOrientedBoundingBox

        public OrientedBoundingBox computeOrientedBoundingBox()
        Computes an oriented bounding box of the stroke.
        Returns:
        OrientedBoundingBox


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: 243 / 158855577. Delta: 0.04130 с