Example usage for org.jfree.chart ChartFrame getMinimumSize

List of usage examples for org.jfree.chart ChartFrame getMinimumSize

Introduction

In this page you can find the example usage for org.jfree.chart ChartFrame getMinimumSize.

Prototype

public Dimension getMinimumSize() 

Source Link

Document

Returns the minimum size of this container.

Usage

From source file:jmbench.plots.MemoryRelativeBarPlot.java

public void displayWindow(int width, int height) {

    ChartFrame window = new ChartFrame(chart.getTitle().getText(), chart);

    window.setMinimumSize(new Dimension(width, height));
    window.setPreferredSize(window.getMinimumSize());
    window.setVisible(true);/*from  ww  w. j  av  a2s .  c  o m*/
}

From source file:jmbench.plots.SummaryWhiskerPlot.java

public void displayWindow(int width, int height) {

    JFreeChart chart = createChart();/*from   www .  j  ava 2 s .c  o m*/

    ChartFrame window = new ChartFrame(chart.getTitle().getText(), chart);

    window.setMinimumSize(new Dimension(width, height));
    window.setPreferredSize(window.getMinimumSize());
    window.setVisible(true);
}