本文整理汇总了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);
}