Esempio n. 1
0
 protected final Graphics getOnscreenGraphics(Color fg, Color bg, Font f) {
   if (getSurfaceData() == null) {
     return null;
   }
   if (fg == null) {
     fg = SystemColor.windowText;
   }
   if (bg == null) {
     bg = SystemColor.window;
   }
   if (f == null) {
     f = DEFAULT_FONT;
   }
   return platformWindow.transformGraphics(new SunGraphics2D(getSurfaceData(), fg, bg, f));
 }