IT. Expert System.

Android Reference


Class PathShape

  • All Implemented Interfaces:

    public class PathShape
    extends Shape
    Creates geometric paths, utilizing the Path class. The path can be drawn to a Canvas with its own draw() method, but more graphical control is available if you instead pass the PathShape to a ShapeDrawable.
    • Constructor Detail

      • PathShape

        public PathShape(Path path,
                 float stdWidth,
                 float stdHeight)
        PathShape constructor.
        path - a Path that defines the geometric paths for this shape
        stdWidth - the standard width for the shape. Any changes to the width with resize() will result in a width scaled based on the new width divided by this width.
        stdHeight - the standard height for the shape. Any changes to the height with resize() will result in a height scaled based on the new height divided by this height.
    • Method Detail

      • draw

        public void draw(Canvas canvas,
                Paint paint)
        Description copied from class: Shape
        Draw this shape into the provided Canvas, with the provided Paint. Before calling this, you must call Shape.resize(float,float).
        Specified by:
        draw in class Shape
        canvas - the Canvas within which this shape should be drawn
        paint - the Paint object that defines this shape's characteristics
      • onResize

        protected void onResize(float width,
                    float height)
        Description copied from class: Shape
        Callback method called when Shape.resize(float,float) is executed.
        onResize in class Shape
        width - the new width of the Shape
        height - the new height of the Shape
      • clone

        public PathShape clone()
                        throws CloneNotSupportedException
        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.
        clone in class Shape
        a copy of this object.
        CloneNotSupportedException - if this object's class does not implement the Cloneable interface.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








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

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: 161 / 158860372. Delta: 0.03223 с