/** * Copies the current chart to the system clipboard. * * @since 1.0.13 */ @Override public void doCopy() { Clipboard systemClipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); Insets insets = getInsets(); int w = getWidth() - insets.left - insets.right; int h = getHeight() - insets.top - insets.bottom; ChartTransferable selection = new ChartTransferable(this.chart, w, h); systemClipboard.setContents(selection, null); }
@Override public final void doCopy() { Clipboard systemClipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); ChartTransferable selection = new ChartTransferable(getChart(), saveWidth, saveHeight); systemClipboard.setContents(selection, null); }