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

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

Best Java code snippets using org.jfree.chart.plot.PiePlot.setExplodePercent (Showing top 8 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

plot.setSectionPaint(KEY1, Color.green);
plot.setSectionPaint(KEY2, Color.red);
plot.setExplodePercent(KEY1, 0.10);
plot.setSimpleLabels(true);
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sets the amount that a pie section should be exploded and sends a
 * {@link PlotChangeEvent} to all registered listeners.
 *
 * @param section  the section index.
 * @param percent  the explode percentage (0.30 = 30 percent).
 *
 * @deprecated Use {@link #setExplodePercent(Comparable, double)} instead.
 */
public void setExplodePercent(int section, double percent) {
  Comparable key = getSectionKey(section);
  setExplodePercent(key, percent);
}
origin: com.atlassian.confluence.extra.chart/chart-plugin

/**
 * Handle pie plot customization
 * - get customization parameters from parameter Map and modify plot accordingly
 * @param parameters  macro parameters
 * @param plot  chart plot
 */
void handlePiePlotCustomization(Map parameters, PiePlot plot) {
  // Pie section label customization
  String pieSectionLabel = getStringParameter(parameters, "piesectionlabel", "%0%") // default to just show key
               .replaceAll("%0%", "\\{0\\}")  // convert to what jfreechart uses - unfortunately {and } cause problems in parameters
               .replaceAll("%1%", "\\{1\\}")
               .replaceAll("%2%", "\\{2\\}");
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator(pieSectionLabel));
  // Pie section explode - just simple to start with, requires jfreechart 1.0.3 or above
  // - need a comma separated list of key=value pairs to support fully
  if (ChartUtil.isVersion103Capable()) {
    String pieSectionExplode = getStringParameter(parameters, "piesectionexplode", ""); // default to no key explode
    String explodeList[] = pieSectionExplode.split(",");
    for (String anExplodeList : explodeList) {
      if (StringUtils.isBlank(anExplodeList)) continue; /* Should skip if trimming string is blank */
      try {
        plot.setExplodePercent(anExplodeList.trim(), DEFAULT_PIE_EXPLODE);
      } catch (Exception exception) {
        log.debug("Ignore errors");
      }
    }
  }
}
origin: Comcast/cmb

pieplot.setExplodePercent(topApi, 0.20000000000000001D);
origin: stackoverflow.com

plot2.setExplodePercent("3", 0.25);
plot2.setLabelGenerator(labelGenerator);
origin: com.atlassian.jira.plugins/jira-fisheye-plugin

private void initPlot(PiePlot plot, int chartType) {
  switch (chartType) {
    case TYPE_FISHEYE_PIE:
      //orient chart so labels will align nicely even if small slices of pie are present
      plot.setStartAngle(180);
      plot.setDirection(Rotation.ANTICLOCKWISE);
      break;
    case TYPE_CRUCIBLE_PIE:
      plot.setStartAngle(160);
      plot.setDirection(Rotation.CLOCKWISE);
      plot.setExplodePercent("Unreviewed", .25);
      plot.setLabelGenerator(null);
      break;
    default:
  }
}
origin: org.jboss.seam/jboss-seam-pdf

plot.setExplodePercent(getKey(), getExplodedPercent());
origin: pentaho/pentaho-platform

pie.setExplodePercent( (Comparable) iter.next(), .30 );
org.jfree.chart.plotPiePlotsetExplodePercent

Javadoc

Sets the amount that a pie section should be exploded 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.
  • 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.
  • setNoDataMessage
  • setOutlinePaint
  • setBaseSectionOutlinePaint
    Sets the base section paint.
  • setOutlinePaint,
  • setBaseSectionOutlinePaint,
  • setIgnoreNullValues,
  • setLabelGap,
  • <init>,
  • getDataset,
  • setBaseSectionOutlineStroke,
  • setDirection,
  • setInteriorGap

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • getContentResolver (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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