equal
deleted
inserted
replaced
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 * |