Exemple #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);
 }
 // --------------------------------------------------------------------------------
 // Name: Paint
 // Abstract: Override the paint event to draw grid marks
 // --------------------------------------------------------------------------------
 public void paint(Graphics g) {
   super.paint(g);
   try {
     //			CUtilities.DrawGridMarks( this, g );
   } catch (Exception excError) {
     // Display error message
     CUtilities.WriteLog(excError);
   }
 }
 @Override
 public void paint(Graphics g) {
   super.paintComponents(g);
   Graphics2D g2 = (Graphics2D) g.create();
   Rectangle clip = g2.getClipBounds();
   g2.setPaint(
       new GradientPaint(
           0.0f, 0.0f, new Color(170, 192, 249), getWidth(), 0.0f, new Color(255, 255, 255)));
   g2.fillRect(clip.x, clip.y, clip.width, clip.height);
   super.paint(g);
 }
Exemple #4
0
    @Override
    public void paint(Graphics g) {
      if (!SystemInfo.isMac
          || UIUtil
              .isUnderAquaLookAndFeel()) { // avoid rendering problems with non-aqua (alloy) LaFs
                                           // under mac
        // actually, it's a bad idea to globally enable this for dialog graphics since renderers,
        // for example, may not
        // inherit graphics so rendering hints won't be applied and trees or lists may render ugly.
        UIUtil.applyRenderingHints(g);
      }

      super.paint(g);
    }
Exemple #5
0
 /* This should not be necessary, but if not here, repaint is not always correct in SlippyMap! */
 @Override
 public void paint(Graphics g) {
   tpDownloadAreaSelectors.getSelectedComponent().paint(g);
   super.paint(g);
 }
Exemple #6
0
 public void paint(Graphics g) {
   super.paint(g);
   if (Cow != null) {
     g.drawImage(Cow, 15, 32, this);
   }
 }