/** * Gets the current chart title. * * @return Chart title. * */ public String getTitle() { return chart.getTitle().getText(); }
/** * Gets the current chart title. * * @return Chart title. * */ public String getTitle() { return chart.getTitle().getText(); }
/** * Gets the current chart title. * * @return Chart title. * */ public String getTitle() { return chart.getTitle().getText(); }
/** * Wrap chart into a frame with chart title and display at provided location. * * @param location frame location */ public void display (Point location) { display(chart.getTitle().getText(), location); }
/** * Displays chart on the screen using Swing. * This method creates an application containing a chart panel displaying * the chart. The created frame is positioned on-screen, and displayed before * it is returned. The <TT>width</TT> and the <TT>height</TT> * of the chart are measured in pixels. * * @param width frame width in pixels. * * @param height frame height in pixels. * * */ public JFrame view (int width, int height) { JFrame myFrame; if (chart.getTitle() != null) myFrame = new JFrame("MultipleDatasetChart from SSJ: " + chart.getTitle().getText()); else myFrame = new JFrame("MultipleDatasetChart from SSJ"); ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(width, height)); myFrame.setContentPane(chartPanel); myFrame.pack(); myFrame.setDefaultCloseOperation (JFrame.DISPOSE_ON_CLOSE); myFrame.setLocationRelativeTo (null); myFrame.setVisible(true); return myFrame; }
/** * Displays chart on the screen using Swing. * This method creates an application containing a chart panel displaying * the chart. The created frame is positioned on-screen, and displayed before * it is returned. The <TT>width</TT> and the <TT>height</TT> * of the chart are measured in pixels. * * @param width frame width in pixels. * * @param height frame height in pixels. * * @return frame containing the chart. * */ public JFrame view (int width, int height) { JFrame myFrame; if(chart.getTitle() != null) myFrame = new JFrame("HistogramChart from SSJ: " + chart.getTitle().getText()); else myFrame = new JFrame("HistogramChart from SSJ"); ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(width, height)); myFrame.setContentPane(chartPanel); myFrame.pack(); myFrame.setDefaultCloseOperation (JFrame.DISPOSE_ON_CLOSE); myFrame.setLocationRelativeTo (null); myFrame.setVisible(true); return myFrame; }
/** * Displays chart on the screen using Swing. * This method creates an application containing a chart panel displaying * the chart. The created frame is positioned on-screen, and displayed before * it is returned. The <TT>width</TT> and the <TT>height</TT> * of the chart are measured in pixels. * * @param width frame width in pixels. * * @param height frame height in pixels. * * @return frame containing the chart.; * */ public JFrame view (int width, int height) { JFrame myFrame; if(chart.getTitle() != null) myFrame = new JFrame("XYLineChart from SSJ: " + chart.getTitle().getText()); else myFrame = new JFrame("XYLineChart from SSJ"); ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(width, height)); myFrame.setContentPane(chartPanel); myFrame.pack(); myFrame.setDefaultCloseOperation (JFrame.DISPOSE_ON_CLOSE); myFrame.setLocationRelativeTo (null); myFrame.setVisible(true); return myFrame; }
public AnomalyChartSink(JFreeChart chart, ChartSeries chartSeries) { notNull(chart, "chart can't be null"); notNull(chartSeries, "chartSeries can't be null"); this.chart = chart; this.chartSeries = chartSeries; this.baseTitle = chart.getTitle().getText(); }
/** * Displays chart on the screen using Swing. * This method creates an application containing a chart panel displaying * the chart. The created frame is positioned on-screen, and displayed before * it is returned. The <TT>width</TT> and the <TT>height</TT> * of the chart are measured in pixels. * * @param width frame width in pixels. * * @param height frame height in pixels. * * @return frame containing the chart. * */ public JFrame view (int width, int height) { JFrame myFrame; if(chart.getTitle() != null) myFrame = new JFrame("EmpiricalChart from SSJ : " + chart.getTitle().getText()); else myFrame = new JFrame("EmpiricalChart from SSJ"); ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(width, height)); myFrame.setContentPane(chartPanel); myFrame.pack(); myFrame.setDefaultCloseOperation (JFrame.DISPOSE_ON_CLOSE); myFrame.setLocationRelativeTo (null); myFrame.setVisible(true); return myFrame; }
public static void showDialog(JFreeChart chart, boolean modal) { JDialog dialog = newChartDialog(chart, chart.getTitle().getText(), modal); SwingUtils.showWindow(dialog, modal); }
JFrame myFrame; if(chart.getTitle() != null) myFrame = new JFrame ("BoxChart from SSJ : " + chart.getTitle().getText()); else myFrame = new JFrame ("BoxChart from SSJ");
public static void showFrame(JFreeChart chart) { ChartFrame frame = new ChartFrame(chart.getTitle().getText(), chart); SwingUtils.showWindow(frame, false); }
public void displayWindow(int width, int height) { ChartFrame window = new ChartFrame(chart.getTitle().getText(),chart); window.setMinimumSize(new Dimension(width,height)); window.setPreferredSize(window.getMinimumSize()); window.setVisible(true); }
public void displayWindow(int width, int height) { ChartFrame window = new ChartFrame(chart.getTitle().getText(),chart); window.setMinimumSize(new Dimension(width,height)); window.setPreferredSize(window.getMinimumSize()); window.setVisible(true); }
public void displayWindow(int width, int height) { ChartFrame window = new ChartFrame(chart.getTitle().getText(),chart); window.setMinimumSize(new Dimension(width,height)); window.setPreferredSize(window.getMinimumSize()); window.setVisible(true); }
public void displayWindow(int width, int height) { JFreeChart chart = createChart(); ChartFrame window = new ChartFrame(chart.getTitle().getText(),chart); window.setMinimumSize(new Dimension(width,height)); window.setPreferredSize(window.getMinimumSize()); window.setVisible(true); }
private void configureBoxPlotButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_configureBoxPlotButtonActionPerformed prepareBoxPlot(); if (boxPlotDialog != null) { boxPlotDialog.setVisible(true); } else { boxPlotDialog = new JFreeChartDialog(WindowManager.getDefault().getMainWindow(), boxPlot.getTitle().getText(), boxPlot, 300, 500); } }//GEN-LAST:event_configureBoxPlotButtonActionPerformed
private void configurePieChartButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_configurePieChartButtonActionPerformed if (pieChart == null) { pieChart = manipulator.buildPieChart(valuesFrequencies); } if (pieChartDialog != null) { pieChartDialog.setVisible(true); } else { pieChartDialog = new JFreeChartDialog(WindowManager.getDefault().getMainWindow(), pieChart.getTitle().getText(), pieChart, 1000, 1000); } }//GEN-LAST:event_configurePieChartButtonActionPerformed
private void configureHistogramButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_configureHistogramButtonActionPerformed prepareHistogram(); if (histogramDialog != null) { histogramDialog.setVisible(true); } else { histogramDialog = new JFreeChartDialog(WindowManager.getDefault().getMainWindow(), histogram.getTitle().getText(), histogram, 600, 400); } }//GEN-LAST:event_configureHistogramButtonActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables
private void configureScatterPlotButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_configureScatterPlotButtonActionPerformed prepareScatterPlot(); if (scatterPlotDialog != null) { scatterPlotDialog.setVisible(true); } else { scatterPlotDialog = new JFreeChartDialog(WindowManager.getDefault().getMainWindow(), scatterPlot.getTitle().getText(), scatterPlot, 600, 400); } }//GEN-LAST:event_configureScatterPlotButtonActionPerformed