Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class SolidPaint

  1. Object
  2. ArtPaint
  3. SolidPaint
A single color.

Constructors

public SolidPaint(int argb)Creates a solid paint.

Methods

public int getColor()The color as 0xAARRGGBB.
public void setColor(int argb)Sets the color.
public ArtPaint copy()A deep copy.
public int colorAt(double x, double y, double[] bbox)The color at a point of paint space.

Inherited methods

Constructor details

SolidPaint

public SolidPaint(int argb)
Creates a solid paint.

Parameters

argb int
the color as 0xAARRGGBB

Method details

getColor

public int getColor()
The color as 0xAARRGGBB.

setColor

public void setColor(int argb)
Sets the color.

Parameters

argb int
the color as 0xAARRGGBB

copy

public ArtPaint copy()
A deep copy.

colorAt

public int colorAt(double x, double y, double[] bbox)
The color at a point of paint space.

Parameters

x double
x in the space of the shape that is painted
y double
y in that space
bbox double[]
the shape’s bounding box as x, y, w, h, for paints relative to it