Shape


@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
public final class Shape


A primitive defining container shapes.

Summary

Constants

static final @NonNull Shape

An extra large cornered Shape instance.

static final @NonNull Shape

An extra small cornered Shape instance.

static final @NonNull Shape

A fully cornered Shape instance.

static final @NonNull Shape

A large cornered Shape instance.

static final @NonNull Shape

A medium cornered Shape instance.

static final @NonNull Shape

A small cornered Shape instance.

static final @NonNull Shape

A Shape instance with no rounding.

static final int

An extra large corner shape.

static final int

An extra small corner shape.

static final int

A full corner (pill/circle) shape.

static final int

A large corner shape.

static final int

A medium corner shape.

static final int

A small corner shape.

static final int

Represents a rectangular shape with sharp corners

Public methods

boolean
int

Returns the ShapeType of the shape.

int
@NonNull String

Constants

CORNER_EXTRA_LARGE

Added in 1.8.0
public static final @NonNull Shape CORNER_EXTRA_LARGE

An extra large cornered Shape instance.

CORNER_EXTRA_SMALL

Added in 1.8.0
public static final @NonNull Shape CORNER_EXTRA_SMALL

An extra small cornered Shape instance.

CORNER_FULL

Added in 1.8.0
public static final @NonNull Shape CORNER_FULL

A fully cornered Shape instance.

CORNER_LARGE

Added in 1.8.0
public static final @NonNull Shape CORNER_LARGE

A large cornered Shape instance.

CORNER_MEDIUM

Added in 1.8.0
public static final @NonNull Shape CORNER_MEDIUM

A medium cornered Shape instance.

CORNER_SMALL

Added in 1.8.0
public static final @NonNull Shape CORNER_SMALL

A small cornered Shape instance.

NONE

Added in 1.8.0
public static final @NonNull Shape NONE

A Shape instance with no rounding.

TYPE_CORNER_EXTRA_LARGE

Added in 1.8.0
public static final int TYPE_CORNER_EXTRA_LARGE = 6

An extra large corner shape.

TYPE_CORNER_EXTRA_SMALL

Added in 1.8.0
public static final int TYPE_CORNER_EXTRA_SMALL = 2

An extra small corner shape.

TYPE_CORNER_FULL

Added in 1.8.0
public static final int TYPE_CORNER_FULL = 7

A full corner (pill/circle) shape.

TYPE_CORNER_LARGE

Added in 1.8.0
public static final int TYPE_CORNER_LARGE = 5

A large corner shape.

TYPE_CORNER_MEDIUM

Added in 1.8.0
public static final int TYPE_CORNER_MEDIUM = 4

A medium corner shape.

TYPE_CORNER_SMALL

Added in 1.8.0
public static final int TYPE_CORNER_SMALL = 3

A small corner shape.

TYPE_NONE

Added in 1.8.0
public static final int TYPE_NONE = 1

Represents a rectangular shape with sharp corners

Public methods

equals

public boolean equals(@Nullable Object other)

getShapeType

Added in 1.8.0
public int getShapeType()

Returns the ShapeType of the shape.

hashCode

public int hashCode()

toString

public @NonNull String toString()