com.jgraph.plaf.basic
Class BasicGraphUI.GraphTransferHandler

java.lang.Object
  extended byjavax.swing.TransferHandler
      extended bycom.jgraph.plaf.basic.BasicGraphUI.GraphTransferHandler
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
BasicGraphUI

public class BasicGraphUI.GraphTransferHandler
extends javax.swing.TransferHandler

See Also:
Serialized Form

Field Summary
protected  java.lang.Object in
           
protected  int inCount
           
protected  boolean isCut
           
protected  java.lang.Object out
           
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
BasicGraphUI.GraphTransferHandler()
           
 
Method Summary
 boolean canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] flavors)
           
protected  GraphTransferable create(JGraph graph, java.lang.Object[] cells, ConnectionSet cs, java.util.Map viewAttributes, java.awt.Rectangle bounds)
           
 java.awt.datatransfer.Transferable createTransferable()
           
protected  java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
           
protected  void exportDone(javax.swing.JComponent comp, java.awt.datatransfer.Transferable data, int action)
           
 void exportToClipboard(javax.swing.JComponent compo, java.awt.datatransfer.Clipboard clip, int action)
           
 int getSourceActions(javax.swing.JComponent c)
           
protected  boolean handleInsert(JGraph graph, GraphTransferable t)
           
 boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
           
protected  void removeCells(JGraph graph, java.lang.Object[] cells)
           
 
Methods inherited from class javax.swing.TransferHandler
exportAsDrag, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected java.lang.Object in

out

protected java.lang.Object out

isCut

protected boolean isCut

inCount

protected int inCount
Constructor Detail

BasicGraphUI.GraphTransferHandler

public BasicGraphUI.GraphTransferHandler()
Method Detail

canImport

public boolean canImport(javax.swing.JComponent comp,
                         java.awt.datatransfer.DataFlavor[] flavors)

createTransferable

public java.awt.datatransfer.Transferable createTransferable()

createTransferable

protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)

create

protected GraphTransferable create(JGraph graph,
                                   java.lang.Object[] cells,
                                   ConnectionSet cs,
                                   java.util.Map viewAttributes,
                                   java.awt.Rectangle bounds)

exportDone

protected void exportDone(javax.swing.JComponent comp,
                          java.awt.datatransfer.Transferable data,
                          int action)

exportToClipboard

public void exportToClipboard(javax.swing.JComponent compo,
                              java.awt.datatransfer.Clipboard clip,
                              int action)

getSourceActions

public int getSourceActions(javax.swing.JComponent c)

importData

public boolean importData(javax.swing.JComponent comp,
                          java.awt.datatransfer.Transferable t)

handleInsert

protected boolean handleInsert(JGraph graph,
                               GraphTransferable t)

removeCells

protected void removeCells(JGraph graph,
                           java.lang.Object[] cells)