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

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

Best Java code snippets using org.jfree.chart.plot.PiePlot.setDirection (Showing top 5 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: 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.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: com.atlassian.jira/jira-api

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

plot.setOutlinePaint(ChartDefaults.transparent);
plot.setCircular(true);
plot.setDirection(Rotation.CLOCKWISE);
plot.setIgnoreNullValues(true);
plot.setIgnoreZeroValues(true);
origin: org.jboss.seam/jboss-seam-pdf

pieplot.setDirection(rotationValue(direction));
org.jfree.chart.plotPiePlotsetDirection

Javadoc

Sets the direction in which the pie sections are drawn 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,
  • setInteriorGap

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • BoxLayout (javax.swing)
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