/** * 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(); }
/** * 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(); } }
/** * 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(); }
/** * Repaints the chart. */ public void repaintCanvas() { chart.fireChartChanged(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); } }
/** * 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(); } }
/** * 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(); } }
/** * 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(); }
/** * 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(); }
public void run() { getChart().fireChartChanged(); } });
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
private void handleStxChange() { if (model.hasStx(createHistogramConfig())) { refreshButton.setEnabled(false); } log10HistEnablement.apply(); updateLogXAxisCheckBox(); chart.getXYPlot().setDataset(dataset); updateXAxis(); chart.fireChartChanged(); }
private void handleStxChange() { if (model.hasStx(createHistogramConfig())) { refreshButton.setEnabled(false); } log10HistEnablement.apply(); updateLogXAxisCheckBox(); chart.getXYPlot().setDataset(dataset); updateXAxis(); chart.fireChartChanged(); }