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.
|
ChartTransferable(JFreeChart chart,
int width,
int height,
int minDrawW,
int minDrawH,
int maxDrawW,
int maxDrawH,
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 ChartTransferable(JFreeChart chart, int width, int height, int minDrawW, int minDrawH, int maxDrawW, int maxDrawH, boolean cloneData)
ChartPanel class.chart - the chart.width - the chart width.height - the chart height.minDrawW - the minimum drawing width.minDrawH - the minimum drawing height.maxDrawW - the maximum drawing width.maxDrawH - the maximum drawing height.cloneData - clone the dataset(s)?public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor flavor)
true if the specified flavor is supported.isDataFlavorSupported in interface Transferableflavor - the flavor.public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData in interface Transferableflavor - the requested flavor.UnsupportedFlavorException - if the flavor
is not supported.IOException - if there is an IO problem.Copyright © 2001–2017 JFree.org. All rights reserved.