Пример #1
0
 @Override
 public void paint(Graphics g) {
   if (host.PaintCbk(
       PaintArgs.new_(
           GfxAdpBase.new_((Graphics2D) g),
           RectAdp_.Zero))) // ClipRect not used by any clients; implement when necessary
   super.paint(g);
 }
Пример #2
0
 @Override
 public void paint(Graphics g) {
   // always paint background color; must happen before any controlPaint; extract to separate
   // method if override needed
   Graphics2D g2 = (Graphics2D) g;
   g2.setBackground(this.getBackground());
   RectAdp clipRect = GxwCore_lang.XtoRectAdp(g2.getClipBounds());
   g2.clearRect(clipRect.X(), clipRect.Y(), clipRect.Width(), clipRect.Height());
   if (host.PaintCbk(
       PaintArgs.new_(
           GfxAdpBase.new_(g2),
           clipRect))) // ClipRect not used by any clients; implement when necessary
   super.paint(
         g); // Reevaluate if necessary: super.paint might need to (a) always happen and (b) go
             // before PaintCbk (had issues with drawing text on images)
 }