org.jfree.chart.title.TextTitle.getText()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(8.5k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中org.jfree.chart.title.TextTitle.getText()方法的一些代码示例,展示了TextTitle.getText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextTitle.getText()方法的具体详情如下:
包路径:org.jfree.chart.title.TextTitle
类名称:TextTitle
方法名:getText

TextTitle.getText介绍

[英]Returns the title text.
[中]返回标题文本。

代码示例

代码示例来源:origin: ca.umontreal.iro/ssj

/**
* Gets the current chart title.
* 
* @return Chart title.
* 
*/
public String getTitle()  {
 return chart.getTitle().getText();
}

代码示例来源:origin: ca.umontreal.iro/ssj

/**
* Gets the current chart title.
* 
* @return Chart title.
* 
*/
public String getTitle()  {
 return chart.getTitle().getText();
}

代码示例来源:origin: ca.umontreal.iro/ssj

/**
* Gets the current chart title.
* 
* @return Chart title.
* 
*/
public String getTitle()  {
 return chart.getTitle().getText();
}

代码示例来源:origin: Audiveris/audiveris

/**
 * 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);
}

代码示例来源:origin: ca.umontreal.iro/ssj

/**
* 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;
}

代码示例来源:origin: ca.umontreal.iro/ssj

/**
* 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;
}

代码示例来源:origin: ca.umontreal.iro/ssj

/**
* 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;
}

代码示例来源:origin: ExpediaDotCom/adaptive-alerting

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();
}

代码示例来源:origin: ca.umontreal.iro/ssj

/**
* 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;
}

代码示例来源:origin: matsim-org/matsim

public static void showDialog(JFreeChart chart, boolean modal) {
  JDialog dialog = newChartDialog(chart, chart.getTitle().getText(), modal);
  SwingUtils.showWindow(dialog, modal);
}

代码示例来源:origin: ca.umontreal.iro/ssj

JFrame myFrame;
if(chart.getTitle() != null)
  myFrame = new JFrame ("BoxChart from SSJ : " + chart.getTitle().getText());
else
  myFrame = new JFrame ("BoxChart from SSJ");

代码示例来源:origin: matsim-org/matsim

public static void showFrame(JFreeChart chart) {
  ChartFrame frame = new ChartFrame(chart.getTitle().getText(), chart);
  SwingUtils.showWindow(frame, false);
}

代码示例来源:origin: lessthanoptimal/Java-Matrix-Benchmark

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);
}

代码示例来源:origin: lessthanoptimal/Java-Matrix-Benchmark

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);
}

代码示例来源:origin: lessthanoptimal/Java-Matrix-Benchmark

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);
}

代码示例来源:origin: lessthanoptimal/Java-Matrix-Benchmark

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);
}

代码示例来源:origin: org.gephi/datalab-plugin

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

代码示例来源:origin: org.gephi/datalab-plugin

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

代码示例来源:origin: org.gephi/datalab-plugin

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

代码示例来源:origin: org.gephi/datalab-plugin

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

相关文章