| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void |
| GhostedDragImageDemo | back to summary |
|---|---|
| public GhostedDragImageDemo() | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Modifier and Type | Method and Description |
|---|---|
| public void | setIcon(Icon
the default icon this component will display icon)Overrides javax. |
| dragging | back to summary |
|---|---|
| private boolean dragging | |
| DragLabel | back to summary |
|---|---|
| public DragLabel(Icon icon) | |
| setIcon | back to summary |
|---|---|
| public void setIcon(Icon icon) Overrides javax. Doc from javax. Defines the icon this component will display. If the value of icon is null, nothing is displayed. The default value of this property is null. This is a JavaBeans bound property.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final DataFlavor[] | |
| private Image | |
| public static final DataFlavor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getTransferData(DataFlavor
the requested flavor for the data flavor)Implements java. |
| public DataFlavor[] | getTransferDataFlavors()
Implements java. |
| public boolean | isDataFlavorSupported(DataFlavor
the requested flavor for the data flavor)Implements java. |
| public void | lostOwnership(Clipboard
the clipboard that is no longer owned clipboard, Transferable the contents which this owner had placed on the
transferable)clipboardImplements java. |
| FLAVORS | back to summary |
|---|---|
| private static final DataFlavor[] FLAVORS | |
| image | back to summary |
|---|---|
| private Image image | |
| IMAGE_FLAVOR | back to summary |
|---|---|
| public static final DataFlavor IMAGE_FLAVOR | |
| ImageSelection | back to summary |
|---|---|
| public ImageSelection(Image image) | |
| getTransferData | back to summary |
|---|---|
| public Object getTransferData(DataFlavor flavor) Implements java. Doc from java. Returns an object which represents the data to be transferred. The class of the object returned is defined by the representation class of the flavor.
| |
| getTransferDataFlavors | back to summary |
|---|---|
| public DataFlavor[] getTransferDataFlavors() Implements java. Doc from java. Returns an array of DataFlavor objects indicating the flavors the data can be provided in. The array should be ordered according to preference for providing the data (from most richly descriptive to least descriptive).
| |
| isDataFlavorSupported | back to summary |
|---|---|
| public boolean isDataFlavorSupported(DataFlavor flavor) Implements java. Doc from java. Returns whether or not the specified data flavor is supported for this object.
| |
| lostOwnership | back to summary |
|---|---|
| public void lostOwnership(Clipboard clipboard, Transferable transferable) Implements java. Doc from java. Notifies this object that it is no longer the clipboard owner. This method will be called when another application or another object within this application asserts ownership of the clipboard.
| |