Class SolidPaint

java.lang.Object
com.codename1.art.ArtPaint
com.codename1.art.SolidPaint

public final class SolidPaint extends ArtPaint
A single color.
  • Constructor Details

    • SolidPaint

      public SolidPaint(int argb)

      Creates a solid paint.

      Parameters
      • argb: 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: the color as 0xAARRGGBB
    • copy

      public ArtPaint copy()
      Description copied from class: ArtPaint
      A deep copy.
      Specified by:
      copy in class ArtPaint
    • colorAt

      public int colorAt(double x, double y, double[] bbox)
      Description copied from class: ArtPaint

      The color at a point of paint space.

      Parameters
      • x: x in the space of the shape that is painted
      • y: y in that space
      • bbox: the shape's bounding box as x, y, w, h, for paints relative to it
      Specified by:
      colorAt in class ArtPaint