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

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

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

Bidi.isMixed介绍

[英]Indicates whether the text direction is mixed.
[中]指示文本方向是否混合。

代码示例

代码示例来源:origin: geotools/geotools

length,
      Font.LAYOUT_RIGHT_TO_LEFT);
} else if (bidi.isMixed()) {
  String r = "";
  for (int i = 0; i < bidi.getRunCount(); i++) {

代码示例来源:origin: apache/pdfbox

if (!bidi.isMixed() && bidi.getBaseLevel() == Bidi.DIRECTION_LEFT_TO_RIGHT)

代码示例来源:origin: at.bestsolution.eclipse/com.ibm.icu.base

/**
 * Return true if the line is not left-to-right or right-to-left. This means
 * it either has mixed runs of left-to-right and right-to-left text, or the
 * base direction differs from the direction of the only run of text.
 *
 * @return true if the line is not left-to-right or right-to-left.
 *
 * @throws IllegalStateException if this call is not preceded by a successful
 *         call to <code>setPara</code>
 * @stable ICU 3.8
 */
public boolean isMixed()
{
  return bidi.isMixed();
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.ibm.icu.base

/**
 * Return true if the line is not left-to-right or right-to-left. This means
 * it either has mixed runs of left-to-right and right-to-left text, or the
 * base direction differs from the direction of the only run of text.
 *
 * @return true if the line is not left-to-right or right-to-left.
 *
 * @throws IllegalStateException if this call is not preceded by a successful
 *         call to <code>setPara</code>
 * @stable ICU 3.8
 */
public boolean isMixed()
{
  return bidi.isMixed();
}

代码示例来源:origin: stackoverflow.com

if (!bidi.isMixed()) return input;

代码示例来源:origin: com.github.vatbub/common.view.core

if (style == ELLIPSIS && !new Bidi(text, Bidi.DIRECTION_LEFT_TO_RIGHT).isMixed()) {
  int hit = computeTruncationIndex(font, text, width - ellipsisWidth);
  if (hit < 0 || hit >= text.length()) {

代码示例来源:origin: org.apache.pdfbox/pdfbox

if (!bidi.isMixed() && bidi.getBaseLevel() == Bidi.DIRECTION_LEFT_TO_RIGHT)

代码示例来源:origin: com.github.lafa.pdfbox/pdfbox

if (!bidi.isMixed() && bidi.getBaseLevel() == Bidi.DIRECTION_LEFT_TO_RIGHT)

代码示例来源:origin: org.geotools/gt-render

return font.layoutGlyphVector(graphics.getFontRenderContext(), chars, 0, length,
      Font.LAYOUT_RIGHT_TO_LEFT);
} else if (bidi.isMixed()) {
  String r = "";
  for (int i=0; i<bidi.getRunCount(); i++) {

相关文章