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


Java ChartPanel.setFillZoomRectangle方法代码示例

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


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

import org.jfree.chart.ChartPanel; //导入方法依赖的package包/类
/**
     * Creates a panel for the demo (used by SuperDemo.java).
     *
     * @return A panel.
     */
    public static JPanel createDemoPanel() {
        JFreeChart chart = createChart(createDataset());
        ChartPanel panel = new ChartPanel(chart);
        panel.setFillZoomRectangle(true);
//        panel.setMouseWheelEnabled(true);
        return panel;
    }
 
开发者ID:Yarichi,项目名称:Proyecto-DASI,代码行数:13,代码来源:TimeSeriesChartDemo1.java

示例6: BarChartDemo1

import org.jfree.chart.ChartPanel; //导入方法依赖的package包/类
/**
     * Creates a new demo instance.
     *
     * @param title  the frame title.
     */
    public BarChartDemo1(String title) {
        super(title);
        CategoryDataset dataset = createDataset();
        JFreeChart chart = createChart(dataset);
        ChartPanel chartPanel = new ChartPanel(chart);
        chartPanel.setFillZoomRectangle(true);
//        chartPanel.setMouseWheelEnabled(true);
        chartPanel.setPreferredSize(new Dimension(500, 270));
        setContentPane(chartPanel);
    }
 
开发者ID:Yarichi,项目名称:Proyecto-DASI,代码行数:16,代码来源:BarChartDemo1.java

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