Example usage for org.jfree.chart ChartFrame setMinimumSize

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

Introduction

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

Prototype

public void setMinimumSize(Dimension minimumSize) 

Source Link

Document

Sets the minimum size of this window to a constant value.

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);/* ww w .  j a  va2 s .  c om*/
}

From source file:jmbench.plots.SummaryWhiskerPlot.java

public void displayWindow(int width, int height) {

    JFreeChart chart = createChart();/* w  w  w  .  j  ava2  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);
}