org.jfree.chart.JFreeChart.getSubtitle()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(140)

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

JFreeChart.getSubtitle介绍

[英]Returns a chart subtitle.
[中]返回图表副标题。

代码示例

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Applies this theme to the supplied chart.
 *
 * @param chart  the chart (<code>null</code> not permitted).
 */
public void apply(JFreeChart chart) {
  if (chart == null) {
    throw new IllegalArgumentException("Null 'chart' argument.");
  }
  TextTitle title = chart.getTitle();
  if (title != null) {
    title.setFont(this.extraLargeFont);
    title.setPaint(this.titlePaint);
  }
  int subtitleCount = chart.getSubtitleCount();
  for (int i = 0; i < subtitleCount; i++) {
    applyToTitle(chart.getSubtitle(i));
  }
  chart.setBackgroundPaint(this.chartBackgroundPaint);
  // now process the plot if there is one
  Plot plot = chart.getPlot();
  if (plot != null) {
    applyToPlot(plot);
  }
}

代码示例来源:origin: bcdev/beam

LegendTitle legend = (LegendTitle) chart.getSubtitle(0);
legend.setPosition(RectangleEdge.RIGHT);
legend.setMargin(new RectangleInsets(UnitType.ABSOLUTE, 0, 4, 0, 4));

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Provides serialization support.
 *
 * @param stream  the input stream.
 *
 * @throws IOException  if there is an I/O error.
 * @throws ClassNotFoundException  if there is a classpath problem.
 */
private void readObject(ObjectInputStream stream)
  throws IOException, ClassNotFoundException {
  stream.defaultReadObject();
  this.borderStroke = SerialUtilities.readStroke(stream);
  this.borderPaint = SerialUtilities.readPaint(stream);
  this.backgroundPaint = SerialUtilities.readPaint(stream);
  this.progressListeners = new EventListenerList();
  this.changeListeners = new EventListenerList();
  this.renderingHints = new RenderingHints(
      RenderingHints.KEY_ANTIALIASING,
      RenderingHints.VALUE_ANTIALIAS_ON);
  // register as a listener with sub-components...
  if (this.title != null) {
    this.title.addChangeListener(this);
  }
  for (int i = 0; i < getSubtitleCount(); i++) {
    getSubtitle(i).addChangeListener(this);
  }
  this.plot.addChangeListener(this);
}

代码示例来源:origin: senbox-org/snap-desktop

LegendTitle legend = (LegendTitle) chart.getSubtitle(0);
legend.setPosition(RectangleEdge.RIGHT);
legend.setMargin(new RectangleInsets(UnitType.ABSOLUTE, 0, 4, 0, 4));

代码示例来源:origin: jfree/jfreechart

Title subtitle = (Title) getSubtitle(i).clone();
chart.subtitles.add(subtitle);
subtitle.addChangeListener(chart);

代码示例来源:origin: jfree/jfreechart

getSubtitle(i).addChangeListener(this);

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

Title subtitle = (Title) getSubtitle(i).clone();
chart.subtitles.add(subtitle);
subtitle.addChangeListener(chart);

代码示例来源:origin: jfree/jfreechart

/**
 * Applies this theme to the supplied chart.
 *
 * @param chart  the chart ({@code null} not permitted).
 */
@Override
public void apply(JFreeChart chart) {
  Args.nullNotPermitted(chart, "chart");
  TextTitle title = chart.getTitle();
  if (title != null) {
    title.setFont(this.extraLargeFont);
    title.setPaint(this.titlePaint);
  }
  int subtitleCount = chart.getSubtitleCount();
  for (int i = 0; i < subtitleCount; i++) {
    applyToTitle(chart.getSubtitle(i));
  }
  chart.setBackgroundPaint(this.chartBackgroundPaint);
  // now process the plot if there is one
  Plot plot = chart.getPlot();
  if (plot != null) {
    applyToPlot(plot);
  }
}

代码示例来源:origin: jfree/eastwood

Title t = chart.getSubtitle(i);
if (t instanceof TextTitle) {
  TextTitle tt = (TextTitle) t;

代码示例来源:origin: datacleaner/DataCleaner

final Title subtitle = chart.getSubtitle(i);
if (subtitle instanceof TextTitle) {
  ((TextTitle) subtitle).setFont(WidgetUtils.FONT_NORMAL);

相关文章