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:j2se.jfreechart.barchart.BarChartDemo2.java

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

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

}

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

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

From source file:lk.ac.mrt.projectx.buildex.complex.FormalVerifier.java

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

    //TODO : Add labels
    final FormalVerifier demo = new FormalVerifier("Twirl Filter", "Old R*0.05 + Old Theta", "New Theta");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    MouseListenerDemo3 mouselistenerdemo3 = new MouseListenerDemo3("Mouse Listener Demo 3");
    mouselistenerdemo3.pack();/*from   ww  w  . j a  va  2  s.  c om*/
    RefineryUtilities.centerFrameOnScreen(mouselistenerdemo3);
    mouselistenerdemo3.setVisible(true);
}

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

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*  ww w.j a  va2 s. c  o m*/
 */
public static void main(String[] args) {
    BarChartDemo1 demo = new BarChartDemo1("JFreeChart: BarChartDemo1.java");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

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

public static void main(String args[]) {
    XYBlockChartDemo1 xyblockchartdemo1 = new XYBlockChartDemo1("JFreeChart: XYBlockChartDemo1");
    xyblockchartdemo1.pack();//from   w w  w  . ja  va 2 s .co m
    RefineryUtilities.centerFrameOnScreen(xyblockchartdemo1);
    xyblockchartdemo1.setVisible(true);
}

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

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

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

}

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

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

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

}

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

public static void main(String args[]) {
    QuarterDateFormatDemo quarterdateformatdemo = new QuarterDateFormatDemo("Quarter Date Format Demo");
    quarterdateformatdemo.pack();//from   w  ww. j  a va 2s  .  c  o  m
    RefineryUtilities.centerFrameOnScreen(quarterdateformatdemo);
    quarterdateformatdemo.setVisible(true);
}

From source file:com.insa.tp3g1.esbsimulator.view.OverlaidBarChart.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./* ww w.  j  ava2  s  .c o  m*/
 */
public static void main(final String[] args) {
    ResponseTime responseTime = new ResponseTime("sec", "10", "6");
    TotalResult totalResult = new TotalResult("8", "10", responseTime);

    LinkConsumerProvider lcp1 = new LinkConsumerProvider("10", "1", "1");
    LinkConsumerProvider lcp2 = new LinkConsumerProvider("30", "2", "2");
    LinkConsumerProvider lcp3 = new LinkConsumerProvider("45", "3", "3");
    LinkConsumerProvider lcp4 = new LinkConsumerProvider("25", "4", "4");
    LinkConsumerProvider lcp5 = new LinkConsumerProvider("20", "5", "5");
    LinkConsumerProvider linkConsProv[] = { lcp1, lcp2, lcp3, lcp4, lcp5 };

    Result result = new Result(totalResult, linkConsProv);
    final OverlaidBarChart demo = new OverlaidBarChart("Response Time Chart", result);
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}