org.jgraph.plaf.basic.BasicGraphTransferable Class Reference

Inheritance diagram for org.jgraph.plaf.basic.BasicGraphTransferable:

org.jgraph.graph.GraphTransferable List of all members.

Public Member Functions

DataFlavor[] getTransferDataFlavors ()
boolean isDataFlavorSupported (DataFlavor flavor)
Object getTransferData (DataFlavor flavor) throws UnsupportedFlavorException, IOException

Protected Member Functions

boolean isRicherFlavor (DataFlavor flavor)
DataFlavor[] getRicherFlavors ()
Object getRicherData (DataFlavor flavor) throws UnsupportedFlavorException
boolean isHTMLFlavor (DataFlavor flavor)
boolean isHTMLSupported ()
String getHTMLData ()
boolean isPlainFlavor (DataFlavor flavor)
boolean isPlainSupported ()
String getPlainData ()
boolean isStringFlavor (DataFlavor flavor)

Static Package Functions

 [static initializer]

Static Private Attributes

static DataFlavor[] htmlFlavors
static DataFlavor[] stringFlavors
static DataFlavor[] plainFlavors

Member Function Documentation

org.jgraph.plaf.basic.BasicGraphTransferable.[static initializer]  )  [static, package]
 

Reimplemented in org.jgraph.graph.GraphTransferable.

String org.jgraph.plaf.basic.BasicGraphTransferable.getHTMLData  )  [protected]
 

Fetch the data in a text/html format

Reimplemented in org.jgraph.graph.GraphTransferable.

String org.jgraph.plaf.basic.BasicGraphTransferable.getPlainData  )  [protected]
 

Fetch the data in a text/plain format.

Reimplemented in org.jgraph.graph.GraphTransferable.

Object org.jgraph.plaf.basic.BasicGraphTransferable.getRicherData DataFlavor  flavor  )  throws UnsupportedFlavorException [protected]
 

Reimplemented in org.jgraph.graph.GraphTransferable.

DataFlavor [] org.jgraph.plaf.basic.BasicGraphTransferable.getRicherFlavors  )  [protected]
 

Some subclasses will have flavors that are more descriptive than HTML or plain text. If this method returns a non-null value, it will be placed at the start of the array of supported flavors.

Reimplemented in org.jgraph.graph.GraphTransferable.

Object org.jgraph.plaf.basic.BasicGraphTransferable.getTransferData DataFlavor  flavor  )  throws UnsupportedFlavorException, IOException
 

Returns an object which represents the data to be transferred. The class of the object returned is defined by the representation class of the flavor.

Parameters:
flavor the requested flavor for the data
See also:
DataFlavor.getRepresentationClass
Exceptions:
IOException if the data is no longer available in the requested flavor.
UnsupportedFlavorException if the requested data flavor is not supported.

DataFlavor [] org.jgraph.plaf.basic.BasicGraphTransferable.getTransferDataFlavors  ) 
 

Returns an array of DataFlavor objects indicating the flavors the data can be provided in. The array should be ordered according to preference for providing the data (from most richly descriptive to least descriptive).

Returns:
an array of data flavors in which this data can be transferred

boolean org.jgraph.plaf.basic.BasicGraphTransferable.isDataFlavorSupported DataFlavor  flavor  ) 
 

Returns whether or not the specified data flavor is supported for this object.

Parameters:
flavor the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported

boolean org.jgraph.plaf.basic.BasicGraphTransferable.isHTMLFlavor DataFlavor  flavor  )  [protected]
 

Returns whether or not the specified data flavor is an HTML flavor that is supported.

Parameters:
flavor the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported

boolean org.jgraph.plaf.basic.BasicGraphTransferable.isHTMLSupported  )  [protected]
 

Whether the HTML flavors are offered. If so, the method getHTMLData should be implemented to provide something reasonable.

Reimplemented in org.jgraph.graph.GraphTransferable.

boolean org.jgraph.plaf.basic.BasicGraphTransferable.isPlainFlavor DataFlavor  flavor  )  [protected]
 

Returns whether or not the specified data flavor is an plain flavor that is supported.

Parameters:
flavor the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported

boolean org.jgraph.plaf.basic.BasicGraphTransferable.isPlainSupported  )  [protected]
 

Whether the plain text flavors are offered. If so, the method getPlainData should be implemented to provide something reasonable.

Reimplemented in org.jgraph.graph.GraphTransferable.

boolean org.jgraph.plaf.basic.BasicGraphTransferable.isRicherFlavor DataFlavor  flavor  )  [protected]
 

boolean org.jgraph.plaf.basic.BasicGraphTransferable.isStringFlavor DataFlavor  flavor  )  [protected]
 

Returns whether or not the specified data flavor is a String flavor that is supported.

Parameters:
flavor the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported


Member Data Documentation

DataFlavor [] org.jgraph.plaf.basic.BasicGraphTransferable.htmlFlavors [static, private]
 

DataFlavor [] org.jgraph.plaf.basic.BasicGraphTransferable.plainFlavors [static, private]
 

DataFlavor [] org.jgraph.plaf.basic.BasicGraphTransferable.stringFlavors [static, private]
 


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