org.eclipse.swt.widgets.Tree.addPaintListener()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(173)

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

Tree.addPaintListener介绍

暂无

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.wst.xml.ui

public TreeExtension(Tree tree) {
  this.fTree = tree;
  InternalMouseListener listener = new InternalMouseListener();
  tree.addMouseMoveListener(listener);
  tree.addMouseListener(listener);
  tree.addPaintListener(this);
  editManager = new EditManager(tree);
  delayedDrawTimer = new DelayedDrawTimer(tree);
  tableLineColor = tree.getDisplay().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

/**
 * Create the columns for the receiver.
 *
 * @param parent
 */
private void createViewer(Composite parent) {
  parent.setLayout(new FillLayout());
  viewer = new MarkersTreeViewer(new Tree(parent, SWT.H_SCROLL
      /*| SWT.VIRTUAL */| SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION));
  viewer.getTree().setLinesVisible(true);
  viewer.setUseHashlookup(true);
  createColumns(new TreeColumn[0], new int[0]);
  viewer.setContentProvider(getContentProvider());
  /*
   * Workaround for TeeColumn.getWidth() returning 0 in some cases, see
   * https://bugs.eclipse.org/341865 for details.
   */
  viewer.getTree().addPaintListener(new PaintListener() {
    @Override
    public void paintControl(PaintEvent e) {
      treePainted= true;
      viewer.getTree().removePaintListener(this);
    }
  });
}

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

treeViewer.getTree().addPaintListener(new PaintListener() {
  public void paintControl(PaintEvent e) {
    validateLastItem();

代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui

tree.addPaintListener(new PaintListener() {
  @Override
  public void paintControl(PaintEvent e) {

相关文章

Tree类方法