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.StackedXYAreaChartDemo.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.//ww  w.ja  v  a  2s .c  om
 */
public static void main(final String[] args) {
    final StackedXYAreaChartDemo demo = new StackedXYAreaChartDemo("Stacked Area XY Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:org.spantus.exp.segment.exec.DrawSegmentComparision.java

public static void main(final String[] args) {

    String wavName = FILE_wavName;
    String markerName = FILE_markerName;
    String noise = null;/* ww  w. j a  va 2s.  c o m*/

    DrawSegmentComparision demo = new DrawSegmentComparision("Segmenation Result");

    demo.setWavName(CollectionUtils.toList(wavName, noise));
    demo.setMarkerName(markerName);
    //      populateAcceleromerData(demo);
    //      populateExpWav(demo);
    populateNoizeusWav(demo);
    demo.init();
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:Negocio.Produccion.Planificacion.GanttDemo.java

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

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

}

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

public static void main(String args[]) {
    CrossSectionDemo1 crosssectiondemo1 = new CrossSectionDemo1("JFreeChart: CrossSectionDemo1");
    crosssectiondemo1.pack();/*from   w w  w. j a  va2 s . c o  m*/
    RefineryUtilities.centerFrameOnScreen(crosssectiondemo1);
    crosssectiondemo1.setVisible(true);
}

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

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

    final MarkerDemo1 demo = new MarkerDemo1("Marker Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

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

    Log.getInstance().addTarget(new PrintStreamLogTarget());
    TextUtilities.setUseFontMetricsGetStringBounds(false);
    final BarChartDemo7 demo = new BarChartDemo7("Bar Chart Demo 7");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from  www  .  java  2 s .  com*/
 */
public static void main(final String[] args) {
    final XYStepAreaChartDemo demo = new XYStepAreaChartDemo("Step Area XY Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:org.hxzon.demo.jfreechart.DatasetVisibleDemo.java

public static void main(String[] args) {
    DatasetVisibleDemo demo = new DatasetVisibleDemo("Dataset Visible Demo");
    demo.pack();/*from w ww. ja  va2s  . com*/
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:com.sami.chart.util.LineChartDemo1.java

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

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

}

From source file:ChartUsingJava.CombinedXYPlotDemo1.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.//from w  w  w.  ja  v a2 s.  c o  m
 */
public static void main(String[] args) {
    CombinedXYPlotDemo1 demo = new CombinedXYPlotDemo1("JFreeChart : CombinedXYPlotDemo1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}