public class

ChartTransferable

extends Object
implements Transferable
java.lang.Object
   ↳ org.jfree.chart.ChartTransferable

Class Overview

A class used to represent a chart on the clipboard.

Summary

Public Constructors
ChartTransferable(JFreeChart chart, int width, int height)
Creates a new chart selection.
ChartTransferable(JFreeChart chart, int width, int height, boolean cloneData)
Creates a new chart selection.
Public Methods
Object getTransferData(DataFlavor flavor)
Returns the content for the requested flavor, if it is supported.
DataFlavor[] getTransferDataFlavors()
Returns the data flavors supported.
boolean isDataFlavorSupported(DataFlavor flavor)
Returns true if the specified flavor is supported.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.awt.datatransfer.Transferable

Public Constructors

public ChartTransferable (JFreeChart chart, int width, int height)

Creates a new chart selection.

Parameters
chart the chart.
width the chart width.
height the chart height.

public ChartTransferable (JFreeChart chart, int width, int height, boolean cloneData)

Creates a new chart selection.

Parameters
chart the chart.
width the chart width.
height the chart height.
cloneData clone the dataset(s)?

Public Methods

public Object getTransferData (DataFlavor flavor)

Returns the content for the requested flavor, if it is supported.

Parameters
flavor the requested flavor.
Returns
  • The content.
Throws
java.awt.datatransfer.UnsupportedFlavorException
IOException
UnsupportedFlavorException

public DataFlavor[] getTransferDataFlavors ()

Returns the data flavors supported.

Returns
  • The data flavors supported.

public boolean isDataFlavorSupported (DataFlavor flavor)

Returns true if the specified flavor is supported.

Parameters
flavor the flavor.
Returns
  • A boolean.