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

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

Best Java code snippets using org.jfree.chart.plot.PiePlot.setLabelBackgroundPaint (Showing top 10 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: stackoverflow.com

PiePlot plot = (PiePlot) chart.getPlot();
 plot.setLabelBackgroundPaint(null);
 plot.setLabelOutlinePaint(null);
 plot.setLabelShadowPaint(null);
origin: Comcast/cmb

pieplot.setLabelBackgroundPaint(new Color(220, 220, 220));
pieplot.setLegendLabelToolTipGenerator(new StandardPieSectionLabelGenerator("Tooltip for legend item {0}"));
pieplot.setSimpleLabels(true);
origin: org.renci/charts

public JFreeChart createPieChart(String title, PieDataset dataset) {
  JFreeChart chart = ChartFactory.createPieChart(title, dataset, true, true, false);
  PiePlot plot = (PiePlot) chart.getPlot();
  plot.setCircular(true);
  plot.setDirection(Rotation.CLOCKWISE);
  plot.setNoDataMessage("No data to display");
  StandardPieSectionLabelGenerator labelGenerator = new StandardPieSectionLabelGenerator("{0} {1} ({2})");
  plot.setLabelGenerator(labelGenerator);
  plot.setInteriorGap(0.01);
  plot.setMaximumLabelWidth(0.32);
  Font font = new Font(chart.getLegend().getItemFont().getFamily(), Font.PLAIN, 12);
  plot.setLabelFont(font);
  plot.setLabelBackgroundPaint(new Color(220, 220, 220));
  font = new Font(chart.getLegend().getItemFont().getFamily(), Font.PLAIN, 12);
  chart.getLegend().setItemFont(font);
  return chart;
}
origin: jfree/eastwood

/**
 * Creates a pie chart.
 *
 * @return A pie chart.
 */
private static JFreeChart createPieChart() {
  JFreeChart chart = ChartFactory.createPieChart(null, null,
      false, true, false);
  chart.setBackgroundPaint(Color.white);
  PiePlot plot = (PiePlot) chart.getPlot();
  plot.setBackgroundPaint(null);
  plot.setInsets(RectangleInsets.ZERO_INSETS);
  plot.setInteriorGap(0.06);
  plot.setStartAngle(0.0);
  plot.setLabelGenerator(null);
  plot.setBaseSectionOutlinePaint(Color.white);
  plot.setBaseSectionOutlineStroke(new BasicStroke(1.2f,
      BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
  plot.setOutlineVisible(false);
  plot.setLabelBackgroundPaint(null);
  plot.setLabelOutlinePaint(null);
  plot.setLabelShadowPaint(null);
  plot.setLabelPadding(RectangleInsets.ZERO_INSETS);
  plot.setLabelFont(new Font("Dialog", Font.PLAIN, 12));
  plot.setLabelPaint(Color.gray);
  plot.setToolTipGenerator(new StandardPieToolTipGenerator("{2}"));
  return chart;
}
origin: com.atlassian.jira/jira-api

plot.setLabelBackgroundPaint(Color.WHITE);
plot.setLabelOutlinePaint(Color.gray.brighter());
plot.setLabelShadowPaint(Color.WHITE);
origin: com.atlassian.confluence.extra.chart/chart-plugin

plot.setLabelBackgroundPaint(ChartDefaults.transparent);
plot.setLabelOutlinePaint(Color.gray.brighter());
plot.setLabelShadowPaint(ChartDefaults.transparent);
origin: jasperreports/jasperreports

piePlot.setLabelBackgroundPaint(itemLabel.getBackgroundColor());
piePlot.setLabelBackgroundPaint(getChart().getBackcolor());
origin: org.jboss.seam/jboss-seam-pdf

pieplot.setLabelBackgroundPaint(findColor(labelBackgroundPaint));
origin: pentaho/pentaho-platform

 pie.setLabelPaint( pieDefinition.getLabelPaint() );
pie.setLabelBackgroundPaint( pieDefinition.getLabelBackgroundPaint() );
if ( pieDefinition.isLegendIncluded() ) {
 StandardPieSectionLabelGenerator labelGen = new StandardPieSectionLabelGenerator( "{0}" ); //$NON-NLS-1$
origin: datacleaner/DataCleaner

piePlot.setBaseSectionOutlineStroke(STROKE_NORMAL);
piePlot.setLabelFont(WidgetUtils.FONT_SMALL);
piePlot.setLabelBackgroundPaint(WidgetUtils.BG_COLOR_BRIGHT);
piePlot.setLabelOutlineStroke(STROKE_NORMAL);
piePlot.setLabelPaint(WidgetUtils.BG_COLOR_DARK);
org.jfree.chart.plotPiePlotsetLabelBackgroundPaint

Javadoc

Sets the section label background paint and sends a PlotChangeEvent to all registered listeners.

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.
  • 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
  • setBaseSectionOutlinePaint
    Sets the base section paint.
  • setOutlinePaint,
  • setBaseSectionOutlinePaint,
  • setIgnoreNullValues,
  • setLabelGap,
  • <init>,
  • getDataset,
  • setBaseSectionOutlineStroke,
  • setDirection,
  • setInteriorGap

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Collectors (java.util.stream)
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Runner (org.openjdk.jmh.runner)
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