Codota Logo
PiePlot.clearSectionPaints
Code IndexAdd Codota to your IDE (free)

How to use
clearSectionPaints
method
in
org.jfree.chart.plot.PiePlot

Best Java code snippets using org.jfree.chart.plot.PiePlot.clearSectionPaints (Showing top 2 results out of 315)

  • Common ways to obtain PiePlot
private void myMethod () {
PiePlot p =
  • Codota IconJFreeChart chart;(PiePlot) chart.getPlot()
  • Codota IconPieDataset dataset;new PiePlot(dataset)
  • Smart code suggestions by Codota
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Applies the attributes of this theme to a {@link PiePlot} instance.
 * This method also clears any set values for the section paint, outline
 * etc, so that the theme's {@link DrawingSupplier} will be used.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToPiePlot(PiePlot plot) {
  plot.setLabelLinkPaint(this.labelLinkPaint);
  plot.setLabelLinkStyle(this.labelLinkStyle);
  plot.setLabelFont(this.regularFont);
  // clear the section attributes so that the theme's DrawingSupplier
  // will be used
  if (plot.getAutoPopulateSectionPaint()) {
    plot.clearSectionPaints(false);
  }
  if (plot.getAutoPopulateSectionOutlinePaint()) {
    plot.clearSectionOutlinePaints(false);
  }
  if (plot.getAutoPopulateSectionOutlineStroke()) {
    plot.clearSectionOutlineStrokes(false);
  }
}
origin: jfree/jfreechart

/**
 * Applies the attributes of this theme to a {@link PiePlot} instance.
 * This method also clears any set values for the section paint, outline
 * etc, so that the theme's {@link DrawingSupplier} will be used.
 *
 * @param plot  the plot ({@code null} not permitted).
 */
protected void applyToPiePlot(PiePlot plot) {
  plot.setLabelLinkPaint(this.labelLinkPaint);
  plot.setLabelLinkStyle(this.labelLinkStyle);
  plot.setLabelFont(this.regularFont);
  plot.setShadowGenerator(this.shadowGenerator);
  // clear the section attributes so that the theme's DrawingSupplier
  // will be used
  if (plot.getAutoPopulateSectionPaint()) {
    plot.clearSectionPaints(false);
  }
  if (plot.getAutoPopulateSectionOutlinePaint()) {
    plot.clearSectionOutlinePaints(false);
  }
  if (plot.getAutoPopulateSectionOutlineStroke()) {
    plot.clearSectionOutlineStrokes(false);
  }
}
org.jfree.chart.plotPiePlotclearSectionPaints

Javadoc

Clears the section paint settings for this plot and, if requested, sends a PlotChangeEvent to all registered listeners. Be aware that if the autoPopulateSectionPaint flag is set, the section paints may be repopulated using the same colours as before.

Popular methods of PiePlot

  • setLabelGenerator
    Sets the section label generator and sends a PlotChangeEvent to all registered listeners.
  • setSectionPaint
    Sets the paint associated with the specified key, and sends a PlotChangeEvent to all registered list
  • setLabelFont
    Sets the section label font and sends a PlotChangeEvent to all registered listeners.
  • setToolTipGenerator
    Sets the tool tip generator and sends a PlotChangeEvent to all registered listeners. Set the generat
  • setBackgroundPaint
  • setCircular
    Sets the circular attribute and, if requested, sends a PlotChangeEvent to all registered listeners.
  • setLabelBackgroundPaint
    Sets the section label background paint and sends a PlotChangeEvent to all registered listeners.
  • setStartAngle
    Sets the starting angle and sends a PlotChangeEvent to all registered listeners. The initial default
  • setURLGenerator
    Sets the URL generator and sends a PlotChangeEvent to all registered listeners.
  • setExplodePercent
    Sets the amount that a pie section should be exploded and sends a PlotChangeEvent to all registered
  • setNoDataMessage
  • setOutlinePaint
  • setNoDataMessage,
  • setOutlinePaint,
  • setBaseSectionOutlinePaint,
  • setIgnoreNullValues,
  • setLabelGap,
  • <init>,
  • getDataset,
  • setBaseSectionOutlineStroke,
  • setDirection,
  • setInteriorGap

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getApplicationContext (Context)
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now