CircularRevealWidget.RevealInfo

public class CircularRevealWidget.RevealInfo


RevealInfo holds three values for a circular reveal. The circular reveal is represented by two float coordinates for the center, and one float value for the radius.

Summary

Constants

static final float
INVALID_RADIUS = 3.4028235E38f

Radius value representing a lack of a circular reveal clip.

Public fields

float

View-local float coordinate for the centerX of the reveal circular reveal.

float

View-local float coordinate for the centerY of the reveal circular reveal.

float

Float value for the radius of the reveal circular reveal, or INVALID_RADIUS.

Public constructors

RevealInfo(float centerX, float centerY, float radius)

Public methods

boolean

Returns whether this RevealInfo has an invalid radius, representing a lack of a circular reveal clip.

void
void
set(float centerX, float centerY, float radius)

Constants

INVALID_RADIUS

public static final float INVALID_RADIUS = 3.4028235E38f

Radius value representing a lack of a circular reveal clip.

Public fields

centerX

public float centerX

View-local float coordinate for the centerX of the reveal circular reveal.

centerY

public float centerY

View-local float coordinate for the centerY of the reveal circular reveal.

radius

public float radius

Float value for the radius of the reveal circular reveal, or INVALID_RADIUS.

Public constructors

RevealInfo

public RevealInfo(CircularRevealWidget.RevealInfo other)

RevealInfo

public RevealInfo(float centerX, float centerY, float radius)

Public methods

isInvalid

public boolean isInvalid()

Returns whether this RevealInfo has an invalid radius, representing a lack of a circular reveal clip.

set

public void set(CircularRevealWidget.RevealInfo other)

set

public void set(float centerX, float centerY, float radius)