# Class GradientDrawable

java.lang.Object
com.codename1.charts.compat.GradientDrawable

public class GradientDrawable extends Object

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `GradientDrawable.Orientation`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GradientDrawable(GradientDrawable.Orientation orientation, int[] colors)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `draw(Canvas canvas)`
  `void`
  `setBounds(int left, int top, int right, int bottom)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GradientDrawable

    public GradientDrawable(GradientDrawable.Orientation orientation, int[] colors)

- ## Method Details

  - ### setBounds

    public void setBounds(int left, int top, int right, int bottom)

  - ### draw

    public void draw(Canvas canvas)