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

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

Best Java code snippets using org.jfree.chart.plot.PiePlot.setCircular (Showing top 13 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: jfree/jfreechart

/**
 * A flag indicating whether the pie chart is circular, or stretched into
 * an elliptical shape.
 *
 * @param flag  the new value.
 *
 * @see #isCircular()
 */
public void setCircular(boolean flag) {
  setCircular(flag, true);
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * A flag indicating whether the pie chart is circular, or stretched into
 * an elliptical shape.
 *
 * @param flag  the new value.
 *
 * @see #isCircular()
 */
public void setCircular(boolean flag) {
  setCircular(flag, true);
}
origin: stackoverflow.com

public void getPieChart() {
   DefaultPieDataset pieDataset = new DefaultPieDataset();
 pieDataset.setValue("JavaWorld", new Integer(75));
 pieDataset.setValue("Other", new Integer(25));
   JFreeChart chart = ChartFactory.createPieChart("Discounts Used by Category ", data, true, true, false);
   //chart.setBackgroundPaint(new Color(222, 222, 255));
     final PiePlot plot = (PiePlot) chart.getPlot();
     plot.setBackgroundPaint(Color.white);
     plot.setCircular(true);
   try {
     final ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
     final File file1 = new File(getServletContext().getRealPath(".") + "/images/charts/piechart.png");
     ChartUtilities.saveChartAsPNG(file1, chart, 600, 400, info);
   } catch (Exception e) {
     System.out.println(e);
   }
 }
origin: stackoverflow.com

plot.setCircular(true);
origin: stackoverflow.com

 JFreeChart chart = ChartFactory.createPieChart3D("World Polulation by Countries ", dataset, true, true, true);
      PiePlot plot = (PiePlot) chart.getPlot();

      plot.setPieIndex(0);

//          plot.setLabelFont(new Font("SansSerif", Font.NORMAL, 12));
      plot.setNoDataMessage("No data available");
      plot.setCircular(false);
      plot.setLabelLinksVisible(true);
//          plot.zoom(200);
//          plot.setStartAngle(180);
//          plot.setLabelBackgroundPaint(paint);
      plot.setLabelLinkMargin(0.01);
      return chart;
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: no.uib/jsparklines

piePlot.setCircular(true);
piePlot.setLabelGenerator(null);
piePlot.setShadowXOffset(0);
origin: com.atlassian.jira/jira-api

plot.setBackgroundPaint(Color.WHITE);
plot.setOutlinePaint(Color.WHITE);
plot.setCircular(true);
plot.setDirection(Rotation.CLOCKWISE);
plot.setIgnoreNullValues(true);
origin: com.atlassian.confluence.extra.chart/chart-plugin

plot.setBackgroundPaint(ChartDefaults.transparent);
plot.setOutlinePaint(ChartDefaults.transparent);
plot.setCircular(true);
plot.setDirection(Rotation.CLOCKWISE);
plot.setIgnoreNullValues(true);
origin: com.manydesigns/portofino-chart

plot.setCircular(true);
origin: no.uib/jsparklines

((PiePlot) plot).setCircular(true);
((PiePlot) plot).setLabelGenerator(null);
((PiePlot) plot).setShadowXOffset(0);
origin: jasperreports/jasperreports

piePlot.setCircular(isCircular);
origin: org.jboss.seam/jboss-seam-pdf

pieplot.setCircular(circular);
org.jfree.chart.plotPiePlotsetCircular

Javadoc

A flag indicating whether the pie chart is circular, or stretched into an elliptical shape.

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
  • 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
  • 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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • setContentView (Activity)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
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