public class ChartTransferable extends Object implements Transferable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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. |
public ChartTransferable(JFreeChart chart, int width, int height)
chart
- the chart.width
- the chart width.height
- the chart height.public ChartTransferable(JFreeChart chart, int width, int height, boolean cloneData)
chart
- the chart.width
- the chart width.height
- the chart height.cloneData
- clone the dataset(s)?public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
true
if the specified flavor is supported.isDataFlavorSupported
in interface Transferable
flavor
- the flavor.public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
flavor
- the requested flavor.UnsupportedFlavorException
IOException
Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.