java.text.Bidi.createLineBidi()方法的使用及代码示例

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

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

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&lt;=lineStart&lt;lineLimit&lt;=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&lt;=lineStart&lt;lineLimit&lt;=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));
}

相关文章