Example usage for org.jfree.ui RefineryUtilities centerFrameOnScreen

List of usage examples for org.jfree.ui RefineryUtilities centerFrameOnScreen

Introduction

In this page you can find the example usage for org.jfree.ui RefineryUtilities centerFrameOnScreen.

Prototype

public static void centerFrameOnScreen(final Window frame) 

Source Link

Document

Positions the specified frame in the middle of the screen.

Usage

From source file:chart.statistic.HistogramChart.java

/**
 * The starting point for the demo./*ww w . ja v a 2 s . c o  m*/
 *
 * @param args  ignored.
 *
 * @throws IOException  if there is a problem saving the file.
 */
public static void main(String[] args) throws IOException {

    stdlib.StdRandom.initRandomGen((long) 1.0);
    HistogramChart demo = new HistogramChart("Mein Histogram");

    Messreihe mr1 = Messreihe.getGaussianDistribution(150);

    Messreihe mr2 = Messreihe.getGaussianDistribution(550);

    //System.out.println( mr );

    demo.addSerie(mr1);
    demo.addSerie(mr2);

    demo.setContentPane(demo.createChartPanel());
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

    demo.store(".", "HIST_demo");

}

From source file:org.jfree.chart.demo.CategoryLabelPositionsDemo1.java

public static void main(String args[]) {
    CategoryLabelPositionsDemo1 categorylabelpositionsdemo1 = new CategoryLabelPositionsDemo1(
            "Category Label Positions Demo 1");
    categorylabelpositionsdemo1.pack();/*  ww w .  j  av a2 s .  c om*/
    RefineryUtilities.centerFrameOnScreen(categorylabelpositionsdemo1);
    categorylabelpositionsdemo1.setVisible(true);
}

From source file:org.jfree.chart.demo.ItemLabelDemo1.java

/**
 * Starting point for the demonstration application.
 * /*from   w  w  w .  j  a va2  s.c o m*/
 * @param args
 *           ignored.
 */
public static void main(final String[] args) {

    final ItemLabelDemo1 demo = new ItemLabelDemo1("Item Label Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:org.jfree.chart.demo.XYAreaChartTest.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.// w ww. ja  v  a2s .  c  o m
 */
public static void main(final String[] args) {

    final XYAreaChartTest demo = new XYAreaChartTest("XY Area Chart Test");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:org.jfree.chart.demo.CombinedXYPlotDemo5.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from www .  j  a  v a  2s. co  m*/
 */
public static void main(final String[] args) {

    final CombinedXYPlotDemo5 demo = new CombinedXYPlotDemo5("Combined XY Plot Demo 5");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:j2se.jfreechart.barchart.BarChart3DDemo2.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.//from   w  ww  .  j av  a  2 s. c om
 */
public static void main(final String[] args) {

    Log.getInstance().addTarget(new PrintStreamLogTarget());
    final BarChart3DDemo2 demo = new BarChart3DDemo2("3D Bar Chart Demo 2");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:graphs.ResultsGraphs.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.//w w w.  j av a 2  s  .  c  om
 */
public static void main(final String[] args) {

    final ResultsGraphs demo = new ResultsGraphs("Result of ");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:org.jfree.chart.demo.NormalDistributionDemo2.java

public static void main(String args[]) {
    NormalDistributionDemo2 normaldistributiondemo2 = new NormalDistributionDemo2(
            "JFreeChart: NormalDistributionDemo2.java");
    normaldistributiondemo2.pack();//from w w  w  .ja v a 2s  .  c o m
    RefineryUtilities.centerFrameOnScreen(normaldistributiondemo2);
    normaldistributiondemo2.setVisible(true);
}

From source file:org.jfree.chart.demo.PeriodAxisDemo1.java

public static void main(String args[]) {
    PeriodAxisDemo1 periodaxisdemo1 = new PeriodAxisDemo1("Period Axis Demo");
    periodaxisdemo1.pack();/*from   w  w w.j  a v a2s. c o  m*/
    RefineryUtilities.centerFrameOnScreen(periodaxisdemo1);
    periodaxisdemo1.setVisible(true);
}

From source file:fitmon.Chart.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from w w w . j a v  a2s  .com*/
 */
public static void main(final String[] args) {

    final Chart demo = new Chart("Bar Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}