Class JaxoClipboard

java.lang.Object
net.sf.jaxodraw.gui.JaxoClipboard

public class JaxoClipboard extends Object
A Clipboard for JaxoGraphs.
  • Constructor Details

    • JaxoClipboard

      public JaxoClipboard(Component parent)
      Constructor.
      Parameters:
      parent - the parent component. Not null.
  • Method Details

    • canPasteGraphFromSystemClipboard

      protected boolean canPasteGraphFromSystemClipboard()
      Check if the system clipboard contains a JaxoGraph.
      Returns:
      true if the system clipboard contains a JaxoGraph, false otherwise.
    • getSystemClipboardGraph

      protected JaxoGraph getSystemClipboardGraph()
      Graph on the system clipboard.
      Returns:
      the current graph on the system clipboard, or null if none.
    • putToSystemClipboard

      protected void putToSystemClipboard(JaxoGraph g)
      Make 'g' the contents of the system clipboard.
      Parameters:
      g - the graph to put on the clipboard.