javax.swing.text.Segment.setPartialReturn()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(182)

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

Segment.setPartialReturn介绍

暂无

代码示例

代码示例来源:origin: com.google.code.findbugs/findbugs

DocumentCharacterIterator(Document doc) {
  this.doc = doc;
  text = new Segment();
  text.setPartialReturn(true);
  try {
    doc.getText(0, doc.getLength(), text);
  } catch (BadLocationException e) {
    throw new RuntimeException(e);
  }
  segmentEnd = text.count;
}

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

text.setPartialReturn(true);
int offset = startIndex;
int nleft = document.getLength() - startIndex;

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

text.setPartialReturn(false);
document.getText(0, startIndex + 1, text);

代码示例来源:origin: omegat-org/omegat

@Override
protected Void doInBackground() throws Exception {
  Segment seg = new Segment();
  seg.setPartialReturn(true);

相关文章