Interface HasIOSClipboard

    • Method Detail

      • setClipboardImage

        default void setClipboardImage​(java.awt.image.BufferedImage img)
                                throws java.io.IOException
        Set an image to the clipboard.
        Parameters:
        img - the actual image to be set.
        Throws:
        java.io.IOException - if the image cannot be decoded in PNG representation
      • getClipboardImage

        default java.awt.image.BufferedImage getClipboardImage()
                                                        throws java.io.IOException
        Get an image from the clipboard.
        Returns:
        the actual image instance.
        Throws:
        java.io.IOException - If the returned image cannot be decoded or if the clipboard is empty.
      • setClipboardUrl

        default void setClipboardUrl​(java.net.URL url)
        Set an URL to the clipboard.
        Parameters:
        url - the actual URL to set.
      • getClipboardUrl

        default java.net.URL getClipboardUrl()
                                      throws java.net.MalformedURLException
        Get an URL from the clipboard.
        Returns:
        the actual URL instance.
        Throws:
        java.net.MalformedURLException - if the URL in the clipboard is not valid or if the clipboard is empty.