模块 java.desktop

类 JTextComponent.DropLocation

java.lang.Object
javax.swing.TransferHandler.DropLocation
javax.swing.text.JTextComponent.DropLocation
封闭类:
JTextComponent

public static final class JTextComponent.DropLocation extends TransferHandler.DropLocation
表示 JTextComponent 的放置位置。
自从:
1.6
参见:
  • 方法详情

    • getIndex

      public int getIndex()
      返回应将删除的数据插入关联组件的索引。该索引表示字符之间的位置,如脱字符号所解释的那样。
      返回:
      下降指数
    • getBias

      public Position.Bias  getBias()
      返回下降指数的偏差。
      返回:
      下降偏差
    • toString

      public String  toString()
      返回此放置位置的字符串表示形式。此方法旨在用于调试目的,返回字符串的内容和格式可能因实现而异。
      重写:
      toString 在类 TransferHandler.DropLocation
      返回:
      此放置位置的字符串表示形式