public interface Position
在一个位置的两个字符之间的一Position对象点。当周围的内容被改变的对象,Position调整偏移自动反映变化。如果内容是插入或删除的Position对象的位置,然后Position递增或递减,其偏移量,分别以指向相同的位置。如果文件的一部分被包含Position的偏移,然后Position的偏移是对被删除的区域开始。例如,如果一个Position具有5的偏移和区2-10去掉,然后Position的偏移为2。
与偏移0 Position是一个特殊的情况下。当文档内容被改变时,它不会改变它的偏移量。
| Modifier and Type | Interface and Description |
|---|---|
static class |
Position.Bias
类型安全枚举指示偏差模型中的位置。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.