javax.swing.JTree.paint()方法的使用及代码示例

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

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

JTree.paint介绍

暂无

代码示例

代码示例来源:origin: checkstyle/checkstyle

/**
 * Subclassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
@Override
public void paint(Graphics graph) {
  graph.translate(0, -visibleRow * getRowHeight());
  super.paint(graph);
}

代码示例来源:origin: com.jalalkiswani/jk-desktop

@Override
public void paint(final Graphics g) {
  super.paint(g);
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

@Override
public void paint(Graphics g) {
  g.translate(-getPositionX(), transY);
  super.paint(g);
}

代码示例来源:origin: com.puppycrawl.tools/checkstyle

/**
 * Subclassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
@Override
public void paint(Graphics graph) {
  graph.translate(0, -visibleRow * getRowHeight());
  super.paint(graph);
}

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

/**
 * Sublcassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
public void paint(Graphics g) {
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
}

代码示例来源:origin: com.github.houbie/rhino-mod

/**
 * Sublcassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
@Override
public void paint(Graphics g) {
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
}

代码示例来源:origin: ro.isdc.wro4j/rhino

/**
 * Sublcassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
@Override
public void paint(Graphics g) {
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
}

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

/**
 * Sublcassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
@Override
public void paint(Graphics g) {
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
}

代码示例来源:origin: com.github.tntim96/rhino

/**
 * Sublcassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
@Override
public void paint(Graphics g) {
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
}

代码示例来源:origin: Audiveris/audiveris

/**
 * Subclassed to translate the graphics such that the last visible row
 * will be drawn at 0,0.
 */
@Override
public void paint (Graphics g)
{
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

public void paint (Graphics g) {
  g.translate(-getPositionX(), transY);
  super.paint(g);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

public void paint (Graphics g) {
  g.translate(-getPositionX(), transY);
  super.paint(g);
}

代码示例来源:origin: ricardojlrufino/eclipse-cdt-standalone-astparser

public void paint(Graphics g) {
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
}

代码示例来源:origin: org.cytoscape/swing-util-api

/**
 * Subclassed to translate the graphics such that the last visible row
 * will be drawn at 0,0.
 */
public void paint(Graphics g) {
  if (g == null)
    return;
  g.translate(0, -visibleRow * getRowHeight());
  try {
    super.paint(g);
  } catch (Throwable e) {
    logger.debug("random swing exception/error: ",e);
  }
}

代码示例来源:origin: cytoscape/application

/**
 * Sublcassed to translate the graphics such that the last visible row
 * will be drawn at 0,0.
 */
public void paint(Graphics g) {
  if (g == null)
    return;
  g.translate(0, -visibleRow * getRowHeight());
  try {
    super.paint(g);
  } catch (Exception e) {
    //CyLogger.getLogger().warn("********************");
  }
}

代码示例来源:origin: org.gephi/directory-chooser

@Override
public void paint(Graphics g) {
  if (firstPaint) {
    g.setFont(getFont());
    setRowHeight(Math.max(/* icon height plus insets? */17, g.getFontMetrics().getHeight()));
    firstPaint = false;
    // Setting the fixed height will generate another paint request, no need to complete this one
    return;
  }
  super.paint(g);
}

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-mobility-svgcore

/** Overriden to calculate correct row height before first paint */
public void paint(Graphics g) {
  if (m_firstPaint) {
    int height = g.getFontMetrics(getFont()).getHeight();
    setRowHeight(height + 2);
    m_firstPaint = false;
  }
  super.paint(g);
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu

public void paint(Graphics _g)
{
 BuLib.setAntialiasing(this,_g);
 super.paint(_g);
 if(drop_)
 {
  Rectangle r=getDropRect();
  //_g.setColor(new Color(255,128,0,64));
  //_g.fillRoundRect(r.x,r.y,r.width,r.height,9,9);
  _g.setColor(new Color(255,128,0));
  _g.drawRoundRect(r.x,r.y,r.width-1,r.height-1,9,9);
 }
}

代码示例来源:origin: uk.org.mygrid.taverna/taverna-core

/**
 * Sublcassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
public void paint(Graphics g) {
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
  // Draw the Table border if we have focus.
  if (highlightBorder != null) {
  highlightBorder.paintBorder(this, g, 0, visibleRow *
          getRowHeight(), getWidth(),
          getRowHeight());
  }
}

代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui

/**
 * Sublcassed to translate the graphics such that the last visible
 * row will be drawn at 0,0.
 */
public void paint(Graphics g) {
  g.translate(0, -visibleRow * getRowHeight());
  super.paint(g);
  // Draw the Table border if we have focus.
  if (highlightBorder != null) {
  highlightBorder.paintBorder(this, g, 0, visibleRow *
          getRowHeight(), getWidth(),
          getRowHeight());
  }
}

相关文章

JTree类方法