Example #1
0
 @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);
 }
Example #2
0
 @Override
 public void paint(final Graphics g) {
   if (offGraphics != null) {
     g.drawImage(offGraphics.getImage(), 0, 0, null);
   }
 }