本文整理了Java中org.netbeans.swing.outline.Outline.getCellRect()
方法的一些代码示例,展示了Outline.getCellRect()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.getCellRect()
方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!