Class ChartUtil

java.lang.Object
com.codename1.charts.ChartUtil

public class ChartUtil extends Object
A utility class for painting a chart onto a Graphics context. This is a low level API. You should use the ChartComponent class instead.
  • Constructor Details

    • ChartUtil

      public ChartUtil()
  • Method Details

    • paintChart

      public void paintChart(Graphics g, AbstractChart chart, Rectangle bounds, int absX, int absY)

      Draws the given chart onto the given graphics

      Parameters
      • g: the graphics object

      • chart: the chart object

      • bounds: the bounds in which the chart should be drawn within the graphics

      • absX

      • absY