org.jgraph.graph.GraphTransferHandler Class Reference

List of all members.

Public Member Functions

boolean canImport (JComponent comp, DataFlavor[] flavors)
Transferable createTransferableForGraph (JGraph graph)
int getSourceActions (JComponent c)
boolean importData (JComponent comp, Transferable t)
boolean isAlwaysReceiveAsCopyAction ()
void setAlwaysReceiveAsCopyAction (boolean alwaysReceiveAsCopyAction)

Protected Member Functions

Transferable createTransferable (JComponent c)
Transferable createTransferable (JGraph graph, Object[] cells)
GraphTransferable create (JGraph graph, Object[] cells, Map viewAttributes, Rectangle2D bounds, ConnectionSet cs, ParentMap pm)
void exportDone (JComponent comp, Transferable data, int action)
void handleExternalDrop (JGraph graph, Object[] cells, Map nested, ConnectionSet cs, ParentMap pm, double dx, double dy)
boolean importDataImpl (JComponent comp, Transferable t)

Protected Attributes

boolean alwaysReceiveAsCopyAction = false
Object out
Object in
int inCount = 0

Detailed Description

Author:
Gaudenz Alder
Default datatransfer handler.


Member Function Documentation

boolean org.jgraph.graph.GraphTransferHandler.canImport JComponent  comp,
DataFlavor[]  flavors
 

GraphTransferable org.jgraph.graph.GraphTransferHandler.create JGraph  graph,
Object[]  cells,
Map  viewAttributes,
Rectangle2D  bounds,
ConnectionSet  cs,
ParentMap  pm
[protected]
 

Transferable org.jgraph.graph.GraphTransferHandler.createTransferable JGraph  graph,
Object[]  cells
[protected]
 

Transferable org.jgraph.graph.GraphTransferHandler.createTransferable JComponent  c  )  [protected]
 

Transferable org.jgraph.graph.GraphTransferHandler.createTransferableForGraph JGraph  graph  ) 
 

void org.jgraph.graph.GraphTransferHandler.exportDone JComponent  comp,
Transferable  data,
int  action
[protected]
 

int org.jgraph.graph.GraphTransferHandler.getSourceActions JComponent  c  ) 
 

void org.jgraph.graph.GraphTransferHandler.handleExternalDrop JGraph  graph,
Object[]  cells,
Map  nested,
ConnectionSet  cs,
ParentMap  pm,
double  dx,
double  dy
[protected]
 

boolean org.jgraph.graph.GraphTransferHandler.importData JComponent  comp,
Transferable  t
 

boolean org.jgraph.graph.GraphTransferHandler.importDataImpl JComponent  comp,
Transferable  t
[protected]
 

boolean org.jgraph.graph.GraphTransferHandler.isAlwaysReceiveAsCopyAction  ) 
 

Returns:
Returns the alwaysReceiveAsCopyAction.

void org.jgraph.graph.GraphTransferHandler.setAlwaysReceiveAsCopyAction boolean  alwaysReceiveAsCopyAction  ) 
 

Parameters:
alwaysReceiveAsCopyAction The alwaysReceiveAsCopyAction to set.


Member Data Documentation

boolean org.jgraph.graph.GraphTransferHandler.alwaysReceiveAsCopyAction = false [protected]
 

Controls if all inserts should be handled as external drops even if all cells are already in the graph model. This is useful if the enclosing component does not allow moving.

Object org.jgraph.graph.GraphTransferHandler.in [protected]
 

int org.jgraph.graph.GraphTransferHandler.inCount = 0 [protected]
 

Object org.jgraph.graph.GraphTransferHandler.out [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:16 2006 for Digimod by  doxygen 1.4.6-NO