public class BPDGraphUI.PETransferHandler extends TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport| 限定符和类型 | 字段和说明 |
|---|---|
protected Object |
in |
protected int |
inCount |
protected boolean |
isCut |
protected Object |
out |
COPY, COPY_OR_MOVE, LINK, MOVE, NONE| 构造器和说明 |
|---|
PETransferHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canImport(JComponent comp,
DataFlavor[] flavors) |
protected org.jgraph.graph.GraphTransferable |
create(org.jgraph.JGraph graph,
Object[] cells,
Map viewAttributes,
Rectangle2D bounds,
org.jgraph.graph.ConnectionSet cs,
org.jgraph.graph.ParentMap pm) |
protected Transferable |
createTransferable(JComponent c) |
protected void |
exportDone(JComponent comp,
Transferable data,
int action) |
void |
exportToClipboard(JComponent compo,
Clipboard clip,
int action) |
int |
getSourceActions(JComponent c) |
protected boolean |
handleInsert(org.jgraph.JGraph graph,
org.jgraph.graph.GraphTransferable t)
This method was changed to support pasteAt action.
|
boolean |
importData(JComponent comp,
Transferable t) |
protected void |
removeCells(org.jgraph.JGraph graph,
Object[] cells) |
protected Object in
protected Object out
protected boolean isCut
protected int inCount
public boolean canImport(JComponent comp, DataFlavor[] flavors)
canImport 在类中 TransferHandlerprotected final Transferable createTransferable(JComponent c)
createTransferable 在类中 TransferHandlerprotected org.jgraph.graph.GraphTransferable create(org.jgraph.JGraph graph,
Object[] cells,
Map viewAttributes,
Rectangle2D bounds,
org.jgraph.graph.ConnectionSet cs,
org.jgraph.graph.ParentMap pm)
protected void exportDone(JComponent comp, Transferable data, int action)
exportDone 在类中 TransferHandlerpublic void exportToClipboard(JComponent compo, Clipboard clip, int action)
exportToClipboard 在类中 TransferHandlerpublic int getSourceActions(JComponent c)
getSourceActions 在类中 TransferHandlerpublic boolean importData(JComponent comp, Transferable t)
importData 在类中 TransferHandlerprotected boolean handleInsert(org.jgraph.JGraph graph,
org.jgraph.graph.GraphTransferable t)
protected void removeCells(org.jgraph.JGraph graph,
Object[] cells)
Copyright © 2023 onecode. All rights reserved.