charite.christo
Class ChTransferable
java.lang.Object
charite.christo.ChTransferable
- All Implemented Interfaces:
- java.awt.datatransfer.Transferable
public class ChTransferable
- extends java.lang.Object
- implements java.awt.datatransfer.Transferable
HELP
Actions which are performed when objects are dropped on certain targets.
| D r o p p e d O b j e c t s |
Drop target |
Proteins |
Residue selections |
Hetero groups |
Images |
Proteins |
|
Copy selection to protein |
Add heteros to protein |
Set icon image |
Residue selections |
|
|
|
Set background image |
3D-View |
Add 3D-structure to view |
Highlight atoms/amino acids in 3D |
Add hetero structure to view |
|
Alignment panel |
Load or un-hide protein |
Copy selection to protein |
Add heteros to protein |
|
Tree-node "Hidden" |
Hide proteins |
|
|
|
Desktop or file browser |
Copy protein file |
|
Write PDB-file |
|
Objects are dragged with the mouse and dropped on a target (see WIKI:Drag_and_drop). The effect depends on the objects that are dragged and the
destination where they are dragged onto. On Windows and Linux the presumed operation is written at the bottom of the Strap frame.
The page Dragging Web-links contains examples of protein and alignment Web links that can be dragged.
Constructor Summary |
ChTransferable(java.lang.Object[] alist,
int options)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KOPT_RENDERER_TEXT
public static final java.lang.String KOPT_RENDERER_TEXT
- See Also:
- Constant Field Values
FILE
public static final int FILE
- See Also:
- Constant Field Values
OBJECT
public static final int OBJECT
- See Also:
- Constant Field Values
ChTransferable
public ChTransferable(java.lang.Object[] alist,
int options)
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
throws java.awt.datatransfer.UnsupportedFlavorException
- Specified by:
getTransferData
in interface java.awt.datatransfer.Transferable
- Throws:
java.awt.datatransfer.UnsupportedFlavorException
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
isDataFlavorSupported
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
getData
public static java.lang.Object getData(java.lang.String type,
java.awt.datatransfer.Transferable t)
reportDataFlavors
public static java.lang.String reportDataFlavors(java.awt.datatransfer.Transferable t)
'The most important classes are StrapAlign, Protein and StrapEvent.'