当前位置: 首页>>代码示例>>Java>>正文


Java BidiBase.reorderVisually方法代码示例

本文整理汇总了Java中sun.text.bidi.BidiBase.reorderVisually方法的典型用法代码示例。如果您正苦于以下问题:Java BidiBase.reorderVisually方法的具体用法?Java BidiBase.reorderVisually怎么用?Java BidiBase.reorderVisually使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sun.text.bidi.BidiBase的用法示例。


在下文中一共展示了BidiBase.reorderVisually方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: reorderVisually

import sun.text.bidi.BidiBase; //导入方法依赖的package包/类
/**
 * Reorder the objects in the array into visual order based on their levels.
 * This is a utility function to use when you have a collection of objects
 * representing runs of text in logical order, each run containing text
 * at a single level.  The elements at <code>index</code> from
 * <code>objectStart</code> up to <code>objectStart + count</code>
 * in the objects array will be reordered into visual order assuming
 * each run of text has the level indicated by the corresponding element
 * in the levels array (at <code>index - objectStart + levelStart</code>).
 *
 * @param levels an array representing the bidi level of each object
 * @param levelStart the start position in the levels array
 * @param objects the array of objects to be reordered into visual order
 * @param objectStart the start position in the objects array
 * @param count the number of objects to reorder
 */
public static void reorderVisually(byte[] levels, int levelStart, Object[] objects, int objectStart, int count) {
    BidiBase.reorderVisually(levels, levelStart, objects, objectStart, count);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:Bidi.java


注:本文中的sun.text.bidi.BidiBase.reorderVisually方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。