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

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

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

JFreeChart.fireChartChanged介绍

[英]Sends a default ChartChangeEvent to all registered listeners.

This method is for convenience only.
[中]向所有注册的侦听器发送默认的ChartChangeEvent。
这种方法只是为了方便。

代码示例

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

/**
 * Sets a flag that controls whether or not a border is drawn around the
 * outside of the chart.
 *
 * @param visible  the flag.
 *
 * @see #isBorderVisible()
 */
public void setBorderVisible(boolean visible) {
  this.borderVisible = visible;
  fireChartChanged();
}

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

/**
 * Sets the background alignment.  Alignment options are defined by the
 * {@link org.jfree.chart.ui.Align} class.
 *
 * @param alignment  the alignment.
 *
 * @see #getBackgroundImageAlignment()
 */
public void setBackgroundImageAlignment(int alignment) {
  if (this.backgroundImageAlignment != alignment) {
    this.backgroundImageAlignment = alignment;
    fireChartChanged();
  }
}

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

/**
 * Sets the stroke used to draw the chart border (if visible).
 *
 * @param stroke  the stroke.
 *
 * @see #getBorderStroke()
 */
public void setBorderStroke(Stroke stroke) {
  this.borderStroke = stroke;
  fireChartChanged();
}

代码示例来源:origin: net.sourceforge.jadex/jadex-tools-comanalyzer

/**
 * Repaints the chart.
 */
public void repaintCanvas()
{
  chart.fireChartChanged();
}

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

/**
 * Sets the stroke used to draw the chart border (if visible).
 *
 * @param stroke  the stroke.
 *
 * @see #getBorderStroke()
 */
public void setBorderStroke(Stroke stroke) {
  this.borderStroke = stroke;
  fireChartChanged();
}

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

/**
 * Sets the paint used to draw the chart border (if visible).
 *
 * @param paint  the paint.
 *
 * @see #getBorderPaint()
 */
public void setBorderPaint(Paint paint) {
  this.borderPaint = paint;
  fireChartChanged();
}

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

/**
 * Sets the paint used to draw the chart border (if visible).
 *
 * @param paint  the paint.
 *
 * @see #getBorderPaint()
 */
public void setBorderPaint(Paint paint) {
  this.borderPaint = paint;
  fireChartChanged();
}

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

/**
 * Sets a flag that controls whether or not a border is drawn around the
 * outside of the chart.
 *
 * @param visible  the flag.
 *
 * @see #isBorderVisible()
 */
public void setBorderVisible(boolean visible) {
  this.borderVisible = visible;
  fireChartChanged();
}

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

/**
 * Sets the alpha-transparency for the chart's background image.
 * Registered listeners are notified that the chart has been changed.
 *
 * @param alpha  the alpha value.
 *
 * @see #getBackgroundImageAlpha()
 */
public void setBackgroundImageAlpha(float alpha) {
  if (this.backgroundImageAlpha != alpha) {
    this.backgroundImageAlpha = alpha;
    fireChartChanged();
  }
}

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

/**
 * Sets the alpha-transparency for the chart's background image.
 * Registered listeners are notified that the chart has been changed.
 *
 * @param alpha  the alpha value.
 *
 * @see #getBackgroundImageAlpha()
 */
public void setBackgroundImageAlpha(float alpha) {
  if (this.backgroundImageAlpha != alpha) {
    this.backgroundImageAlpha = alpha;
    fireChartChanged();
  }
}

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

/**
 * Sets the background alignment.  Alignment options are defined by the
 * {@link org.jfree.ui.Align} class.
 *
 * @param alignment  the alignment.
 *
 * @see #getBackgroundImageAlignment()
 */
public void setBackgroundImageAlignment(int alignment) {
  if (this.backgroundImageAlignment != alignment) {
    this.backgroundImageAlignment = alignment;
    fireChartChanged();
  }
}

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

/**
 * Removes the specified subtitle and sends a {@link ChartChangeEvent} to
 * all registered listeners.
 *
 * @param title  the title.
 *
 * @see #addSubtitle(Title)
 */
public void removeSubtitle(Title title) {
  this.subtitles.remove(title);
  fireChartChanged();
}

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

/**
 * Removes the specified subtitle and sends a {@link ChartChangeEvent} to
 * all registered listeners.
 *
 * @param title  the title.
 *
 * @see #addSubtitle(Title)
 */
public void removeSubtitle(Title title) {
  this.subtitles.remove(title);
  fireChartChanged();
}

代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

public void run()
  {
    getChart().fireChartChanged();
  }
});

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

/**
 * Clears all subtitles from the chart and sends a {@link ChartChangeEvent}
 * to all registered listeners.
 *
 * @see #addSubtitle(Title)
 */
public void clearSubtitles() {
  for (Title t : this.subtitles) {
    t.removeChangeListener(this);
  }
  this.subtitles.clear();
  fireChartChanged();
}

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

/**
 * Sets the rendering hints for the chart.  These will be added (using the
 * {@code Graphics2D.addRenderingHints()} method) near the start of the
 * {@code JFreeChart.draw()} method.
 *
 * @param renderingHints  the rendering hints ({@code null} not permitted).
 *
 * @see #getRenderingHints()
 */
public void setRenderingHints(RenderingHints renderingHints) {
  Args.nullNotPermitted(renderingHints, "renderingHints");
  this.renderingHints = renderingHints;
  fireChartChanged();
}

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

/**
 * Sets a flag that indicates whether or not anti-aliasing is used when the
 * chart is drawn.
 * <P>
 * Anti-aliasing usually improves the appearance of charts, but is slower.
 *
 * @param flag  the new value of the flag.
 *
 * @see #getAntiAlias()
 */
public void setAntiAlias(boolean flag) {
  Object hint = flag ? RenderingHints.VALUE_ANTIALIAS_ON 
      : RenderingHints.VALUE_ANTIALIAS_OFF;
  this.renderingHints.put(RenderingHints.KEY_ANTIALIASING, hint);
  fireChartChanged();
}

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

/**
 * Adds a chart subtitle, and notifies registered listeners that the chart
 * has been modified.
 *
 * @param subtitle  the subtitle ({@code null} not permitted).
 *
 * @see #getSubtitle(int)
 */
public void addSubtitle(Title subtitle) {
  Args.nullNotPermitted(subtitle, "subtitle");
  this.subtitles.add(subtitle);
  subtitle.addChangeListener(this);
  fireChartChanged();
}

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

private void handleStxChange() {
  if (model.hasStx(createHistogramConfig())) {
    refreshButton.setEnabled(false);
  }
  log10HistEnablement.apply();
  updateLogXAxisCheckBox();
  chart.getXYPlot().setDataset(dataset);
  updateXAxis();
  chart.fireChartChanged();
}

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

private void handleStxChange() {
  if (model.hasStx(createHistogramConfig())) {
    refreshButton.setEnabled(false);
  }
  log10HistEnablement.apply();
  updateLogXAxisCheckBox();
  chart.getXYPlot().setDataset(dataset);
  updateXAxis();
  chart.fireChartChanged();
}

相关文章