@Override public void update(final Graphics g) { final Dimension d = getSize(); offGraphics = new RasterPlotter(d.width, d.height, RasterPlotter.DrawMode.MODE_REPLACE, "FFFFFF"); paintFrame(offGraphics); g.drawImage(offGraphics.getImage(), 0, 0, null); }
public void paintFrame(final RasterPlotter m) { RasterPlotter.demoPaint(m); final int y = (int) (System.currentTimeMillis() / 10 % 300); m.setColor(RasterPlotter.GREY); PrintTool.print(m, 0, y, 0, "Hello World", -1); }
@Override public void paint(final Graphics g) { if (offGraphics != null) { g.drawImage(offGraphics.getImage(), 0, 0, null); } }