home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / awt / GraphicsCallback$PeerPrintCallback.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  791 b   |  25 lines

  1. package java.awt;
  2.  
  3. import java.awt.peer.LightweightPeer;
  4.  
  5. final class GraphicsCallback$PeerPrintCallback extends GraphicsCallback {
  6.    private static GraphicsCallback$PeerPrintCallback instance = new GraphicsCallback$PeerPrintCallback();
  7.  
  8.    private GraphicsCallback$PeerPrintCallback() {
  9.    }
  10.  
  11.    public void run(Component var1, Graphics var2) {
  12.       var1.validate();
  13.       if (var1.peer instanceof LightweightPeer) {
  14.          var1.lightweightPrint(var2);
  15.       } else {
  16.          var1.peer.print(var2);
  17.       }
  18.  
  19.    }
  20.  
  21.    static GraphicsCallback$PeerPrintCallback getInstance() {
  22.       return instance;
  23.    }
  24. }
  25.