JavaTM Platform
Standard Ed. 6

javax.swing.text
クラス 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
関連項目:
JTextComponent.getDropLocation()

メソッドの概要
 Position.Bias getBias()
          ドロップインデックスのバイアスを返します。
 int getIndex()
          ドロップされたデータを挿入する、関連コンポーネント内のインデックス位置を返します。
 String toString()
          このドロップ位置の文字列表現を返します。
 
クラス javax.swing.TransferHandler.DropLocation から継承されたメソッド
getDropPoint
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

メソッドの詳細

getIndex

public int getIndex()
ドロップされたデータを挿入する、関連コンポーネント内のインデックス位置を返します。このインデックスは、キャレットで解釈できるように、文字と文字の間の位置を表します。

戻り値:
ドロップインデックス

getBias

public Position.Bias getBias()
ドロップインデックスのバイアスを返します。

戻り値:
ドロップバイアス

toString

public String toString()
このドロップ位置の文字列表現を返します。このメソッドはデバッグ用であり、返される文字列の内容および形式は実装によって異なります。

オーバーライド:
クラス TransferHandler.DropLocation 内の toString
戻り値:
このドロップ位置の文字列表現

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。