javax.swing.JEditorPane.setIgnoreRepaint()方法的使用及代码示例

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

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

JEditorPane.setIgnoreRepaint介绍

暂无

代码示例

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

@Override
public void refreshPreview() {
  JEditorPane jep = (JEditorPane) getPreviewComponent();
  try {
    int rm = previewPrefs.getInt(rightMargin, getDefaultAsInt(rightMargin));
    jep.putClientProperty("TextLimitLine", rm); //NOI18N
  }
  catch( NumberFormatException e ) {
    // Ignore it
  }
  jep.setIgnoreRepaint(true);
  jep.setText(previewText);
  
  final BaseDocument bd = (BaseDocument)jep.getDocument();
  final FortranCodeStyle codeStyle = FortranCodeStyle.get(bd, previewPrefs);
  codeStyle.setupLexerAttributes(bd);
  bd.runAtomicAsUser(new Runnable() {
    @Override
    public void run() {
      try {
        new FortranReformatter(bd, codeStyle).reformat();
      } catch (BadLocationException ex) {
        Exceptions.printStackTrace(ex);
      }
    }
  });
  jep.setIgnoreRepaint(false);
  jep.scrollRectToVisible(new Rectangle(0,0,10,10) );
  jep.repaint(100);
}

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

pane.setIgnoreRepaint(true);
  LOGGER.warning(String.format("Can't format %s; it's not BaseDocument.", doc)); //NOI18N
pane.setIgnoreRepaint(false);
pane.scrollRectToVisible(visibleRectangle);
pane.repaint(100);

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

jep.setIgnoreRepaint(true);
jep.setText(previewText);
formatter.reindent(null, jep.getDocument(), 0, jep.getDocument().getLength(), null, false);
jep.setIgnoreRepaint(false);
jep.scrollRectToVisible(new Rectangle(0,0,10,10) );
jep.repaint(100);

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

previewPane.setIgnoreRepaint(true);
refreshPreview(previewPane, p);
previewPane.setIgnoreRepaint(false);
previewPane.scrollRectToVisible(new Rectangle(0,0,10,10) );
previewPane.repaint(100);

相关文章

JEditorPane类方法