本文整理了Java中java.text.Bidi.createLineBidi()
方法的一些代码示例,展示了Bidi.createLineBidi()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bidi.createLineBidi()
方法的具体详情如下:
包路径:java.text.Bidi
类名称:Bidi
方法名:createLineBidi
[英]Creates a new Bidi object containing the information of one line from this object.
[中]创建一个新的Bidi对象,其中包含该对象中一行的信息。
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.ibm.icu.base
/**
* Create a Bidi object representing the bidi information on a line of text
* within the paragraph represented by the current Bidi. This call is not
* required if the entire paragraph fits on one line.
*
* @param lineStart the offset from the start of the paragraph to the start
* of the line.
* @param lineLimit the offset from the start of the paragraph to the limit
* of the line.
*
* @throws IllegalStateException if this call is not preceded by a successful
* call to <code>setPara</code>
* @throws IllegalArgumentException if lineStart and lineLimit are not in the range
* <code>0<=lineStart<lineLimit<=getProcessedLength()</code>,
* or if the specified line crosses a paragraph boundary
* @stable ICU 3.8
*/
public Bidi createLineBidi(int lineStart, int lineLimit)
{
return new Bidi(bidi.createLineBidi(lineStart, lineLimit));
}
代码示例来源:origin: at.bestsolution.eclipse/com.ibm.icu.base
/**
* Create a Bidi object representing the bidi information on a line of text
* within the paragraph represented by the current Bidi. This call is not
* required if the entire paragraph fits on one line.
*
* @param lineStart the offset from the start of the paragraph to the start
* of the line.
* @param lineLimit the offset from the start of the paragraph to the limit
* of the line.
*
* @throws IllegalStateException if this call is not preceded by a successful
* call to <code>setPara</code>
* @throws IllegalArgumentException if lineStart and lineLimit are not in the range
* <code>0<=lineStart<lineLimit<=getProcessedLength()</code>,
* or if the specified line crosses a paragraph boundary
* @stable ICU 3.8
*/
public Bidi createLineBidi(int lineStart, int lineLimit)
{
return new Bidi(bidi.createLineBidi(lineStart, lineLimit));
}
内容来源于网络,如有侵权,请联系作者删除!