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