javax.swing.JComponent.paintChildren()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(179)

本文整理了Java中javax.swing.JComponent.paintChildren()方法的一些代码示例,展示了JComponent.paintChildren()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComponent.paintChildren()方法的具体详情如下:
包路径:javax.swing.JComponent
类名称:JComponent
方法名:paintChildren

JComponent.paintChildren介绍

暂无

代码示例

代码示例来源:origin: brandonborkholder/glg2d

@Override
protected void paintChildren(Graphics g) {
 /*
  * Don't paint the drawableComponent. If we'd use a GLJPanel instead of a
  * GLCanvas, we'd have to paint it here.
  */
 if (!isGLDrawing()) {
  super.paintChildren(g);
 }
}

代码示例来源:origin: com.googlecode.blaisemath/blaise-graphics

/**
 * Paints the graphics to the specified canvas.
 * @param g graphics object
 */
@Override
protected void paintChildren(Graphics g) {
  renderTo((Graphics2D) g);
  super.paintChildren(g);
}

代码示例来源:origin: com.harium.propan/propan-jogl

@Override
protected void paintChildren(Graphics g) {
 /*
  * Don't paint the drawableComponent. If we'd use a GLJPanel instead of a
  * GLCanvas, we'd have to paint it here.
  */
 if (!isGLDrawing()) {
  super.paintChildren(g);
 }
}

代码示例来源:origin: JetBrains/jediterm

@Override
protected void paintChildren(final Graphics g) {
  super.paintChildren(g);
  //final GraphicsConfig config = new GraphicsConfig(g);
  //try {
  //  config.setAntialiasing(true);
  paintSelectionAndBorder((Graphics2D) g);
  //} finally {
  //  config.restore();
  //}
  final TabLabel selected = getSelectedLabel();
  if (selected != null) {
    selected.paintImage(g);
  }
}

代码示例来源:origin: stackoverflow.com

at javax.swing.JComponent.paintComponent(JComponent.java:752)
at javax.swing.JComponent.paint(JComponent.java:1029)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JViewport.paint(JViewport.java:747)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
at javax.swing.JComponent.paintChildren(JComponent.java:862)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5131)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1491)

相关文章

JComponent类方法