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

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

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

Outline.repaint介绍

暂无

代码示例

代码示例来源: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: in.jlibs/org-netbeans-swing-outline

private void change() {
  revalidate();
  repaint();
}

代码示例来源: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.rwshop/org.rwshop.nb.motion

@Override
public void run() {
  setRow(myRow);
  RowModel rm = new JointTreeRowModel(myPropNames);
  TreeModel tm = new JointGroupTreeModel(myJointGroup);
  OutlineModel mdl = DefaultOutlineModel.createOutlineModel(tm, rm);
  myJointTree.setModel(mdl);
  myJointTree.repaint();
}

相关文章