コード例 #1
0
ファイル: GxwWin_lang.java プロジェクト: qq98982/xowa
 @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
 // --------------------------------------------------------------------------------
 // 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);
   }
 }
コード例 #3
0
 @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);
 }
コード例 #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);
    }
コード例 #5
0
ファイル: DownloadDialog.java プロジェクト: huokedu/josm
 /* 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);
 }
コード例 #6
0
ファイル: AboutDialog.java プロジェクト: yangyou/javavis
 public void paint(Graphics g) {
   super.paint(g);
   if (Cow != null) {
     g.drawImage(Cow, 15, 32, this);
   }
 }