org.jgraph.plaf.basic
public class BasicGraphTransferable extends Object implements Transferable, UIResource, Serializable
Method Summary | |
---|---|
protected String | getHTMLData()
Fetch the data in a text/html format |
protected String | getPlainData()
Fetch the data in a text/plain format. |
protected Object | getRicherData(DataFlavor flavor) |
protected DataFlavor[] | getRicherFlavors()
Some subclasses will have flavors that are more descriptive than HTML
or plain text. |
Object | getTransferData(DataFlavor flavor)
Returns an object which represents the data to be transferred. |
DataFlavor[] | getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data
can be provided in. |
boolean | isDataFlavorSupported(DataFlavor flavor)
Returns whether or not the specified data flavor is supported for
this object. |
protected boolean | isHTMLFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is an HTML flavor that
is supported. |
protected boolean | isHTMLSupported()
Whether the HTML flavors are offered. |
protected boolean | isPlainFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is an plain flavor that
is supported. |
protected boolean | isPlainSupported()
Whether the plain text flavors are offered. |
protected boolean | isRicherFlavor(DataFlavor flavor) |
protected boolean | isStringFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is a String flavor that
is supported. |
Parameters: flavor the requested flavor for the data
Throws: IOException if the data is no longer available in the requested flavor. UnsupportedFlavorException if the requested data flavor is not supported.
See Also: DataFlavor#getRepresentationClass
Returns: an array of data flavors in which this data can be transferred
Parameters: flavor the requested flavor for the data
Returns: boolean indicating whether or not the data flavor is supported
Parameters: flavor the requested flavor for the data
Returns: boolean indicating whether or not the data flavor is supported
Parameters: flavor the requested flavor for the data
Returns: boolean indicating whether or not the data flavor is supported
Parameters: flavor the requested flavor for the data
Returns: boolean indicating whether or not the data flavor is supported