net.clackrouter.jgraph.pad
Class GPGraphUI.GraphTransferHandler
java.lang.Object
javax.swing.TransferHandler
net.clackrouter.jgraph.pad.GPGraphUI.GraphTransferHandler
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- GPGraphUI.GPTransferHandler
- Enclosing class:
- GPGraphUI
public class GPGraphUI.GraphTransferHandler
- extends javax.swing.TransferHandler
- See Also:
- Serialized Form
Field Summary |
protected java.lang.Object |
in
|
protected int |
inCount
|
protected java.lang.Object |
out
|
Fields inherited from class javax.swing.TransferHandler |
COPY, COPY_OR_MOVE, MOVE, NONE |
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)
|
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)
|
int |
getSourceActions(javax.swing.JComponent c)
|
boolean |
importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)
|
protected boolean |
importDataImpl(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)
|
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 |
out
protected java.lang.Object out
in
protected java.lang.Object in
inCount
protected int inCount
GPGraphUI.GraphTransferHandler
public GPGraphUI.GraphTransferHandler()
canImport
public boolean canImport(javax.swing.JComponent comp,
java.awt.datatransfer.DataFlavor[] flavors)
- Overrides:
canImport
in class javax.swing.TransferHandler
createTransferable
public java.awt.datatransfer.Transferable createTransferable()
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
- Overrides:
createTransferable
in class javax.swing.TransferHandler
create
protected GraphTransferable create(JGraph graph,
java.lang.Object[] cells,
java.util.Map viewAttributes,
java.awt.geom.Rectangle2D bounds,
ConnectionSet cs,
ParentMap pm)
exportDone
protected void exportDone(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable data,
int action)
- Overrides:
exportDone
in class javax.swing.TransferHandler
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
- Overrides:
getSourceActions
in class javax.swing.TransferHandler
importData
public boolean importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)
- Overrides:
importData
in class javax.swing.TransferHandler
importDataImpl
protected boolean importDataImpl(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)