org.netbeans.swing.outline.Outline.getCellRect()方法的使用及代码示例

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

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

Outline.getCellRect介绍

暂无

代码示例

代码示例来源:origin: org.rwshop/org.rwshop.nb.motion

@Override
  public void run() {
    Rectangle cell = myJointTree.getCellRect(myRow, n, false);
    Rectangle cell2 = myJointTree.getCellRect(myRow, n+1, false);
    myJointTree.repaint(cell);
    myJointTree.repaint(cell2);
  }
});

代码示例来源:origin: org.rwshop/org.rwshop.nb.motion

@Override
  public void run() {
    Rectangle cell = myJointTree.getCellRect(myRow, n, false);
    myJointTree.repaint(cell);
  }
});

代码示例来源:origin: org.rwshop/org.rwshop.nb.motion

@Override
public void propertyChange(PropertyChangeEvent pce) {
  String name = pce.getPropertyName();
  Integer i = null;
  if(JointGroup.PROP_ENABLED.equals(name)){
    i = 1;
  }else if(JointGroup.PROP_NAME.equals(name)){
    i = 0;
  }else if(JointGroup.PROP_STRUCTURE_CHANGED.equals(name)){
    stopListening();
    buildListeners();
    try{
      SwingUtilities.invokeLater(new UpdateRunnable());
    }catch(Exception ex){
      
    }
    return;
  }
  if(i == null){
    return;
  }
  Rectangle cell = myJointTree.getCellRect(myRow, i, false);
  myJointTree.repaint(cell);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial

void setSelection(int idx) {
  getOutline().getSelectionModel().setValueIsAdjusting(false);
  getOutline().scrollRectToVisible(getOutline().getCellRect(idx, 1, true));
  getOutline().getSelectionModel().setSelectionInterval(idx, idx);
}

代码示例来源:origin: in.jlibs/org-netbeans-swing-outline

TreePath lastChildPath = path.pathByAddingChild(lastChild);
int lastRow = getLayoutCache().getRowForPath(lastChildPath);
Rectangle rect = getCellRect(lastRow, 0, true);
scrollRectToVisible(rect);

相关文章