public class CaretStateTransferableData extends java.lang.Object implements TextBlockTransferableData
Modifier and Type | Field and Description |
---|---|
int[] |
endOffsets |
static java.awt.datatransfer.DataFlavor |
FLAVOR |
int[] |
startOffsets |
PLAIN_TEXT_PRIORITY
Constructor and Description |
---|
CaretStateTransferableData(int [] startOffsets,
int [] endOffsets) |
Modifier and Type | Method and Description |
---|---|
static boolean |
areEquivalent(CaretStateTransferableData d1,
CaretStateTransferableData d2) |
int |
getCaretCount() |
java.awt.datatransfer.DataFlavor |
getFlavor() |
static CaretStateTransferableData |
getFrom(java.awt.datatransfer.Transferable t) |
int |
getOffsetCount() |
int |
getOffsets(int[] offsets,
int index) |
int |
setOffsets(int[] offsets,
int index) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
public static final java.awt.datatransfer.DataFlavor FLAVOR
public final int[] startOffsets
public final int[] endOffsets
public CaretStateTransferableData(int [] startOffsets, int [] endOffsets)
public java.awt.datatransfer.DataFlavor getFlavor()
getFlavor
in interface TextBlockTransferableData
public int getOffsetCount()
getOffsetCount
in interface TextBlockTransferableData
public int getOffsets(int[] offsets, int index)
getOffsets
in interface TextBlockTransferableData
public int setOffsets(int[] offsets, int index)
setOffsets
in interface TextBlockTransferableData
public int getCaretCount()
public static CaretStateTransferableData getFrom(java.awt.datatransfer.Transferable t)
public static boolean areEquivalent(CaretStateTransferableData d1, CaretStateTransferableData d2)