ColorfulControlDrawer

public abstract class ColorfulControlDrawer implements ControlDrawer

A drawer that use an Paint and colors for draw the control representation.

Inheritors

Types

Link copied to clipboard
public class ColorfulProperties

Properties

Link copied to clipboard
Link copied to clipboard
private final ColorsScheme colors

The drawer colors.

Link copied to clipboard
private final IntArray colorsArray

An IntArray of the current colors properties.

Link copied to clipboard
private final Paint paint

The drawer paint.

Link copied to clipboard

Functions

Link copied to clipboard
public abstract Unit draw(Canvas canvas, Control control)

Draw the control representation.

Link copied to clipboard

Gets the accent color of colors.

Link copied to clipboard
protected final ColorsScheme getColors()
Link copied to clipboard
protected final IntArray getColorsArray()
Link copied to clipboard
protected final Paint getPaint()
Link copied to clipboard

Gets the primary color of colors.

Link copied to clipboard
public Unit setAccentColor(Integer accentColor)

Sets the accent color of colors.

Link copied to clipboard
public Unit setColors(ColorsScheme colors)

Sets the primary and accent colors of drawer based on a schema.

public Unit setColors(@ColorInt() Integer primary, @ColorInt() Integer accent)

Sets the primary and accent colors of drawer.

Link copied to clipboard
public Unit setPrimaryColor(Integer primaryColor)

Sets the primary color of colors and paint.