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

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

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

plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
origin: org.codehaus.jtstand/jtstand-chart

plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
origin: jfree/jfreechart

plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
origin: jfree/jfreechart

/**
 * Creates a pie chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link PiePlot} instance
 * as the plot.
 *
 * @param title  the chart title ({@code null} permitted).
 * @param dataset  the dataset for the chart ({@code null} permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param locale  the locale ({@code null} not permitted).
 *
 * @return A pie chart.
 *
 * @since 1.0.7
 */
public static JFreeChart createPieChart(String title, PieDataset dataset,
    boolean legend, boolean tooltips, Locale locale) {
  PiePlot plot = new PiePlot(dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator(locale));
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
  }
  JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
      plot, legend);
  currentTheme.apply(chart);
  return chart;
}
origin: org.sakaiproject.sitestats/sitestats-impl

plot.setInsets(new RectangleInsets(1,1,1,1));
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Creates a pie chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link PiePlot} instance
 * as the plot.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param locale  the locale (<code>null</code> not permitted).
 *
 * @return A pie chart.
 *
 * @since 1.0.7
 */
public static JFreeChart createPieChart(String title, PieDataset dataset,
    boolean legend, boolean tooltips, Locale locale) {
  PiePlot plot = new PiePlot(dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator(locale));
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
  }
  JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
      plot, legend);
  currentTheme.apply(chart);
  return chart;
}
origin: org.codehaus.jtstand/jtstand-chart

plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
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: jfree/jfreechart

/**
 * Creates a pie chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link PiePlot} instance
 * as the plot.
 *
 * @param title  the chart title ({@code null} permitted).
 * @param dataset  the dataset for the chart ({@code null} permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param urls  configure chart to generate URLs?
 *
 * @return A pie chart.
 */
public static JFreeChart createPieChart(String title, PieDataset dataset,
    boolean legend, boolean tooltips, boolean urls) {
  PiePlot plot = new PiePlot(dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator());
  }
  if (urls) {
    plot.setURLGenerator(new StandardPieURLGenerator());
  }
  JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
      plot, legend);
  currentTheme.apply(chart);
  return chart;
}
origin: org.codehaus.jtstand/jtstand-chart

plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
if (tooltips) {
  plot.setToolTipGenerator(new StandardPieToolTipGenerator());
org.jfree.chart.plotPiePlotsetInsets

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

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getExternalFilesDir (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JCheckBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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