@Test public void testPlotIsDrawnOnScreen() throws Exception { canvas.plot(new Point(2, 2)); Raster raster = Bitmap.of(canvas); Pixel.in(raster).at(2, 2).shouldBe(Color.BLACK); Pixel.in(raster).around(2, 2).shouldBe(Color.WHITE); }
public void plot(Point point) { plots.add(point); }
PlotMapCanvasImpl extends Canvas implements
        PlotMapCanvas { public void plot(Point point) { plots.add(point); } }
PlotMapCanvasImpl extends Canvas implements
        PlotMapCanvas { public void plot(Point point) { plots.add(point); } PlotMapCanvasImpl(); }
PlotMapCanvasImpl extends Canvas implements
        PlotMapCanvas { public void plot(Point point) { plots.add(point); } PlotMapCanvasImpl(); void clear(); void plot(Point point); @Override void paint(Graphics g); void addRemoveListener(final PointEventListener listener); }
PlotMapCanvasImpl extends Canvas implements
        PlotMapCanvas { public void plot(Point point) { plots.add(point); } PlotMapCanvasImpl(); void clear(); void plot(Point point); @Override void paint(Graphics g); void addRemoveListener(final PointEventListener listener);  }