IT. Expert System.

Android Reference

RoundRectShape


android.graphics.drawable.shapes

Class RoundRectShape

  • All Implemented Interfaces:
    Cloneable


    public class RoundRectShape
    extends RectShape
    Creates a rounded-corner rectangle. Optionally, an inset (rounded) rectangle can be included (to make a sort of "O" shape). The rounded rectangle can be drawn to a Canvas with its own draw() method, but more graphical control is available if you instead pass the RoundRectShape to a ShapeDrawable.
    • Constructor Detail

      • RoundRectShape

        public RoundRectShape(float[] outerRadii,
                      RectF inset,
                      float[] innerRadii)
        RoundRectShape constructor. Specifies an outer (round)rect and an optional inner (round)rect.
        Parameters:
        outerRadii - An array of 8 radius values, for the outer roundrect. The first two floats are for the top-left corner (remaining pairs correspond clockwise). For no rounded corners on the outer rectangle, pass null.
        inset - A RectF that specifies the distance from the inner rect to each side of the outer rect. For no inner, pass null.
        innerRadii - An array of 8 radius values, for the inner roundrect. The first two floats are for the top-left corner (remaining pairs correspond clockwise). For no rounded corners on the inner rectangle, pass null. If inset parameter is null, this parameter is ignored.
    • 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).
        Overrides:
        draw in class RectShape
        Parameters:
        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 w,
                    float h)
        Description copied from class: Shape
        Callback method called when Shape.resize(float,float) is executed.
        Overrides:
        onResize in class RectShape
        Parameters:
        w - the new width of the Shape
        h - the new height of the Shape
      • clone

        public RoundRectShape 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.
        Overrides:
        clone in class RectShape
        Returns:
        a copy of this object.
        Throws:
        CloneNotSupportedException - if this object's class does not implement the Cloneable interface.


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: 935 / . Delta: 0.00621 с