Gap

  • Gap is an immutable class representing a gap in the stroke pattern forPolyline,Polygon, orCircle.

  • TheGap class has a public constructor that takes a floatlength to define the gap's length in pixels.

  • Thelength field represents the non-negative length of the gap in pixels.

  • Gap inherits methods such asequals,hashCode, andtoString from its parent classes and interfaces.

public final classGap extendsPatternItem

An immutable class representing a gap used in the stroke pattern for aPolyline or the outline of aPolygon orCircle.

Inherited Constant Summary

From interface android.os.Parcelable
intCONTENTS_FILE_DESCRIPTOR
intPARCELABLE_WRITE_RETURN_VALUE

Field Summary

public final floatlengthLength in pixels (non-negative).

Public Constructor Summary

Gap(float length)
Constructs aGap.

Public Method Summary

String

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
From interface android.os.Parcelable
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
lengthLength 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.