Plot { Plot(@NonNull PlotOptions options) { this.options = options; paint.setAntiAlias(true); paint.setDither(true); paint.setStrokeJoin(Paint.Join.ROUND); text.setAntiAlias(true); text.setTextSize(options.font_size); text.setColor(0xffcccccc); } Plot(@NonNull PlotOptions options); void drawPoint(int axis, double x, double y, float radius); void drawLine(int axis, @NonNull DataSeries series, float radius); float getX(double x); float getY(double y); @NonNull
    final PlotOptions options; public Canvas canvas; public int width; public int height; final List<ChartLayer> layers; final Paint paint; final Paint text; }
@Test public void plot() { PlotOptions options = new PlotOptions(1, 1); Plot plot = new Plot(options); plot.initBounds(1); assertNull(plot.canvas); Canvas canvas = new Canvas(); plot.setCanvas(canvas); assertNotNull(plot.canvas); }