Tabnine Logo
PiePlot.setInteriorGap
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: stackoverflow.com

 public static void setPieRadius(JFreeChart chart, double radius)
{
  if (chart != null)
  {
    Plot plot = chart.getPlot();
    if (plot instanceof PiePlot)
    {
      PiePlot piePlot = (PiePlot) plot;
      double ig = 1.0 - radius;
      if (ig > PiePlot.MAX_INTERIOR_GAP)
      {
        ig = PiePlot.MAX_INTERIOR_GAP;
      }
      piePlot.setInteriorGap(ig);
    }
  }
}
origin: Comcast/cmb

pieplot.setLegendLabelToolTipGenerator(new StandardPieSectionLabelGenerator("Tooltip for legend item {0}"));
pieplot.setSimpleLabels(true);
pieplot.setInteriorGap(0.0D);
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: pentaho/pentaho-platform

PiePlot pie = (PiePlot) plot;
PieDatasetChartDefinition pieDefinition = (PieDatasetChartDefinition) chartDefinition;
pie.setInteriorGap( pieDefinition.getInteriorGap() );
pie.setStartAngle( pieDefinition.getStartAngle() );
pie.setLabelFont( pieDefinition.getLabelFont() );
org.jfree.chart.plotPiePlotsetInteriorGap

Javadoc

Sets the interior gap and sends a PlotChangeEvent to all registered listeners. This controls the space between the edges of the pie plot and the plot area itself (the region where the section labels appear).

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

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JPanel (javax.swing)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now