PopoverShadow

public class PopoverShadow


Style attributes for the popover's shadow.

Summary

Constants

static final PopoverShadow

The default shadow style.

Public fields

@ColorInt int

The default color of the shadow.

float

The default horizontal offset of the shadow.

float

The default vertical offset of the shadow.

float

The default blur radius of the shadow.

Public constructors

Default constructor for PopoverShadow.

PopoverShadow(int color, float offsetX, float offsetY, float radius)

Constructor to initialize all properties.

Public methods

int

Gets the color of the shadow.

float

Gets the horizontal offset of the shadow.

float

Gets the vertical offset of the shadow.

float

Gets the blur radius of the shadow.

PopoverShadow
setColor(int color)

Sets the color of the shadow.

PopoverShadow
setOffsetX(float offsetX)

Sets the horizontal offset of the shadow.

PopoverShadow
setOffsetY(float offsetY)

Sets the vertical offset of the shadow.

PopoverShadow
setRadius(float radius)

Sets the blur radius of the shadow.

Constants

DEFAULT

public static final PopoverShadow DEFAULT

The default shadow style.

Public fields

color

public @ColorInt int color

The default color of the shadow.

offsetX

public float offsetX

The default horizontal offset of the shadow.

offsetY

public float offsetY

The default vertical offset of the shadow.

radius

public float radius

The default blur radius of the shadow.

Public constructors

PopoverShadow

public PopoverShadow()

Default constructor for PopoverShadow.

PopoverShadow

public PopoverShadow(int color, float offsetX, float offsetY, float radius)

Constructor to initialize all properties.

Parameters
int color

The color of the shadow.

float offsetX

The horizontal offset of the shadow.

float offsetY

The vertical offset of the shadow.

float radius

The blur radius of the shadow.

Public methods

getColor

public int getColor()

Gets the color of the shadow.

getOffsetX

public float getOffsetX()

Gets the horizontal offset of the shadow.

getOffsetY

public float getOffsetY()

Gets the vertical offset of the shadow.

getRadius

public float getRadius()

Gets the blur radius of the shadow.

setColor

public PopoverShadow setColor(int color)

Sets the color of the shadow.

setOffsetX

public PopoverShadow setOffsetX(float offsetX)

Sets the horizontal offset of the shadow.

setOffsetY

public PopoverShadow setOffsetY(float offsetY)

Sets the vertical offset of the shadow.

setRadius

public PopoverShadow setRadius(float radius)

Sets the blur radius of the shadow.