org.jgraph.graph.GraphTransferable Class Reference

Inheritance diagram for org.jgraph.graph.GraphTransferable:

org.jgraph.plaf.basic.BasicGraphTransferable List of all members.

Public Member Functions

 GraphTransferable (Object[] cells, Map attrMap, Rectangle2D bounds, ConnectionSet cs, ParentMap pm)
Object[] getCells ()
ConnectionSet getConnectionSet ()
ParentMap getParentMap ()
Map getAttributeMap ()
Rectangle2D getBounds ()
void lostOwnership (Clipboard clip, Transferable contents)
DataFlavor[] getRicherFlavors ()
Object getRicherData (DataFlavor flavor) throws UnsupportedFlavorException
boolean isPlainSupported ()
String getPlainData ()
boolean isHTMLSupported ()
String getHTMLData ()

Static Public Attributes

static DataFlavor dataFlavor

Protected Attributes

Object[] cells
ConnectionSet cs
ParentMap pm
Map attributeMap
Rectangle2D bounds

Static Package Functions

 [static initializer]

Detailed Description

An object that represents the clipboard contents for a graph selection. The object has three representations:

1. Richer: The cells, view attributes and connections for this selection are stored as separate datastructures, which can be inserted using the GraphModel.insert() method. 2. HTML: If one cell is selected, the userObject is returned as HTML. 3. Plain: The userObject of the selected cell is returned as plain text.

Author:
Gaudenz Alder
Version:
1.0 1/1/02


Constructor & Destructor Documentation

org.jgraph.graph.GraphTransferable.GraphTransferable Object[]  cells,
Map  attrMap,
Rectangle2D  bounds,
ConnectionSet  cs,
ParentMap  pm
 

Constructs a new transferable selection for cells, csand attrMap.


Member Function Documentation

org.jgraph.graph.GraphTransferable.[static initializer]  )  [static, package]
 

Reimplemented from org.jgraph.plaf.basic.BasicGraphTransferable.

Map org.jgraph.graph.GraphTransferable.getAttributeMap  ) 
 

Returns a map of (GraphCell, Map)-pairs that represent the view attributes for the respecive cells.

Rectangle2D org.jgraph.graph.GraphTransferable.getBounds  ) 
 

Object [] org.jgraph.graph.GraphTransferable.getCells  ) 
 

Returns the cells that represent the selection.

ConnectionSet org.jgraph.graph.GraphTransferable.getConnectionSet  ) 
 

Returns the connections between cells (and possibly other, unselected cells).

String org.jgraph.graph.GraphTransferable.getHTMLData  ) 
 

Fetch the data in a text/html format.

Reimplemented from org.jgraph.plaf.basic.BasicGraphTransferable.

ParentMap org.jgraph.graph.GraphTransferable.getParentMap  ) 
 

String org.jgraph.graph.GraphTransferable.getPlainData  ) 
 

Fetch the data in a text/plain format.

Reimplemented from org.jgraph.plaf.basic.BasicGraphTransferable.

Object org.jgraph.graph.GraphTransferable.getRicherData DataFlavor  flavor  )  throws UnsupportedFlavorException
 

Fetch the data in a jvm-localreference format.

Reimplemented from org.jgraph.plaf.basic.BasicGraphTransferable.

DataFlavor [] org.jgraph.graph.GraphTransferable.getRicherFlavors  ) 
 

Returns the jvm-localreference flavors of the transferable.

Reimplemented from org.jgraph.plaf.basic.BasicGraphTransferable.

boolean org.jgraph.graph.GraphTransferable.isHTMLSupported  ) 
 

Returns true if the transferable support a text/html format.

Reimplemented from org.jgraph.plaf.basic.BasicGraphTransferable.

boolean org.jgraph.graph.GraphTransferable.isPlainSupported  ) 
 

Returns true if the transferable support a text/plain format.

Reimplemented from org.jgraph.plaf.basic.BasicGraphTransferable.

void org.jgraph.graph.GraphTransferable.lostOwnership Clipboard  clip,
Transferable  contents
 


Member Data Documentation

Map org.jgraph.graph.GraphTransferable.attributeMap [protected]
 

(Cell, Map) entries that hold the view attributes for the cells.

Rectangle2D org.jgraph.graph.GraphTransferable.bounds [protected]
 

Rectangle that defines the former bounds of the views.

Object [] org.jgraph.graph.GraphTransferable.cells [protected]
 

Selected cells.

ConnectionSet org.jgraph.graph.GraphTransferable.cs [protected]
 

Object that describes the connection between cells.

DataFlavor org.jgraph.graph.GraphTransferable.dataFlavor [static]
 

Local Machine Reference Data Flavor.

ParentMap org.jgraph.graph.GraphTransferable.pm [protected]
 

Object that describes the group structure between cells.


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