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

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

Best Java code snippets using org.jfree.chart.plot.PiePlot.setShadowXOffset (Showing top 6 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: no.uib/jsparklines

piePlot.setCircular(true);
piePlot.setLabelGenerator(null);
piePlot.setShadowXOffset(0);
piePlot.setShadowYOffset(0);
origin: com.atlassian.jira.plugins/jira-fisheye-plugin

public static ChartHelper generatePieChart(PieDataset dataset, String chartTitle, Color[][] colorScheme) {
  boolean legend = false;
  boolean tooltips = false;
  boolean urls = false;
  JFreeChart chart = ChartFactory.createPieChart(chartTitle, dataset, legend, tooltips, urls);
  chart.setBackgroundPaint(Color.white);
  chart.setBorderVisible(false);
  PiePlot plot = (PiePlot) chart.getPlot();
  // Make section labels in the format "<Key>"
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0}"));
  plot.setBackgroundPaint(Color.white);
  plot.setOutlinePaint(null);
  for(int i = 0; i < colorScheme.length; i++)
  {
    setSectionColor(dataset, plot, i, colorScheme[i][0], colorScheme[i][1]);
  }
  plot.setShadowXOffset(0);
  plot.setShadowYOffset(0);
  return new ChartHelper(chart);
}
origin: com.atlassian.jira/jira-api

plot.setIgnoreZeroValues(true);
plot.setStartAngle(290);
plot.setShadowXOffset(0.0);
plot.setShadowYOffset(0.0);
origin: com.atlassian.confluence.extra.chart/chart-plugin

plot.setIgnoreZeroValues(true);
plot.setStartAngle(290);
plot.setShadowXOffset(0.0);
plot.setShadowYOffset(0.0);
origin: dhis2/dhis2-core

private JFreeChart getMultiplePieChart( BaseChart chart, CategoryDataset[] dataSets )
{
  JFreeChart multiplePieChart = ChartFactory.createMultiplePieChart( chart.getName(), dataSets[0], TableOrder.BY_ROW,
    !chart.isHideLegend(), false, false );
  setBasicConfig( multiplePieChart, chart );
  if ( multiplePieChart.getLegend() != null )
  {
    multiplePieChart.getLegend().setItemFont( SUB_TITLE_FONT );
  }
  MultiplePiePlot multiplePiePlot = (MultiplePiePlot) multiplePieChart.getPlot();
  JFreeChart pieChart = multiplePiePlot.getPieChart();
  pieChart.setBackgroundPaint( DEFAULT_BACKGROUND_COLOR );
  pieChart.getTitle().setFont( SUB_TITLE_FONT );
  PiePlot piePlot = (PiePlot) pieChart.getPlot();
  piePlot.setBackgroundPaint( DEFAULT_BACKGROUND_COLOR );
  piePlot.setOutlinePaint( DEFAULT_BACKGROUND_COLOR );
  piePlot.setLabelFont( LABEL_FONT );
  piePlot.setLabelGenerator( new StandardPieSectionLabelGenerator( "{2}" ) );
  piePlot.setSimpleLabels( true );
  piePlot.setIgnoreZeroValues( true );
  piePlot.setIgnoreNullValues( true );
  piePlot.setShadowXOffset( 0d );
  piePlot.setShadowYOffset( 0d );
  for ( int i = 0; i < dataSets[0].getColumnCount(); i++ )
  {
    piePlot.setSectionPaint( dataSets[0].getColumnKey( i ), COLORS[(i % COLORS.length)] );
  }
  return multiplePieChart;
}
origin: no.uib/jsparklines

((PiePlot) plot).setCircular(true);
((PiePlot) plot).setLabelGenerator(null);
((PiePlot) plot).setShadowXOffset(0);
((PiePlot) plot).setShadowYOffset(0);
((PiePlot) plot).setSectionOutlinesVisible(false);
org.jfree.chart.plotPiePlotsetShadowXOffset

Javadoc

Sets the x-offset for the shadow effect 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.
  • 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

  • Start an intent from android
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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