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