org.jfree.ui.RefineryUtilities Java Examples
The following examples show how to use
org.jfree.ui.RefineryUtilities.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DialogFactory.java From cst with GNU Lesser General Public License v3.0 | 6 votes |
public static QualityDimension getQualityDimension() { DialogFactory dialog = new DialogFactory(null,true); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); //dialog.setBounds(350, 350, 200, 200); dialog.setTitle("Enter Quality Dimension data ..."); dialog.jValue.setEditable(true); dialog.jValue.setEnabled(true); RefineryUtilities.centerFrameOnScreen(dialog); dialog.setVisible(true); dialog.dispose(); if (dialog.ok == true) { QualityDimension output = new QualityDimension(dialog.jName.getText(),dialog.jValue.getText()); return(output); } else return(null); }
Example #2
Source File: PieChartDemo1.java From buffer_bci with GNU General Public License v3.0 | 6 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { // ****************************************************************** // More than 150 demo applications are included with the JFreeChart // Developer Guide...for more information, see: // // > http://www.object-refinery.com/jfreechart/guide.html // // ****************************************************************** PieChartDemo1 demo = new PieChartDemo1("JFreeChart: Pie Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #3
Source File: PieChartDemo1.java From openstock with GNU General Public License v3.0 | 6 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { // ****************************************************************** // More than 150 demo applications are included with the JFreeChart // Developer Guide...for more information, see: // // > http://www.object-refinery.com/jfreechart/guide.html // // ****************************************************************** PieChartDemo1 demo = new PieChartDemo1("JFreeChart: Pie Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #4
Source File: PieChartDemo1.java From buffer_bci with GNU General Public License v3.0 | 6 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { // ****************************************************************** // More than 150 demo applications are included with the JFreeChart // Developer Guide...for more information, see: // // > http://www.object-refinery.com/jfreechart/guide.html // // ****************************************************************** PieChartDemo1 demo = new PieChartDemo1("JFreeChart: Pie Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #5
Source File: PieChartDemo1.java From opensim-gui with Apache License 2.0 | 6 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { // ****************************************************************** // More than 150 demo applications are included with the JFreeChart // Developer Guide...for more information, see: // // > http://www.object-refinery.com/jfreechart/guide.html // // ****************************************************************** PieChartDemo1 demo = new PieChartDemo1("Pie Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #6
Source File: PieChartDemo1.java From ccu-historian with GNU General Public License v3.0 | 6 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { // ****************************************************************** // More than 150 demo applications are included with the JFreeChart // Developer Guide...for more information, see: // // > http://www.object-refinery.com/jfreechart/guide.html // // ****************************************************************** PieChartDemo1 demo = new PieChartDemo1("JFreeChart: Pie Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #7
Source File: PieChartDemo1.java From ECG-Viewer with GNU General Public License v2.0 | 6 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { // ****************************************************************** // More than 150 demo applications are included with the JFreeChart // Developer Guide...for more information, see: // // > http://www.object-refinery.com/jfreechart/guide.html // // ****************************************************************** PieChartDemo1 demo = new PieChartDemo1("JFreeChart: Pie Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #8
Source File: PieChartDemo1.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { // ****************************************************************** // More than 150 demo applications are included with the JFreeChart // Developer Guide...for more information, see: // // > http://www.object-refinery.com/jfreechart/guide.html // // ****************************************************************** PieChartDemo1 demo = new PieChartDemo1("JFreeChart: Pie Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #9
Source File: Main.java From High-Frequency-Data-Order-Book-Analyser with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws IOException, InterruptedException, WriteException { //Paramètres SimulationParameters simulationParameters = new SimulationParameters(); RefineryUtilities.centerFrameOnScreen(simulationParameters); simulationParameters.setVisible(true); while (simulationParametersComplete == false) { sleep(1); // Get user selected time and file to open if (hDep == null || resultFile == null) { simulationParametersComplete = false; } else { simulationParametersComplete = true; } } //App Controller AppController ac = new AppController(hDep, resultFile); //Lancement des threads ac.launch(); }
Example #10
Source File: DomGui.java From DominionSim with MIT License | 6 votes |
public DomGui(DomEngine anEngine) { myEngine=anEngine; // new DomGameSetup(myEngine, null); // new DomGameFrame(myEngine); // if (1==1)return; initializeComponent(); setGlassPane(new DomGlassPane()); setTitle("Geronimoo's Dominion Simulator"); setPreferredSize(RefineryUtilities.getMaximumWindowBounds().getSize()); pack(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { shutDown(); } }); if (DomEngine.hideGraphs) hideGraphs(); }
Example #11
Source File: DialogFactory.java From cst with GNU Lesser General Public License v3.0 | 6 votes |
public static void editQualityDimension(QualityDimension qd) { DialogFactory dialog = new DialogFactory(null,true); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); //dialog.setBounds(350, 350, 200, 200); dialog.setTitle("Edit Quality Dimension data ..."); dialog.jValue.setEditable(true); dialog.jValue.setEnabled(true); dialog.jName.setText(qd.getName()); dialog.jValue.setText(qd.getValue().toString()); RefineryUtilities.centerFrameOnScreen(dialog); dialog.setVisible(true); dialog.dispose(); if (dialog.ok == true) { qd.setName(dialog.jName.getText()); qd.setValue(dialog.jValue.getText()); } }
Example #12
Source File: DomBotSelector.java From DominionSim with MIT License | 6 votes |
public DomBotSelector(DomEngine anEngine, final DomPlayer aSelectedBot) { myEngine=anEngine; buildGUI(); addWindowListener(this); setTitle("Select a strategy (click to select multiple types)"); pack(); RefineryUtilities.centerFrameOnScreen(this); setVisible(true); mSearchField.requestFocus(); Runnable doScroll = new Runnable() { public void run() { myBotList.setSelectedValue(aSelectedBot, true); } }; SwingUtilities.invokeLater( doScroll ); }
Example #13
Source File: DialogFactory.java From cst with GNU Lesser General Public License v3.0 | 6 votes |
public static AbstractObject getAbstractObject() { DialogFactory dialog = new DialogFactory(null,true); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); //dialog.setBounds(350, 350, 200, 200); dialog.setTitle("Enter Abstract Object data ..."); dialog.jValue.setEditable(false); dialog.jValue.setEnabled(false); RefineryUtilities.centerFrameOnScreen(dialog); dialog.setVisible(true); dialog.dispose(); if (dialog.ok == true) { AbstractObject output = new AbstractObject(dialog.jName.getText()); return(output); } else return(null); }
Example #14
Source File: DialogFactory.java From cst with GNU Lesser General Public License v3.0 | 6 votes |
public static Property getProperty() { DialogFactory dialog = new DialogFactory(null,true); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); //dialog.setBounds(350, 350, 200, 200); dialog.setTitle("Enter Property data ..."); dialog.jValue.setEditable(false); dialog.jValue.setEnabled(false); RefineryUtilities.centerFrameOnScreen(dialog); dialog.setVisible(true); dialog.dispose(); if (dialog.ok == true) { Property output = new Property(dialog.jName.getText()); return(output); } else return(null); }
Example #15
Source File: BarChartDemo1.java From opensim-gui with Apache License 2.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { BarChartDemo1 demo = new BarChartDemo1("Bar Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #16
Source File: IndicatorsToChart.java From ta4j-origins with MIT License | 5 votes |
/** * Displays a chart in a frame. * @param chart the chart to be displayed */ private static void displayChart(JFreeChart chart) { // Chart panel ChartPanel panel = new ChartPanel(chart); panel.setFillZoomRectangle(true); panel.setMouseWheelEnabled(true); panel.setPreferredSize(new java.awt.Dimension(500, 270)); // Application frame ApplicationFrame frame = new ApplicationFrame("Ta4j example - Indicators to chart"); frame.setContentPane(panel); frame.pack(); RefineryUtilities.centerFrameOnScreen(frame); frame.setVisible(true); }
Example #17
Source File: PlotFrame.java From hortonmachine with GNU General Public License v3.0 | 5 votes |
public void plot() { JFreeChart chart = ichart.getChart(); ChartPanel chartPanel = new ChartPanel(chart, true); chartPanel.setPreferredSize(new Dimension(chartWidth, chartHeight)); setContentPane(chartPanel); pack(); RefineryUtilities.centerFrameOnScreen(this); setVisible(true); setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE); }
Example #18
Source File: BuyAndSellSignalsToChart.java From ta4j-origins with MIT License | 5 votes |
/** * Displays a chart in a frame. * @param chart the chart to be displayed */ private static void displayChart(JFreeChart chart) { // Chart panel ChartPanel panel = new ChartPanel(chart); panel.setFillZoomRectangle(true); panel.setMouseWheelEnabled(true); panel.setPreferredSize(new Dimension(1024, 400)); // Application frame ApplicationFrame frame = new ApplicationFrame("Ta4j example - Buy and sell signals to chart"); frame.setContentPane(panel); frame.pack(); RefineryUtilities.centerFrameOnScreen(frame); frame.setVisible(true); }
Example #19
Source File: CashFlowToChart.java From ta4j-origins with MIT License | 5 votes |
/** * Displays a chart in a frame. * @param chart the chart to be displayed */ private static void displayChart(JFreeChart chart) { // Chart panel ChartPanel panel = new ChartPanel(chart); panel.setFillZoomRectangle(true); panel.setMouseWheelEnabled(true); panel.setPreferredSize(new Dimension(1024, 400)); // Application frame ApplicationFrame frame = new ApplicationFrame("Ta4j example - Cash flow to chart"); frame.setContentPane(panel); frame.pack(); RefineryUtilities.centerFrameOnScreen(frame); frame.setVisible(true); }
Example #20
Source File: BarChartDemo1.java From ECG-Viewer with GNU General Public License v2.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { BarChartDemo1 demo = new BarChartDemo1("JFreeChart: BarChartDemo1.java"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #21
Source File: BarChartDemo1.java From buffer_bci with GNU General Public License v3.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { BarChartDemo1 demo = new BarChartDemo1("JFreeChart: BarChartDemo1.java"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #22
Source File: CombinedCategoryPlotDemo1.java From ECG-Viewer with GNU General Public License v2.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { String title = "Combined Category Plot Demo 1"; CombinedCategoryPlotDemo1 demo = new CombinedCategoryPlotDemo1(title); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #23
Source File: CombinedXYPlotDemo1.java From buffer_bci with GNU General Public License v3.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { CombinedXYPlotDemo1 demo = new CombinedXYPlotDemo1( "JFreeChart : CombinedXYPlotDemo1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #24
Source File: TimeSeriesChartDemo1.java From buffer_bci with GNU General Public License v3.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { TimeSeriesChartDemo1 demo = new TimeSeriesChartDemo1( "Time Series Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #25
Source File: BarChartDemo1.java From buffer_bci with GNU General Public License v3.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { BarChartDemo1 demo = new BarChartDemo1("JFreeChart: BarChartDemo1.java"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #26
Source File: DialogFactory.java From cst with GNU Lesser General Public License v3.0 | 5 votes |
public static void editProperty(Property p) { DialogFactory dialog = new DialogFactory(null,true); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); //dialog.setBounds(350, 350, 200, 200); dialog.setTitle("Edit Property data ..."); dialog.jValue.setEditable(false); dialog.jValue.setEnabled(false); dialog.jName.setText(p.getName()); RefineryUtilities.centerFrameOnScreen(dialog); dialog.setVisible(true); dialog.dispose(); if (dialog.ok == true) { p.setName(dialog.jName.getText()); } }
Example #27
Source File: TimeSeriesChartDemo1.java From buffer_bci with GNU General Public License v3.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { TimeSeriesChartDemo1 demo = new TimeSeriesChartDemo1( "Time Series Chart Demo 1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #28
Source File: DialogFactory.java From cst with GNU Lesser General Public License v3.0 | 5 votes |
public static void editAbstractObject(AbstractObject ao) { DialogFactory dialog = new DialogFactory(null,true); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); //dialog.setBounds(350, 350, 200, 200); dialog.setTitle("Edit AbstractObject data ..."); dialog.jValue.setEditable(false); dialog.jValue.setEnabled(false); dialog.jName.setText(ao.getName()); RefineryUtilities.centerFrameOnScreen(dialog); dialog.setVisible(true); dialog.dispose(); if (dialog.ok == true) { ao.setName(dialog.jName.getText()); } }
Example #29
Source File: CombinedCategoryPlotDemo1.java From openstock with GNU General Public License v3.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { String title = "Combined Category Plot Demo 1"; CombinedCategoryPlotDemo1 demo = new CombinedCategoryPlotDemo1(title); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
Example #30
Source File: CombinedXYPlotDemo1.java From ECG-Viewer with GNU General Public License v2.0 | 5 votes |
/** * Starting point for the demonstration application. * * @param args ignored. */ public static void main(String[] args) { CombinedXYPlotDemo1 demo = new CombinedXYPlotDemo1( "JFreeChart : CombinedXYPlotDemo1"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }