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:org.jfree.chart.demo.NormalDistributionDemo.java

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

    final NormalDistributionDemo demo = new NormalDistributionDemo("Normal Distribution Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    XYTaskDatasetDemo1 xytaskdatasetdemo1 = new XYTaskDatasetDemo1("JFreeChart : XYTaskDatasetDemo1.java");
    xytaskdatasetdemo1.pack();/*w  ww .j a v  a 2s.  c  om*/
    RefineryUtilities.centerFrameOnScreen(xytaskdatasetdemo1);
    xytaskdatasetdemo1.setVisible(true);
}

From source file:ejemplo.Ejemplo.java

public static void main(String[] args) {
    final Ejemplo demo = new Ejemplo("Line Chart Demo 6");
    demo.pack();//from   ww w .j  a  v a 2s. c o  m
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    XYShapeRendererDemo1 xyshaperendererdemo1 = new XYShapeRendererDemo1(
            "JFreeChart: XYShapeRendererDemo1.java");
    xyshaperendererdemo1.pack();/*from ww w  . j  av a 2  s .co  m*/
    RefineryUtilities.centerFrameOnScreen(xyshaperendererdemo1);
    xyshaperendererdemo1.setVisible(true);
}

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

public static void main(String args[]) {
    PeriodAxisDemo3 periodaxisdemo3 = new PeriodAxisDemo3("Period Axis Demo 3");
    periodaxisdemo3.pack();/*from  www.  ja  v a 2s. c  om*/
    RefineryUtilities.centerFrameOnScreen(periodaxisdemo3);
    periodaxisdemo3.setVisible(true);
}

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

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

    final CandlestickDemo demo = new CandlestickDemo("Candlestick Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    SubCategoryAxisDemo1 demo = new SubCategoryAxisDemo1("JFreeChart: SubCategoryAxisDemo1.java");
    demo.pack();/*  w w  w  . j  a v  a 2 s  .co  m*/
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:scatterplot1k.JFreeScatter.java

/**
 * Starting point for the demonstration application.
 *
 * @param args ignored./*from   w w  w  .j ava 2  s.c o m*/
 */
public static void main(final String[] args) {
    long start = System.currentTimeMillis();
    final JFreeScatter demo = new JFreeScatter("JFreeChart Scatter Plot - 1k", 1000);
    long create = (System.currentTimeMillis() - start);
    System.out.println("jfree create = " + create + " ms");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
    long end = (System.currentTimeMillis() - start);
    System.out.println("jfree show = " + end + " ms");

}

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

public static void main(String args[]) {
    YIntervalChartDemo2 yintervalchartdemo2 = new YIntervalChartDemo2("JFreeChart: YIntervalChartDemo2.java");
    yintervalchartdemo2.pack();/* w w  w . j ava  2s.c  o m*/
    RefineryUtilities.centerFrameOnScreen(yintervalchartdemo2);
    yintervalchartdemo2.setVisible(true);
}

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

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

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

}