net.clackrouter.jgraph.pad
Class GPGraphUI.GPTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by net.clackrouter.jgraph.pad.GPGraphUI.GraphTransferHandler
          extended by net.clackrouter.jgraph.pad.GPGraphUI.GPTransferHandler
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
GPGraphUI

public class GPGraphUI.GPTransferHandler
extends GPGraphUI.GraphTransferHandler

TransferHandler that can import text.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.clackrouter.jgraph.pad.GPGraphUI.GraphTransferHandler
in, inCount, out
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
GPGraphUI.GPTransferHandler()
           
 
Method Summary
 boolean canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] flavors)
           
protected  GraphTransferable create(JGraph graph, java.lang.Object[] cells, java.util.Map viewAttributes, java.awt.geom.Rectangle2D bounds, ConnectionSet cs, ParentMap pm)
           
 boolean importDataImpl(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
           
 
Methods inherited from class net.clackrouter.jgraph.pad.GPGraphUI.GraphTransferHandler
createTransferable, createTransferable, exportDone, getSourceActions, importData
 
Methods inherited from class javax.swing.TransferHandler
exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPGraphUI.GPTransferHandler

public GPGraphUI.GPTransferHandler()
Method Detail

create

protected GraphTransferable create(JGraph graph,
                                   java.lang.Object[] cells,
                                   java.util.Map viewAttributes,
                                   java.awt.geom.Rectangle2D bounds,
                                   ConnectionSet cs,
                                   ParentMap pm)
Overrides:
create in class GPGraphUI.GraphTransferHandler

canImport

public boolean canImport(javax.swing.JComponent comp,
                         java.awt.datatransfer.DataFlavor[] flavors)
Overrides:
canImport in class GPGraphUI.GraphTransferHandler

importDataImpl

public boolean importDataImpl(javax.swing.JComponent comp,
                              java.awt.datatransfer.Transferable t)
Overrides:
importDataImpl in class GPGraphUI.GraphTransferHandler