IT. Expert System.

Android Reference

Insets


android.graphics

Class Insets



  • public class Insets
    extends Object
    An Insets instance holds four integer offsets which describe changes to the four edges of a Rectangle. By convention, positive values move edges towards the centre of the rectangle.

    Insets are immutable so may be treated as values.

    • Method Summary

      Methods
      Modifier and Type Method and Description
      boolean equals(Object o)
      Two Insets instances are equal iff they belong to the same class and their fields are pairwise equal.
      int hashCode()
      Returns an integer hash code for this object.
      static Insets of(int left, int top, int right, int bottom)
      Return an Insets instance with the appropriate values.
      static Insets of(Rect r)
      Return an Insets instance with the appropriate values.
      String toString()
      Returns a string containing a concise, human-readable description of this object.
    • Field Detail

      • NONE

        public static final Insets NONE
      • left

        public final int left
      • top

        public final int top
      • right

        public final int right
      • bottom

        public final int bottom
    • Method Detail

      • of

        public static Insets of(int left,
                int top,
                int right,
                int bottom)
        Return an Insets instance with the appropriate values.
        Parameters:
        left - the left inset
        top - the top inset
        right - the right inset
        bottom - the bottom inset
        Returns:
        Insets instance with the appropriate values
      • of

        public static Insets of(Rect r)
        Return an Insets instance with the appropriate values.
        Parameters:
        r - the rectangle from which to take the values
        Returns:
        an Insets instance with the appropriate values
      • equals

        public boolean equals(Object o)
        Two Insets instances are equal iff they belong to the same class and their fields are pairwise equal.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare this instance with.
        Returns:
        true iff this object is equal o
        See Also:
        Object.hashCode()
      • hashCode

        public int hashCode()
        Description copied from class: Object
        Returns an integer hash code for this object. By contract, any two objects for which Object.equals(java.lang.Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

        Note that hash values must not change over time unless information used in equals comparisons also changes.

        See Writing a correct hashCode method if you intend implementing your own hashCode method.

        Overrides:
        hashCode in class Object
        Returns:
        this object's hash code.
        See Also:
        Object.equals(java.lang.Object)
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.


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: 355 / 158871227. Delta: 0.04235 с