Module ij
Package ij.plugin

Class Clipboard

java.lang.Object
ij.plugin.Clipboard
All Implemented Interfaces:
PlugIn, java.awt.datatransfer.Transferable

public class Clipboard
extends java.lang.Object
implements PlugIn, java.awt.datatransfer.Transferable
Copies/pastes images to/from the system clipboard.
  • Constructor Summary

    Constructors 
    Constructor Description
    Clipboard()  
  • Method Summary

    Modifier and Type Method Description
    static void copyToSystem​(ImagePlus imp)
    Copies the contents of the specified image, or selection, to the system clicpboard.
    java.lang.Object getTransferData​(java.awt.datatransfer.DataFlavor flavor)  
    java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()  
    boolean isDataFlavorSupported​(java.awt.datatransfer.DataFlavor flavor)  
    void run​(java.lang.String arg)
    This method is called when the plugin is loaded.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • run

      public void run​(java.lang.String arg)
      Description copied from interface: PlugIn
      This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
      Specified by:
      run in interface PlugIn
    • copyToSystem

      public static void copyToSystem​(ImagePlus imp)
      Copies the contents of the specified image, or selection, to the system clicpboard.
    • 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
    • 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