当前位置: 首页>>代码示例>>Java>>正文


Java ChartPanel.setMouseWheelEnabled方法代码示例

本文整理汇总了Java中org.jfree.chart.ChartPanel.setMouseWheelEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java ChartPanel.setMouseWheelEnabled方法的具体用法?Java ChartPanel.setMouseWheelEnabled怎么用?Java ChartPanel.setMouseWheelEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.ChartPanel的用法示例。


在下文中一共展示了ChartPanel.setMouseWheelEnabled方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: displayChart

import org.jfree.chart.ChartPanel; //导入方法依赖的package包/类
/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
    // Chart panel
    ChartPanel panel = new ChartPanel(chart);
    panel.setFillZoomRectangle(true);
    panel.setMouseWheelEnabled(true);
    panel.setPreferredSize(new Dimension(1024, 400));
    // Application frame
    ApplicationFrame frame = new ApplicationFrame("Ta4j example - Cash flow to chart");
    frame.setContentPane(panel);
    frame.pack();
    RefineryUtilities.centerFrameOnScreen(frame);
    frame.setVisible(true);
}
 
开发者ID:ta4j,项目名称:ta4j,代码行数:18,代码来源:CashFlowToChart.java

示例2: displayChart

import org.jfree.chart.ChartPanel; //导入方法依赖的package包/类
/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
    // Chart panel
    ChartPanel panel = new ChartPanel(chart);
    panel.setFillZoomRectangle(true);
    panel.setMouseWheelEnabled(true);
    panel.setPreferredSize(new Dimension(1024, 400));
    // Application frame
    ApplicationFrame frame = new ApplicationFrame("Ta4j example - Buy and sell signals to chart");
    frame.setContentPane(panel);
    frame.pack();
    RefineryUtilities.centerFrameOnScreen(frame);
    frame.setVisible(true);
}
 
开发者ID:ta4j,项目名称:ta4j,代码行数:18,代码来源:BuyAndSellSignalsToChart.java

示例3: displayChart

import org.jfree.chart.ChartPanel; //导入方法依赖的package包/类
/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
    // Chart panel
    ChartPanel panel = new ChartPanel(chart);
    panel.setFillZoomRectangle(true);
    panel.setMouseWheelEnabled(true);
    panel.setPreferredSize(new java.awt.Dimension(740, 300));
    // Application frame
    ApplicationFrame frame = new ApplicationFrame("Ta4j example - Candlestick chart");
    frame.setContentPane(panel);
    frame.pack();
    RefineryUtilities.centerFrameOnScreen(frame);
    frame.setVisible(true);
}
 
开发者ID:ta4j,项目名称:ta4j,代码行数:18,代码来源:CandlestickChart.java

示例4: displayChart

import org.jfree.chart.ChartPanel; //导入方法依赖的package包/类
/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
    // Chart panel
    ChartPanel panel = new ChartPanel(chart);
    panel.setFillZoomRectangle(true);
    panel.setMouseWheelEnabled(true);
    panel.setPreferredSize(new java.awt.Dimension(500, 270));
    // Application frame
    ApplicationFrame frame = new ApplicationFrame("Ta4j example - Indicators to chart");
    frame.setContentPane(panel);
    frame.pack();
    RefineryUtilities.centerFrameOnScreen(frame);
    frame.setVisible(true);
}
 
开发者ID:ta4j,项目名称:ta4j,代码行数:18,代码来源:IndicatorsToChart.java

示例5: displayChart

import org.jfree.chart.ChartPanel; //导入方法依赖的package包/类
/**
 * Displays a chart in a frame.
 * 
 * @param chart
 *            the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
	// Chart panel
	ChartPanel panel = new ChartPanel(chart);
	panel.setFillZoomRectangle(true);
	panel.setMouseWheelEnabled(true);
	panel.setPreferredSize(new Dimension(1024, 400));
	// Application frame
	ApplicationFrame frame = new ApplicationFrame("Ta4j example - Buy and sell signals to chart");
	frame.setContentPane(panel);
	frame.pack();
	RefineryUtilities.centerFrameOnScreen(frame);
	frame.setVisible(true);
}
 
开发者ID:jnidzwetzki,项目名称:crypto-bot,代码行数:20,代码来源:Chart.java


注:本文中的org.jfree.chart.ChartPanel.setMouseWheelEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。