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:smellminer.engine.JFreeChartDemo.java

/**
 * For testing from the command line.//from   w ww. ja  v a2 s.  c o m
 *
 * @param args  ignored.
 */
public static void main(final String[] args) {

    //Log.getInstance().addTarget(new PrintStreamLogTarget(System.out));
    final JFreeChartDemo demo = new JFreeChartDemo("Box-and-Whisker Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

/**
 * For testing from the command line./*from www . ja v a2  s .c om*/
 *
 * @param args  ignored.
 */
public static void main(final String[] args) {

    //Log.getInstance().addTarget(new PrintStreamLogTarget(System.out));
    final BoxAndWhiskerDemo demo = new BoxAndWhiskerDemo("Box-and-Whisker Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:org.apache.hadoopts.chart.statistic.HistogramChart.java

/**
 * The starting point for the demo./*from w w  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 {

    RNGWrapper.init();

    HistogramChart demo = new HistogramChart("Mein Histogram");

    TimeSeriesObject mr1 = TimeSeriesObject.getGaussianDistribution(150);

    TimeSeriesObject mr2 = TimeSeriesObject.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.MultiplePieChartDemo3.java

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

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

}

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

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

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

}

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

public static void main(String args[]) {
    XYTitleAnnotationDemo1 xytitleannotationdemo1 = new XYTitleAnnotationDemo1("XYTitleAnnotationDemo1");
    xytitleannotationdemo1.pack();/* w  ww.  ja va  2s  .c  om*/
    RefineryUtilities.centerFrameOnScreen(xytitleannotationdemo1);
    xytitleannotationdemo1.setVisible(true);
}

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

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

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

}

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

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

    final CategoryStepChartDemo demo = new CategoryStepChartDemo("Category Step Renderer Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    ClusteredXYBarRendererDemo1 clusteredxybarrendererdemo1 = new ClusteredXYBarRendererDemo1(
            "ClusteredXYBarRendererDemo1");
    clusteredxybarrendererdemo1.pack();/*from   www  .  jav  a2s.  c om*/
    RefineryUtilities.centerFrameOnScreen(clusteredxybarrendererdemo1);
    clusteredxybarrendererdemo1.setVisible(true);
}

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

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

    final TimeSeriesDemo12 demo = new TimeSeriesDemo12("Time Series Demo 12");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}