Java 类org.jfree.chart.ChartTransferable 实例源码

项目:rapidminer    文件:AbstractChartPanel.java   
/**
 * 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);
}
项目:rapidminer-studio    文件:AbstractChartPanel.java   
/**
 * 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);
}
项目:rapidminer-5    文件:AbstractChartPanel.java   
/**
 * 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);
}
项目:nmonvisualizer    文件:BaseChartPanel.java   
@Override
public final void doCopy() {
    Clipboard systemClipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
    ChartTransferable selection = new ChartTransferable(getChart(), saveWidth, saveHeight);
    systemClipboard.setContents(selection, null);
}