Gap Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Gapis an immutable class representing a gap in the stroke pattern forPolyline,Polygon, orCircle.The
Gapclass has a public constructor that takes a floatlengthto define the gap's length in pixels.The
lengthfield represents the non-negative length of the gap in pixels.Gapinherits methods such asequals,hashCode, andtoStringfrom its parent classes and interfaces.
An immutable class representing a gap used in the stroke pattern for aPolyline or the outline of aPolygon orCircle.
Inherited Constant Summary
| int | CONTENTS_FILE_DESCRIPTOR | |
| int | PARCELABLE_WRITE_RETURN_VALUE |
Field Summary
| public final float | length | Length in pixels (non-negative). |
Public Constructor Summary
Gap(float length) Constructs a Gap. |
Public Method Summary
| String | toString() |
Inherited Method Summary
| abstract int | describeContents() |
| abstract void | writeToParcel(Parcel arg0, int arg1) |
Fields
public final floatlength
Length in pixels (non-negative).
Public Constructors
publicGap(float length)
Constructs aGap.
Parameters
| length | Length in pixels. Negative value will be clamped to zero. |
|---|
Public Methods
publicStringtoString()
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.