javauis/lcdui_qt/src/javax/microedition/lcdui/game/GameCanvas.java
changeset 78 71ad690e91f5
parent 23 98ccebc37403
equal deleted inserted replaced
72:1f0034e370aa 78:71ad690e91f5
   103     }
   103     }
   104 
   104 
   105     /**
   105     /**
   106      * By default this renders the frameBuffer at (0,0).
   106      * By default this renders the frameBuffer at (0,0).
   107      *
   107      *
   108      * @param g Graphics object
   108      * @param aGraphics Graphics object
       
   109      * @throws NullPointerException if aGraphics is null
   109      */
   110      */
   110     public void paint(javax.microedition.lcdui.Graphics g)
   111     public void paint(javax.microedition.lcdui.Graphics aGraphics)
   111     {
   112     {
       
   113         // Graphics can not be null
       
   114         if (aGraphics == null)
       
   115         {
       
   116             throw new NullPointerException();
       
   117         }
       
   118 
   112         // If the Graphics doesn't belong to the frame buffer
   119         // If the Graphics doesn't belong to the frame buffer
   113         LCDUIInvoker.renderGraphics(this, g);
   120         LCDUIInvoker.renderGraphics(this, aGraphics);
   114     }
   121     }
   115 
   122 
   116     /**
   123     /**
   117      * Flushes the frameBuffer's region to the display.
   124      * Flushes the frameBuffer's region to the display.
   118      *
   125      *