目录

PatternItem

Class Info

public class PatternItem

An immutable class that describes the stroke pattern of a polyline or the outline of a polygon or circle.

Public Field Summary

Qualifier and Type

Field and Description

public static final int

TYPE_DASH

Dash type.

public static final int

TYPE_DOT

Dot type.

public static final int

TYPE_GAP

Gap type.

Public Fields

[h2]TYPE_DASH

Fields

public static final int TYPE_DASH

Type of a dash used in the stroke pattern for a polyline or the outline of a polygon or circle.

TYPE_DASH: 0

For other constant values, please refer to Constant-values.

[h2]TYPE_DOT

Fields

public static final int TYPE_DOT

Type of a dot used in the stroke pattern for a polyline or the outline of a polygon or circle.

TYPE_DOT: 1

For other constant values, please refer to Constant-values.

[h2]TYPE_GAP

Fields

public static final int TYPE_GAP

Type of a gap used in the stroke pattern for a polyline or the outline of a polygon or circle.

TYPE_GAP: 2

For other constant values, please refer to Constant-values.

Public Constructor Summary

Constructor Name

PatternItem(int type,float length)

Creates a PatternItem object based on the type and length.

Public Method Summary

Qualifier and Type

Method Name and Description

boolean

equals(Object other)

Checks whether a PatternItem object equals another.

int

hashCode()

Returns the hash value of an object.

String

toString()

Returns the object as a string.

void

writeToParcel(Parcel out, int flags)

Serializes data.

Public Constructors

[h2]PatternItem

Constructor

public PatternItem(int type,float length)

Creates a PatternItem object based on the type and length.

Parameters

Name

Description

type

Type.

length

Length.