PatternItem
Known Direct Subclasses
Dash |
An immutable class representing a dash used in the stroke pattern for a Polyline or the
outline of a Polygon or Circle . |
Dot |
An immutable class representing a dot used in the stroke pattern for a Polyline or the
outline of a Polygon or Circle . |
Gap |
An immutable class representing a gap used in the stroke pattern for a Polyline or the
outline of a Polygon or Circle . |
|
Inherited Constant Summary
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Constructor Summary
Inherited Method Summary
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
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)
|
Public Constructors
public
PatternItem
(int type, Float length)
Public Methods
public
boolean
equals
(Object o)
public
String
toString
()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[null,null,["Last updated 2025-06-16 UTC."],[[["`PatternItem` is an immutable class used to define patterns for strokes in Polylines, Polygons, and Circles on a map."],["It has three known direct subclasses: `Dash`, `Dot`, and `Gap`, which represent different pattern elements."],["You can create a `PatternItem` using its constructor, providing a type and an optional length."],["`PatternItem` inherits methods from `Object` and `Parcelable` for object comparison, hashing, and data serialization."]]],["`PatternItem`, extending `Object` and implementing `Parcelable`, is an immutable class for stroke patterns in `Polyline`, `Polygon`, or `Circle` outlines. Direct subclasses include `Dash`, `Dot`, and `Gap`. It has a constructor accepting `type` and `length`, as well as methods for `equals`, `hashCode`, and `toString`. Inherited methods are provided by `java.lang.Object` and `android.os.Parcelable`, which includes `describeContents` and `writeToParcel`.\n"]]