Package net.sf.freecol.client.gui.panel
Class ImageSelection
- java.lang.Object
-
- net.sf.freecol.client.gui.panel.ImageSelection
-
- All Implemented Interfaces:
java.awt.datatransfer.Transferable
public final class ImageSelection extends java.lang.Object implements java.awt.datatransfer.Transferable
Represents an image selection that can be selected and dragged/dropped to/from Swing components.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JLabel
label
TheJLabel
to transfer.
-
Constructor Summary
Constructors Constructor Description ImageSelection(javax.swing.JLabel label)
Create a new image selection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getTransferData(java.awt.datatransfer.DataFlavor flavor)
java.awt.datatransfer.DataFlavor[]
getTransferDataFlavors()
boolean
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
-
-
-
Method Detail
-
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
- Specified by:
getTransferData
in interfacejava.awt.datatransfer.Transferable
-
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interfacejava.awt.datatransfer.Transferable
-
isDataFlavorSupported
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interfacejava.awt.datatransfer.Transferable
-
-