List of usage examples for org.jfree.ui RefineryUtilities centerFrameOnScreen
public static void centerFrameOnScreen(final Window frame)
From source file:org.jfree.chart.demo.WaferMapChartDemo.java
/** * Starting point for the demo application. * /* w w w.j a v a2s . c o m*/ * @param args command line arguments (ignored). */ public static void main(final String[] args) { final WaferMapChartDemo demo = new WaferMapChartDemo("Wafer Map Demo"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
From source file:org.jfree.chart.demo.PieChart3DDemo2.java
/** * Starting point for the demonstration application. * * @param args ignored./*from w w w . j a v a 2 s . c o m*/ */ public static void main(final String[] args) { final PieChart3DDemo2 demo = new PieChart3DDemo2("Pie Chart 3D Demo 2"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
From source file:org.jfree.chart.demo.CylinderChartDemo1.java
public static void main(String args[]) { CylinderChartDemo1 cylinderchartdemo1 = new CylinderChartDemo1("Cylinder Chart Demo 1"); cylinderchartdemo1.pack();//from w w w . j a va 2s .c o m RefineryUtilities.centerFrameOnScreen(cylinderchartdemo1); cylinderchartdemo1.setVisible(true); }
From source file:org.jfree.chart.demo.MinMaxCategoryPlotDemo1.java
public static void main(String args[]) { MinMaxCategoryPlotDemo1 minmaxcategoryplotdemo1 = new MinMaxCategoryPlotDemo1( "JFreeChart: MinMaxCategoryPlotDemo1.java"); minmaxcategoryplotdemo1.pack();//www. j a v a2 s .com RefineryUtilities.centerFrameOnScreen(minmaxcategoryplotdemo1); minmaxcategoryplotdemo1.setVisible(true); }
From source file:org.jfree.chart.demo.CategoryPointerAnnotationDemo1.java
public static void main(String args[]) { CategoryPointerAnnotationDemo1 categorypointerannotationdemo1 = new CategoryPointerAnnotationDemo1( "Category Pointer Annotation Demo 1"); categorypointerannotationdemo1.pack(); RefineryUtilities.centerFrameOnScreen(categorypointerannotationdemo1); categorypointerannotationdemo1.setVisible(true); }
From source file:org.jfree.chart.demo.DeviationRendererDemo3.java
public static void main(String args[]) { DeviationRendererDemo3 deviationrendererdemo3 = new DeviationRendererDemo3( "JFreeChart : DeviationRendererDemo3.java"); deviationrendererdemo3.pack();//from w ww.j a v a2 s . c om RefineryUtilities.centerFrameOnScreen(deviationrendererdemo3); deviationrendererdemo3.setVisible(true); }
From source file:statUtil.TurnMovementPlot.java
public static void main(String[] args) { // try { try {//from w ww . j av a 2s . co m TurnMovementPlot tmPlot = new TurnMovementPlot("TurnMovementPlot"); tmPlot.pack(); RefineryUtilities.centerFrameOnScreen(tmPlot); tmPlot.setVisible(true); // Data data = CSVData.getCSVData(TRACKER_CSV_LOG, MF_CSV_LOG); // StdDraw.setCanvasSize((int) Math.round((data.maxX - data.minX)), (int) Math.round(data.maxY - data.minY)); // StdDraw.setXscale(data.minX, data.maxX); // StdDraw.setYscale(data.minY, data.maxY); // StdDraw.setPenRadius(0.005); // int i = 0; // for (Double[] csvRow : data.csvData) { // Double normalizedSpd = (csvRow[3] - data.minSpd) * (255.0 / (data.maxSpd - data.minSpd)); // if (normalizedSpd < 0.0) { // normalizedSpd = 0.0; // } // if (normalizedSpd > 255.0) { // normalizedSpd = 255.0; // } // StdDraw.setPenColor((int) Math.round(normalizedSpd), 0, 255 - (int) Math.round(normalizedSpd)); // StdDraw.point(csvRow[0], csvRow[1]); //// StdDraw.point(1.0, 1.0); // System.out.println(i); // i++; // } } catch (IOException ex) { ex.printStackTrace(); } // } catch (IOException ex) { // Logger.getLogger(CameraMovementPlot.class.getName()).log(Level.SEVERE, null, ex); // } }
From source file:org.jfree.chart.demo.HighLowChartDemo.java
/** * Starting point for the demonstration application. * * @param args ignored.//from w w w.j a v a 2 s .c om */ public static void main(final String[] args) { final HighLowChartDemo demo = new HighLowChartDemo("High-Low-Open-Close Demo"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
From source file:org.jfree.chart.demo.StackedAreaChartDemo1.java
public static void main(String args[]) { StackedAreaChartDemo1 stackedareachartdemo1 = new StackedAreaChartDemo1( "JFreeChart: StackedAreaChartDemo1.java"); stackedareachartdemo1.pack();/* w w w . j av a 2s . c o m*/ RefineryUtilities.centerFrameOnScreen(stackedareachartdemo1); stackedareachartdemo1.setVisible(true); }
From source file:org.jfree.chart.demo.CylinderChartDemo2.java
public static void main(String args[]) { CylinderChartDemo2 cylinderchartdemo2 = new CylinderChartDemo2("Cylinder Chart Demo 2"); cylinderchartdemo2.pack();/* www . j a v a 2s.c om*/ RefineryUtilities.centerFrameOnScreen(cylinderchartdemo2); cylinderchartdemo2.setVisible(true); }