Java Doc for PiePlot.java in  » Chart » jfreechart » org » jfree » chart » plot » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Chart » jfreechart » org.jfree.chart.plot 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.chart.plot.Plot
      org.jfree.chart.plot.PiePlot

All known Subclasses:   org.jfree.chart.plot.RingPlot,  org.jfree.chart.plot.PiePlot3D,
PiePlot
public class PiePlot extends Plot implements Cloneable,Serializable(Code)
A plot that displays data in the form of a pie chart, using data from any class that implements the PieDataset interface.

Special notes:

  1. the default starting point is 12 o'clock and the pie sections proceed in a clockwise direction, but these settings can be changed;
  2. negative values in the dataset are ignored;
  3. there are utility methods for creating a PieDataset from a org.jfree.data.category.CategoryDataset ;

See Also:   Plot
See Also:   PieDataset


Field Summary
final public static  doubleDEFAULT_INTERIOR_GAP
     The default interior gap.
final public static  PaintDEFAULT_LABEL_BACKGROUND_PAINT
     The default section label background paint.
final public static  FontDEFAULT_LABEL_FONT
     The default section label font.
final public static  PaintDEFAULT_LABEL_OUTLINE_PAINT
     The default section label outline paint.
final public static  StrokeDEFAULT_LABEL_OUTLINE_STROKE
     The default section label outline stroke.
final public static  PaintDEFAULT_LABEL_PAINT
     The default section label paint.
final public static  PaintDEFAULT_LABEL_SHADOW_PAINT
     The default section label shadow paint.
final public static  doubleDEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW
     The default minimum arc angle to draw.
final public static  doubleDEFAULT_START_ANGLE
     The default starting angle for the pie chart.
final public static  doubleMAX_INTERIOR_GAP
     The maximum interior gap (currently 40%).
protected static  ResourceBundlelocalizationResources
     The resourceBundle for the localization.

Constructor Summary
public  PiePlot()
     Creates a new plot.
public  PiePlot(PieDataset dataset)
     Creates a plot that will draw a pie chart for the specified dataset.

Method Summary
public  Objectclone()
     Returns a clone of the plot.
public  voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)
     Draws the plot on a Java 2D graphics device (such as the screen or a printer).
protected  voiddrawItem(Graphics2D g2, int section, Rectangle2D dataArea, PiePlotState state, int currentPass)
     Draws a single data item.
protected  voiddrawLabels(Graphics2D g2, List keys, double totalValue, Rectangle2D plotArea, Rectangle2D linkArea, PiePlotState state)
     Draws the labels for the pie sections.
protected  voiddrawLeftLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)
     Draws a section label on the left side of the pie chart.
protected  voiddrawLeftLabels(KeyedValues leftKeys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)
     Draws the left labels.
protected  voiddrawPie(Graphics2D g2, Rectangle2D plotArea, PlotRenderingInfo info)
     Draws the pie.
protected  voiddrawRightLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)
     Draws a section label on the right side of the pie chart.
protected  voiddrawRightLabels(KeyedValues keys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)
     Draws the right labels.
public  booleanequals(Object obj)
     Tests this plot for equality with an arbitrary object.
protected  Rectangle2DgetArcBounds(Rectangle2D unexploded, Rectangle2D exploded, double angle, double extent, double explodePercent)
     Returns a rectangle that can be used to create a pie section (taking into account the amount by which the pie section is 'exploded').
Parameters:
  unexploded - the area inside which the unexploded pie sections aredrawn.
Parameters:
  exploded - the area inside which the exploded pie sections are drawn.
Parameters:
  angle - the start angle.
Parameters:
  extent - the extent of the arc.
Parameters:
  explodePercent - the amount by which the pie section is exploded.
public  PaintgetBaseSectionOutlinePaint()
     Returns the base section paint.
public  StrokegetBaseSectionOutlineStroke()
     Returns the base section stroke.
public  PaintgetBaseSectionPaint()
     Returns the base section paint.
public  PieDatasetgetDataset()
     Returns the dataset.
public  RotationgetDirection()
     Returns the direction in which the pie sections are drawn (clockwise or anti-clockwise).
public  doublegetExplodePercent(Comparable key)
     Returns the amount that the section with the specified key should be exploded.
Parameters:
  key - the key (null not permitted).
public  doublegetExplodePercent(int section)
     Returns the amount that a section should be 'exploded'.
Parameters:
  section - the section number.
public  booleangetIgnoreNullValues()
     Returns the flag that controls whether null values in the dataset are ignored.
public  booleangetIgnoreZeroValues()
     Returns the flag that controls whether zero values in the dataset are ignored.
public  doublegetInteriorGap()
     Returns the interior gap, measured as a percentage of the available drawing space.
public  PaintgetLabelBackgroundPaint()
     Returns the section label background paint.
public  AbstractPieLabelDistributorgetLabelDistributor()
     Returns the object responsible for the vertical layout of the pie section labels.
public  FontgetLabelFont()
     Returns the section label font.
public  doublegetLabelGap()
     Returns the gap between the edge of the pie and the labels, expressed as a percentage of the plot width.
public  PieSectionLabelGeneratorgetLabelGenerator()
     Returns the section label generator.
public  doublegetLabelLinkMargin()
     Returns the margin (expressed as a percentage of the width or height) between the edge of the pie and the link point.
public  PaintgetLabelLinkPaint()
     Returns the paint used for the lines that connect pie sections to their corresponding labels.
public  StrokegetLabelLinkStroke()
     Returns the stroke used for the label linking lines.
public  booleangetLabelLinksVisible()
     Returns the flag that controls whether or not label linking lines are visible.
public  PaintgetLabelOutlinePaint()
     Returns the section label outline paint.
public  StrokegetLabelOutlineStroke()
     Returns the section label outline stroke.
public  PaintgetLabelPaint()
     Returns the section label paint.
public  PaintgetLabelShadowPaint()
     Returns the section label shadow paint.
public  ShapegetLegendItemShape()
     Returns the shape used for legend items.
public  LegendItemCollectiongetLegendItems()
     Returns a collection of legend items for the pie chart.
public  PieSectionLabelGeneratorgetLegendLabelGenerator()
     Returns the legend label generator.
public  PieSectionLabelGeneratorgetLegendLabelToolTipGenerator()
     Returns the legend label tool tip generator.
public  PieURLGeneratorgetLegendLabelURLGenerator()
     Returns the legend label URL generator.
public  doublegetMaximumExplodePercent()
     Returns the maximum explode percent.
public  doublegetMaximumLabelWidth()
     Returns the maximum label width as a percentage of the plot width.
public  doublegetMinimumArcAngleToDraw()
     Returns the minimum arc angle that will be drawn.
public  intgetPieIndex()
     Returns the pie index (this is used by the MultiplePiePlot class to track subplots).
public  StringgetPlotType()
     Returns a short string describing the type of plot.
protected  ComparablegetSectionKey(int section)
     Returns a key for the specified section.
public  PaintgetSectionOutlinePaint()
     Returns the outline paint for ALL sections in the plot.
public  PaintgetSectionOutlinePaint(Comparable key)
     Returns the outline paint associated with the specified key, or null if there is no paint associated with the key.
Parameters:
  key - the key (null not permitted).
public  PaintgetSectionOutlinePaint(int section)
     Returns the paint for the specified section.
Parameters:
  section - the section index (zero-based).
public  StrokegetSectionOutlineStroke()
     Returns the outline stroke for ALL sections in the plot.
public  StrokegetSectionOutlineStroke(Comparable key)
     Returns the outline stroke associated with the specified key, or null if there is no stroke associated with the key.
Parameters:
  key - the key (null not permitted).
public  StrokegetSectionOutlineStroke(int section)
     Returns the stroke for the specified section.
Parameters:
  section - the section index (zero-based).
public  booleangetSectionOutlinesVisible()
     Returns the flag that controls whether or not the outline is drawn for each pie section.
public  PaintgetSectionPaint()
     Returns the paint for ALL sections in the plot.
public  PaintgetSectionPaint(Comparable key)
     Returns the paint associated with the specified key, or null if there is no paint associated with the key.
Parameters:
  key - the key (null not permitted).
public  PaintgetSectionPaint(int section)
     Returns the paint for the specified section.
Parameters:
  section - the section index (zero-based).
public  PaintgetShadowPaint()
     Returns the shadow paint.
public  doublegetShadowXOffset()
     Returns the x-offset for the shadow effect.
public  doublegetShadowYOffset()
     Returns the y-offset for the shadow effect.
public  doublegetStartAngle()
     Returns the start angle for the first pie section.
public  PieToolTipGeneratorgetToolTipGenerator()
     Returns the tool tip generator, an object that is responsible for generating the text items used for tool tips by the plot.
public  PieURLGeneratorgetURLGenerator()
     Returns the URL generator.
public  PiePlotStateinitialise(Graphics2D g2, Rectangle2D plotArea, PiePlot plot, Integer index, PlotRenderingInfo info)
     Initialises the drawing procedure.
public  booleanisCircular()
     Returns a flag indicating whether the pie chart is circular, or stretched into an elliptical shape.
protected  PaintlookupSectionOutlinePaint(Comparable key)
     Returns the outline paint for the specified section.
protected  PaintlookupSectionOutlinePaint(Comparable key, boolean autoPopulate)
     Returns the outline paint for the specified section.
protected  StrokelookupSectionOutlineStroke(Comparable key)
     Returns the outline stroke for the specified section.
protected  StrokelookupSectionOutlineStroke(Comparable key, boolean autoPopulate)
     Returns the outline stroke for the specified section.
protected  PaintlookupSectionPaint(Comparable key)
     Returns the paint for the specified section.
protected  PaintlookupSectionPaint(Comparable key, boolean autoPopulate)
     Returns the paint for the specified section.
public  voidsetBaseSectionOutlinePaint(Paint paint)
     Sets the base section paint.
public  voidsetBaseSectionOutlineStroke(Stroke stroke)
     Sets the base section stroke.
public  voidsetBaseSectionPaint(Paint paint)
     Sets the base section paint and sends a PlotChangeEvent to all registered listeners.
public  voidsetCircular(boolean flag)
     A flag indicating whether the pie chart is circular, or stretched into an elliptical shape.
public  voidsetCircular(boolean circular, boolean notify)
     Sets the circular attribute and, if requested, sends a PlotChangeEvent to all registered listeners.
public  voidsetDataset(PieDataset dataset)
     Sets the dataset and sends a DatasetChangeEvent to 'this'.
public  voidsetDirection(Rotation direction)
     Sets the direction in which the pie sections are drawn and sends a PlotChangeEvent to all registered listeners.
public  voidsetExplodePercent(Comparable key, double percent)
     Sets the amount that a pie section should be exploded and sends a PlotChangeEvent to all registered listeners.
public  voidsetExplodePercent(int section, double percent)
     Sets the amount that a pie section should be exploded and sends a PlotChangeEvent to all registered listeners.
public  voidsetIgnoreNullValues(boolean flag)
     Sets a flag that controls whether null values are ignored, and sends a PlotChangeEvent to all registered listeners.
public  voidsetIgnoreZeroValues(boolean flag)
     Sets a flag that controls whether zero values are ignored, and sends a PlotChangeEvent to all registered listeners.
public  voidsetInteriorGap(double percent)
     Sets the interior gap and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelBackgroundPaint(Paint paint)
     Sets the section label background paint and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelDistributor(AbstractPieLabelDistributor distributor)
     Sets the label distributor and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelFont(Font font)
     Sets the section label font and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelGap(double gap)
     Sets the gap between the edge of the pie and the labels (expressed as a percentage of the plot width) and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelGenerator(PieSectionLabelGenerator generator)
     Sets the section label generator and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelLinkMargin(double margin)
     Sets the link margin and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelLinkPaint(Paint paint)
     Sets the paint used for the lines that connect pie sections to their corresponding labels, and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelLinkStroke(Stroke stroke)
     Sets the link stroke and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelLinksVisible(boolean visible)
     Sets the flag that controls whether or not label linking lines are visible and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelOutlinePaint(Paint paint)
     Sets the section label outline paint and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelOutlineStroke(Stroke stroke)
     Sets the section label outline stroke and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelPaint(Paint paint)
     Sets the section label paint and sends a PlotChangeEvent to all registered listeners.
public  voidsetLabelShadowPaint(Paint paint)
     Sets the section label shadow paint and sends a PlotChangeEvent to all registered listeners.
public  voidsetLegendItemShape(Shape shape)
     Sets the shape used for legend items and sends a PlotChangeEvent to all registered listeners.
public  voidsetLegendLabelGenerator(PieSectionLabelGenerator generator)
     Sets the legend label generator and sends a PlotChangeEvent to all registered listeners.
public  voidsetLegendLabelToolTipGenerator(PieSectionLabelGenerator generator)
     Sets the legend label tool tip generator and sends a PlotChangeEvent to all registered listeners.
public  voidsetLegendLabelURLGenerator(PieURLGenerator generator)
     Sets the legend label URL generator and sends a PlotChangeEvent to all registered listeners.
public  voidsetMaximumLabelWidth(double width)
     Sets the maximum label width as a percentage of the plot width and sends a PlotChangeEvent to all registered listeners.
public  voidsetMinimumArcAngleToDraw(double angle)
     Sets the minimum arc angle that will be drawn.
public  voidsetPieIndex(int index)
     Sets the pie index (this is used by the MultiplePiePlot class to track subplots).
public  voidsetSectionOutlinePaint(Paint paint)
     Sets the outline paint for ALL sections in the plot.
public  voidsetSectionOutlinePaint(Comparable key, Paint paint)
     Sets the outline paint associated with the specified key, and sends a PlotChangeEvent to all registered listeners.
public  voidsetSectionOutlinePaint(int section, Paint paint)
     Sets the paint used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.
public  voidsetSectionOutlineStroke(Stroke stroke)
     Sets the outline stroke for ALL sections in the plot.
public  voidsetSectionOutlineStroke(Comparable key, Stroke stroke)
     Sets the outline stroke associated with the specified key, and sends a PlotChangeEvent to all registered listeners.
public  voidsetSectionOutlineStroke(int section, Stroke stroke)
     Sets the stroke used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.
public  voidsetSectionOutlinesVisible(boolean visible)
     Sets the flag that controls whether or not the outline is drawn for each pie section, and sends a PlotChangeEvent to all registered listeners.
public  voidsetSectionPaint(Paint paint)
     Sets the paint for ALL sections in the plot.
public  voidsetSectionPaint(Comparable key, Paint paint)
     Sets the paint associated with the specified key, and sends a PlotChangeEvent to all registered listeners.
public  voidsetSectionPaint(int section, Paint paint)
     Sets the paint used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.
public  voidsetShadowPaint(Paint paint)
     Sets the shadow paint and sends a PlotChangeEvent to all registered listeners.
public  voidsetShadowXOffset(double offset)
     Sets the x-offset for the shadow effect and sends a PlotChangeEvent to all registered listeners.
public  voidsetShadowYOffset(double offset)
     Sets the y-offset for the shadow effect and sends a PlotChangeEvent to all registered listeners.
public  voidsetStartAngle(double angle)
     Sets the starting angle and sends a PlotChangeEvent to all registered listeners.
public  voidsetToolTipGenerator(PieToolTipGenerator generator)
     Sets the tool tip generator and sends a PlotChangeEvent to all registered listeners.
public  voidsetURLGenerator(PieURLGenerator generator)
     Sets the URL generator and sends a PlotChangeEvent to all registered listeners.

Field Detail
DEFAULT_INTERIOR_GAP
final public static double DEFAULT_INTERIOR_GAP(Code)
The default interior gap.



DEFAULT_LABEL_BACKGROUND_PAINT
final public static Paint DEFAULT_LABEL_BACKGROUND_PAINT(Code)
The default section label background paint.



DEFAULT_LABEL_FONT
final public static Font DEFAULT_LABEL_FONT(Code)
The default section label font.



DEFAULT_LABEL_OUTLINE_PAINT
final public static Paint DEFAULT_LABEL_OUTLINE_PAINT(Code)
The default section label outline paint.



DEFAULT_LABEL_OUTLINE_STROKE
final public static Stroke DEFAULT_LABEL_OUTLINE_STROKE(Code)
The default section label outline stroke.



DEFAULT_LABEL_PAINT
final public static Paint DEFAULT_LABEL_PAINT(Code)
The default section label paint.



DEFAULT_LABEL_SHADOW_PAINT
final public static Paint DEFAULT_LABEL_SHADOW_PAINT(Code)
The default section label shadow paint.



DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW
final public static double DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW(Code)
The default minimum arc angle to draw.



DEFAULT_START_ANGLE
final public static double DEFAULT_START_ANGLE(Code)
The default starting angle for the pie chart.



MAX_INTERIOR_GAP
final public static double MAX_INTERIOR_GAP(Code)
The maximum interior gap (currently 40%).



localizationResources
protected static ResourceBundle localizationResources(Code)
The resourceBundle for the localization.




Constructor Detail
PiePlot
public PiePlot()(Code)
Creates a new plot. The dataset is initially set to null.



PiePlot
public PiePlot(PieDataset dataset)(Code)
Creates a plot that will draw a pie chart for the specified dataset.
Parameters:
  dataset - the dataset (null permitted).




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the plot. A clone.
throws:
  CloneNotSupportedException - if some component of the plot does not support cloning.



draw
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)
Draws the plot on a Java 2D graphics device (such as the screen or a printer).
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area within which the plot should be drawn.
Parameters:
  anchor - the anchor point (null permitted).
Parameters:
  parentState - the state from the parent plot, if there is one.
Parameters:
  info - collects info about the drawing (null permitted).



drawItem
protected void drawItem(Graphics2D g2, int section, Rectangle2D dataArea, PiePlotState state, int currentPass)(Code)
Draws a single data item.
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  section - the section index.
Parameters:
  dataArea - the data plot area.
Parameters:
  state - state information for one chart.
Parameters:
  currentPass - the current pass index.



drawLabels
protected void drawLabels(Graphics2D g2, List keys, double totalValue, Rectangle2D plotArea, Rectangle2D linkArea, PiePlotState state)(Code)
Draws the labels for the pie sections.
Parameters:
  g2 - the graphics device.
Parameters:
  keys - the keys.
Parameters:
  totalValue - the total value.
Parameters:
  plotArea - the plot area.
Parameters:
  linkArea - the link area.
Parameters:
  state - the state.



drawLeftLabel
protected void drawLeftLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)(Code)
Draws a section label on the left side of the pie chart.
Parameters:
  g2 - the graphics device.
Parameters:
  state - the state.
Parameters:
  record - the label record.



drawLeftLabels
protected void drawLeftLabels(KeyedValues leftKeys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)(Code)
Draws the left labels.
Parameters:
  leftKeys - a collection of keys and angles (to the middle of thesection, in degrees) for the sections on the left side of the plot.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  linkArea - the link area.
Parameters:
  maxLabelWidth - the maximum label width.
Parameters:
  state - the state.



drawPie
protected void drawPie(Graphics2D g2, Rectangle2D plotArea, PlotRenderingInfo info)(Code)
Draws the pie.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  info - chart rendering info.



drawRightLabel
protected void drawRightLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)(Code)
Draws a section label on the right side of the pie chart.
Parameters:
  g2 - the graphics device.
Parameters:
  state - the state.
Parameters:
  record - the label record.



drawRightLabels
protected void drawRightLabels(KeyedValues keys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)(Code)
Draws the right labels.
Parameters:
  keys - the keys.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  linkArea - the link area.
Parameters:
  maxLabelWidth - the maximum label width.
Parameters:
  state - the state.



equals
public boolean equals(Object obj)(Code)
Tests this plot for equality with an arbitrary object. Note that the plot's dataset is NOT included in the test for equality.
Parameters:
  obj - the object to test against (null permitted). true or false.



getArcBounds
protected Rectangle2D getArcBounds(Rectangle2D unexploded, Rectangle2D exploded, double angle, double extent, double explodePercent)(Code)
Returns a rectangle that can be used to create a pie section (taking into account the amount by which the pie section is 'exploded').
Parameters:
  unexploded - the area inside which the unexploded pie sections aredrawn.
Parameters:
  exploded - the area inside which the exploded pie sections are drawn.
Parameters:
  angle - the start angle.
Parameters:
  extent - the extent of the arc.
Parameters:
  explodePercent - the amount by which the pie section is exploded. A rectangle that can be used to create a pie section.



getBaseSectionOutlinePaint
public Paint getBaseSectionOutlinePaint()(Code)
Returns the base section paint. This is used when no other paint is available. The paint (never null).
See Also:   PiePlot.setBaseSectionOutlinePaint(Paint)



getBaseSectionOutlineStroke
public Stroke getBaseSectionOutlineStroke()(Code)
Returns the base section stroke. This is used when no other stroke is available. The stroke (never null).
See Also:   PiePlot.setBaseSectionOutlineStroke(Stroke)



getBaseSectionPaint
public Paint getBaseSectionPaint()(Code)
Returns the base section paint. This is used when no other paint is defined, which is rare. The default value is Color.gray. The paint (never null).
See Also:   PiePlot.setBaseSectionPaint(Paint)



getDataset
public PieDataset getDataset()(Code)
Returns the dataset. The dataset (possibly null).
See Also:   PiePlot.setDataset(PieDataset)



getDirection
public Rotation getDirection()(Code)
Returns the direction in which the pie sections are drawn (clockwise or anti-clockwise). The direction (never null).
See Also:   PiePlot.setDirection(Rotation)



getExplodePercent
public double getExplodePercent(Comparable key)(Code)
Returns the amount that the section with the specified key should be exploded.
Parameters:
  key - the key (null not permitted). The amount that the section with the specified key should beexploded.
throws:
  IllegalArgumentException - if key is null.
since:
   1.0.3
See Also:   PiePlot.setExplodePercent(Comparable,double)



getExplodePercent
public double getExplodePercent(int section)(Code)
Returns the amount that a section should be 'exploded'.
Parameters:
  section - the section number. The amount that a section should be 'exploded'.PiePlot.getExplodePercent(Comparable)



getIgnoreNullValues
public boolean getIgnoreNullValues()(Code)
Returns the flag that controls whether null values in the dataset are ignored. A boolean.
See Also:   PiePlot.setIgnoreNullValues(boolean)



getIgnoreZeroValues
public boolean getIgnoreZeroValues()(Code)
Returns the flag that controls whether zero values in the dataset are ignored. A boolean.
See Also:   PiePlot.setIgnoreZeroValues(boolean)



getInteriorGap
public double getInteriorGap()(Code)
Returns the interior gap, measured as a percentage of the available drawing space. The gap (as a percentage of the available drawing space).
See Also:   PiePlot.setInteriorGap(double)



getLabelBackgroundPaint
public Paint getLabelBackgroundPaint()(Code)
Returns the section label background paint. The paint (possibly null).
See Also:   PiePlot.setLabelBackgroundPaint(Paint)



getLabelDistributor
public AbstractPieLabelDistributor getLabelDistributor()(Code)
Returns the object responsible for the vertical layout of the pie section labels. The label distributor (never null).
since:
   1.0.6



getLabelFont
public Font getLabelFont()(Code)
Returns the section label font. The font (never null).
See Also:   PiePlot.setLabelFont(Font)



getLabelGap
public double getLabelGap()(Code)
Returns the gap between the edge of the pie and the labels, expressed as a percentage of the plot width. The gap (a percentage, where 0.05 = five percent).
See Also:   PiePlot.setLabelGap(double)



getLabelGenerator
public PieSectionLabelGenerator getLabelGenerator()(Code)
Returns the section label generator. The generator (possibly null).
See Also:   PiePlot.setLabelGenerator(PieSectionLabelGenerator)



getLabelLinkMargin
public double getLabelLinkMargin()(Code)
Returns the margin (expressed as a percentage of the width or height) between the edge of the pie and the link point. The link margin (as a percentage, where 0.05 is five percent).
See Also:   PiePlot.setLabelLinkMargin(double)



getLabelLinkPaint
public Paint getLabelLinkPaint()(Code)
Returns the paint used for the lines that connect pie sections to their corresponding labels. The paint (never null).
See Also:   PiePlot.setLabelLinkPaint(Paint)



getLabelLinkStroke
public Stroke getLabelLinkStroke()(Code)
Returns the stroke used for the label linking lines. The stroke.
See Also:   PiePlot.setLabelLinkStroke(Stroke)



getLabelLinksVisible
public boolean getLabelLinksVisible()(Code)
Returns the flag that controls whether or not label linking lines are visible. A boolean.
See Also:   PiePlot.setLabelLinksVisible(boolean)



getLabelOutlinePaint
public Paint getLabelOutlinePaint()(Code)
Returns the section label outline paint. The paint (possibly null).
See Also:   PiePlot.setLabelOutlinePaint(Paint)



getLabelOutlineStroke
public Stroke getLabelOutlineStroke()(Code)
Returns the section label outline stroke. The stroke (possibly null).
See Also:   PiePlot.setLabelOutlineStroke(Stroke)



getLabelPaint
public Paint getLabelPaint()(Code)
Returns the section label paint. The paint (never null).
See Also:   PiePlot.setLabelPaint(Paint)



getLabelShadowPaint
public Paint getLabelShadowPaint()(Code)
Returns the section label shadow paint. The paint (possibly null).
See Also:   PiePlot.setLabelShadowPaint(Paint)



getLegendItemShape
public Shape getLegendItemShape()(Code)
Returns the shape used for legend items. The shape (never null).
See Also:   PiePlot.setLegendItemShape(Shape)



getLegendItems
public LegendItemCollection getLegendItems()(Code)
Returns a collection of legend items for the pie chart. The legend items (never null).



getLegendLabelGenerator
public PieSectionLabelGenerator getLegendLabelGenerator()(Code)
Returns the legend label generator. The legend label generator (never null).
See Also:   PiePlot.setLegendLabelGenerator(PieSectionLabelGenerator)



getLegendLabelToolTipGenerator
public PieSectionLabelGenerator getLegendLabelToolTipGenerator()(Code)
Returns the legend label tool tip generator. The legend label tool tip generator (possibly null).
See Also:   PiePlot.setLegendLabelToolTipGenerator(PieSectionLabelGenerator)



getLegendLabelURLGenerator
public PieURLGenerator getLegendLabelURLGenerator()(Code)
Returns the legend label URL generator. The legend label URL generator (possibly null).
See Also:   PiePlot.setLegendLabelURLGenerator(PieURLGenerator)
since:
   1.0.4



getMaximumExplodePercent
public double getMaximumExplodePercent()(Code)
Returns the maximum explode percent. The percent.



getMaximumLabelWidth
public double getMaximumLabelWidth()(Code)
Returns the maximum label width as a percentage of the plot width. The width (a percentage, where 0.20 = 20 percent).
See Also:   PiePlot.setMaximumLabelWidth(double)



getMinimumArcAngleToDraw
public double getMinimumArcAngleToDraw()(Code)
Returns the minimum arc angle that will be drawn. Pie sections for an angle smaller than this are not drawn, to avoid a JDK bug. The minimum angle.
See Also:   PiePlot.setMinimumArcAngleToDraw(double)



getPieIndex
public int getPieIndex()(Code)
Returns the pie index (this is used by the MultiplePiePlot class to track subplots). The pie index.
See Also:   PiePlot.setPieIndex(int)



getPlotType
public String getPlotType()(Code)
Returns a short string describing the type of plot. The plot type.



getSectionKey
protected Comparable getSectionKey(int section)(Code)
Returns a key for the specified section. If there is no such section in the dataset, we generate a key. This is to provide some backward compatibility for the (now deprecated) methods that get/set attributes based on section indices. The preferred way of doing this now is to link the attributes directly to the section key (there are new methods for this, starting from version 1.0.3).
Parameters:
  section - the section index. The key.
since:
   1.0.3



getSectionOutlinePaint
public Paint getSectionOutlinePaint()(Code)
Returns the outline paint for ALL sections in the plot. The paint (possibly null).
See Also:   PiePlot.setSectionOutlinePaint(Paint)PiePlot.getSectionOutlinePaint(Comparable)PiePlot.getBaseSectionOutlinePaint()



getSectionOutlinePaint
public Paint getSectionOutlinePaint(Comparable key)(Code)
Returns the outline paint associated with the specified key, or null if there is no paint associated with the key.
Parameters:
  key - the key (null not permitted). The paint associated with the specified key, or null.
throws:
  IllegalArgumentException - if key is null.
See Also:   PiePlot.setSectionOutlinePaint(Comparable,Paint)
since:
   1.0.3



getSectionOutlinePaint
public Paint getSectionOutlinePaint(int section)(Code)
Returns the paint for the specified section.
Parameters:
  section - the section index (zero-based). The paint (possibly null).PiePlot.getSectionOutlinePaint(Comparable)



getSectionOutlineStroke
public Stroke getSectionOutlineStroke()(Code)
Returns the outline stroke for ALL sections in the plot. The stroke (possibly null).
See Also:   PiePlot.setSectionOutlineStroke(Stroke)PiePlot.getSectionOutlineStroke(Comparable)PiePlot.getBaseSectionOutlineStroke()



getSectionOutlineStroke
public Stroke getSectionOutlineStroke(Comparable key)(Code)
Returns the outline stroke associated with the specified key, or null if there is no stroke associated with the key.
Parameters:
  key - the key (null not permitted). The stroke associated with the specified key, or null.
throws:
  IllegalArgumentException - if key is null.
See Also:   PiePlot.setSectionOutlineStroke(Comparable,Stroke)
since:
   1.0.3



getSectionOutlineStroke
public Stroke getSectionOutlineStroke(int section)(Code)
Returns the stroke for the specified section.
Parameters:
  section - the section index (zero-based). The stroke (possibly null).PiePlot.getSectionOutlineStroke(Comparable)



getSectionOutlinesVisible
public boolean getSectionOutlinesVisible()(Code)
Returns the flag that controls whether or not the outline is drawn for each pie section. The flag that controls whether or not the outline is drawn foreach pie section.
See Also:   PiePlot.setSectionOutlinesVisible(boolean)



getSectionPaint
public Paint getSectionPaint()(Code)
Returns the paint for ALL sections in the plot. The paint (possibly null).
See Also:   PiePlot.setSectionPaint(Paint)PiePlot.getSectionPaint(Comparable)PiePlot.getBaseSectionPaint()



getSectionPaint
public Paint getSectionPaint(Comparable key)(Code)
Returns the paint associated with the specified key, or null if there is no paint associated with the key.
Parameters:
  key - the key (null not permitted). The paint associated with the specified key, or null.
throws:
  IllegalArgumentException - if key is null.
See Also:   PiePlot.setSectionPaint(Comparable,Paint)
since:
   1.0.3



getSectionPaint
public Paint getSectionPaint(int section)(Code)
Returns the paint for the specified section.
Parameters:
  section - the section index (zero-based). The paint (never null).PiePlot.getSectionPaint(Comparable)



getShadowPaint
public Paint getShadowPaint()(Code)
Returns the shadow paint. The paint (possibly null).
See Also:   PiePlot.setShadowPaint(Paint)



getShadowXOffset
public double getShadowXOffset()(Code)
Returns the x-offset for the shadow effect. The offset (in Java2D units).
See Also:   PiePlot.setShadowXOffset(double)



getShadowYOffset
public double getShadowYOffset()(Code)
Returns the y-offset for the shadow effect. The offset (in Java2D units).
See Also:   PiePlot.setShadowYOffset(double)



getStartAngle
public double getStartAngle()(Code)
Returns the start angle for the first pie section. This is measured in degrees starting from 3 o'clock and measuring anti-clockwise. The start angle.
See Also:   PiePlot.setStartAngle(double)



getToolTipGenerator
public PieToolTipGenerator getToolTipGenerator()(Code)
Returns the tool tip generator, an object that is responsible for generating the text items used for tool tips by the plot. If the generator is null, no tool tips will be created. The generator (possibly null).
See Also:   PiePlot.setToolTipGenerator(PieToolTipGenerator)



getURLGenerator
public PieURLGenerator getURLGenerator()(Code)
Returns the URL generator. The generator (possibly null).
See Also:   PiePlot.setURLGenerator(PieURLGenerator)



initialise
public PiePlotState initialise(Graphics2D g2, Rectangle2D plotArea, PiePlot plot, Integer index, PlotRenderingInfo info)(Code)
Initialises the drawing procedure. This method will be called before the first item is rendered, giving the plot an opportunity to initialise any state information it wants to maintain.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area (null not permitted).
Parameters:
  plot - the plot.
Parameters:
  index - the secondary index (null for primary renderer).
Parameters:
  info - collects chart rendering information for return to caller. A state object (maintains state information relevant to one chart drawing).



isCircular
public boolean isCircular()(Code)
Returns a flag indicating whether the pie chart is circular, or stretched into an elliptical shape. A flag indicating whether the pie chart is circular.
See Also:   PiePlot.setCircular(boolean)



lookupSectionOutlinePaint
protected Paint lookupSectionOutlinePaint(Comparable key)(Code)
Returns the outline paint for the specified section. This is equivalent to lookupSectionPaint(section, false).
Parameters:
  key - the section key. The paint for the specified section.
since:
   1.0.3
See Also:   PiePlot.lookupSectionOutlinePaint(Comparable,boolean)



lookupSectionOutlinePaint
protected Paint lookupSectionOutlinePaint(Comparable key, boolean autoPopulate)(Code)
Returns the outline paint for the specified section. The lookup involves these steps:
Parameters:
  key - the section key.
Parameters:
  autoPopulate - a flag that controls whether the drawing supplier is used to auto-populate the section outline paint settings. The paint.
since:
   1.0.3



lookupSectionOutlineStroke
protected Stroke lookupSectionOutlineStroke(Comparable key)(Code)
Returns the outline stroke for the specified section. This is equivalent to lookupSectionOutlineStroke(section, false).
Parameters:
  key - the section key. The stroke for the specified section.
since:
   1.0.3
See Also:   PiePlot.lookupSectionOutlineStroke(Comparable,boolean)



lookupSectionOutlineStroke
protected Stroke lookupSectionOutlineStroke(Comparable key, boolean autoPopulate)(Code)
Returns the outline stroke for the specified section. The lookup involves these steps:
Parameters:
  key - the section key.
Parameters:
  autoPopulate - a flag that controls whether the drawing supplier is used to auto-populate the section outline stroke settings. The stroke.
since:
   1.0.3



lookupSectionPaint
protected Paint lookupSectionPaint(Comparable key)(Code)
Returns the paint for the specified section. This is equivalent to lookupSectionPaint(section, false).
Parameters:
  key - the section key. The paint for the specified section.
since:
   1.0.3
See Also:   PiePlot.lookupSectionPaint(Comparable,boolean)



lookupSectionPaint
protected Paint lookupSectionPaint(Comparable key, boolean autoPopulate)(Code)
Returns the paint for the specified section. The lookup involves these steps:
Parameters:
  key - the section key.
Parameters:
  autoPopulate - a flag that controls whether the drawing supplier is used to auto-populate the section paint settings. The paint.
since:
   1.0.3



setBaseSectionOutlinePaint
public void setBaseSectionOutlinePaint(Paint paint)(Code)
Sets the base section paint.
Parameters:
  paint - the paint (null not permitted).
See Also:   PiePlot.getBaseSectionOutlinePaint()



setBaseSectionOutlineStroke
public void setBaseSectionOutlineStroke(Stroke stroke)(Code)
Sets the base section stroke.
Parameters:
  stroke - the stroke (null not permitted).
See Also:   PiePlot.getBaseSectionOutlineStroke()



setBaseSectionPaint
public void setBaseSectionPaint(Paint paint)(Code)
Sets the base section paint and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   PiePlot.getBaseSectionPaint()



setCircular
public void setCircular(boolean flag)(Code)
A flag indicating whether the pie chart is circular, or stretched into an elliptical shape.
Parameters:
  flag - the new value.
See Also:   PiePlot.isCircular()



setCircular
public void setCircular(boolean circular, boolean notify)(Code)
Sets the circular attribute and, if requested, sends a PlotChangeEvent to all registered listeners.
Parameters:
  circular - the new value of the flag.
Parameters:
  notify - notify listeners?
See Also:   PiePlot.isCircular()



setDataset
public void setDataset(PieDataset dataset)(Code)
Sets the dataset and sends a DatasetChangeEvent to 'this'.
Parameters:
  dataset - the dataset (null permitted).
See Also:   PiePlot.getDataset()



setDirection
public void setDirection(Rotation direction)(Code)
Sets the direction in which the pie sections are drawn and sends a PlotChangeEvent to all registered listeners.
Parameters:
  direction - the direction (null not permitted).
See Also:   PiePlot.getDirection()



setExplodePercent
public void setExplodePercent(Comparable key, double percent)(Code)
Sets the amount that a pie section should be exploded and sends a PlotChangeEvent to all registered listeners.
Parameters:
  key - the section key (null not permitted).
Parameters:
  percent - the explode percentage (0.30 = 30 percent).
since:
   1.0.3
See Also:   PiePlot.getExplodePercent(Comparable)



setExplodePercent
public void setExplodePercent(int section, double percent)(Code)
Sets the amount that a pie section should be exploded and sends a PlotChangeEvent to all registered listeners.
Parameters:
  section - the section index.
Parameters:
  percent - the explode percentage (0.30 = 30 percent).PiePlot.setExplodePercent(Comparable,double)



setIgnoreNullValues
public void setIgnoreNullValues(boolean flag)(Code)
Sets a flag that controls whether null values are ignored, and sends a PlotChangeEvent to all registered listeners. At present, this only affects whether or not the key is presented in the legend.
Parameters:
  flag - the flag.
See Also:   PiePlot.getIgnoreNullValues()
See Also:   PiePlot.setIgnoreZeroValues(boolean)



setIgnoreZeroValues
public void setIgnoreZeroValues(boolean flag)(Code)
Sets a flag that controls whether zero values are ignored, and sends a PlotChangeEvent to all registered listeners. This only affects whether or not a label appears for the non-visible pie section.
Parameters:
  flag - the flag.
See Also:   PiePlot.getIgnoreZeroValues()
See Also:   PiePlot.setIgnoreNullValues(boolean)



setInteriorGap
public void setInteriorGap(double percent)(Code)
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).
Parameters:
  percent - the gap (as a percentage of the available drawing space).
See Also:   PiePlot.getInteriorGap()



setLabelBackgroundPaint
public void setLabelBackgroundPaint(Paint paint)(Code)
Sets the section label background paint and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null permitted).
See Also:   PiePlot.getLabelBackgroundPaint()



setLabelDistributor
public void setLabelDistributor(AbstractPieLabelDistributor distributor)(Code)
Sets the label distributor and sends a PlotChangeEvent to all registered listeners.
Parameters:
  distributor - the distributor (null not permitted).
since:
   1.0.6



setLabelFont
public void setLabelFont(Font font)(Code)
Sets the section label font and sends a PlotChangeEvent to all registered listeners.
Parameters:
  font - the font (null not permitted).
See Also:   PiePlot.getLabelFont()



setLabelGap
public void setLabelGap(double gap)(Code)
Sets the gap between the edge of the pie and the labels (expressed as a percentage of the plot width) and sends a PlotChangeEvent to all registered listeners.
Parameters:
  gap - the gap (a percentage, where 0.05 = five percent).
See Also:   PiePlot.getLabelGap()



setLabelGenerator
public void setLabelGenerator(PieSectionLabelGenerator generator)(Code)
Sets the section label generator and sends a PlotChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   PiePlot.getLabelGenerator()



setLabelLinkMargin
public void setLabelLinkMargin(double margin)(Code)
Sets the link margin and sends a PlotChangeEvent to all registered listeners.
Parameters:
  margin - the margin.
See Also:   PiePlot.getLabelLinkMargin()



setLabelLinkPaint
public void setLabelLinkPaint(Paint paint)(Code)
Sets the paint used for the lines that connect pie sections to their corresponding labels, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   PiePlot.getLabelLinkPaint()



setLabelLinkStroke
public void setLabelLinkStroke(Stroke stroke)(Code)
Sets the link stroke and sends a PlotChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke.
See Also:   PiePlot.getLabelLinkStroke()



setLabelLinksVisible
public void setLabelLinksVisible(boolean visible)(Code)
Sets the flag that controls whether or not label linking lines are visible and sends a PlotChangeEvent to all registered listeners. Please take care when hiding the linking lines - depending on the data values, the labels can be displayed some distance away from the corresponding pie section.
Parameters:
  visible - the flag.
See Also:   PiePlot.getLabelLinksVisible()



setLabelOutlinePaint
public void setLabelOutlinePaint(Paint paint)(Code)
Sets the section label outline paint and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null permitted).
See Also:   PiePlot.getLabelOutlinePaint()



setLabelOutlineStroke
public void setLabelOutlineStroke(Stroke stroke)(Code)
Sets the section label outline stroke and sends a PlotChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null permitted).
See Also:   PiePlot.getLabelOutlineStroke()



setLabelPaint
public void setLabelPaint(Paint paint)(Code)
Sets the section label paint and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   PiePlot.getLabelPaint()



setLabelShadowPaint
public void setLabelShadowPaint(Paint paint)(Code)
Sets the section label shadow paint and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null permitted).
See Also:   PiePlot.getLabelShadowPaint()



setLegendItemShape
public void setLegendItemShape(Shape shape)(Code)
Sets the shape used for legend items and sends a PlotChangeEvent to all registered listeners.
Parameters:
  shape - the shape (null not permitted).
See Also:   PiePlot.getLegendItemShape()



setLegendLabelGenerator
public void setLegendLabelGenerator(PieSectionLabelGenerator generator)(Code)
Sets the legend label generator and sends a PlotChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null not permitted).
See Also:   PiePlot.getLegendLabelGenerator()



setLegendLabelToolTipGenerator
public void setLegendLabelToolTipGenerator(PieSectionLabelGenerator generator)(Code)
Sets the legend label tool tip generator and sends a PlotChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   PiePlot.getLegendLabelToolTipGenerator()



setLegendLabelURLGenerator
public void setLegendLabelURLGenerator(PieURLGenerator generator)(Code)
Sets the legend label URL generator and sends a PlotChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   PiePlot.getLegendLabelURLGenerator()
since:
   1.0.4



setMaximumLabelWidth
public void setMaximumLabelWidth(double width)(Code)
Sets the maximum label width as a percentage of the plot width and sends a PlotChangeEvent to all registered listeners.
Parameters:
  width - the width (a percentage, where 0.20 = 20 percent).
See Also:   PiePlot.getMaximumLabelWidth()



setMinimumArcAngleToDraw
public void setMinimumArcAngleToDraw(double angle)(Code)
Sets the minimum arc angle that will be drawn. Pie sections for an angle smaller than this are not drawn, to avoid a JDK bug. See this link for details:

http://www.jfree.org/phpBB2/viewtopic.php?t=2707

...and this bug report in the Java Bug Parade:

http://developer.java.sun.com/developer/bugParade/bugs/4836495.html
Parameters:
  angle - the minimum angle.
See Also:   PiePlot.getMinimumArcAngleToDraw()



setPieIndex
public void setPieIndex(int index)(Code)
Sets the pie index (this is used by the MultiplePiePlot class to track subplots).
Parameters:
  index - the index.
See Also:   PiePlot.getPieIndex()



setSectionOutlinePaint
public void setSectionOutlinePaint(Paint paint)(Code)
Sets the outline paint for ALL sections in the plot. If this is set to null, then a list of paints is used instead (to allow different colors to be used for each section).
Parameters:
  paint - the paint (null permitted).
See Also:   PiePlot.getSectionOutlinePaint()PiePlot.setSectionOutlinePaint(Comparable,Paint)PiePlot.setBaseSectionOutlinePaint(Paint)



setSectionOutlinePaint
public void setSectionOutlinePaint(Comparable key, Paint paint)(Code)
Sets the outline paint associated with the specified key, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  key - the key (null not permitted).
Parameters:
  paint - the paint.
throws:
  IllegalArgumentException - if key is null.
See Also:   PiePlot.getSectionOutlinePaint(Comparable)
since:
   1.0.3



setSectionOutlinePaint
public void setSectionOutlinePaint(int section, Paint paint)(Code)
Sets the paint used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.
Parameters:
  section - the section index (zero-based).
Parameters:
  paint - the paint (null permitted).PiePlot.setSectionOutlinePaint(Comparable,Paint)



setSectionOutlineStroke
public void setSectionOutlineStroke(Stroke stroke)(Code)
Sets the outline stroke for ALL sections in the plot. If this is set to null, then a list of paints is used instead (to allow different colors to be used for each section).
Parameters:
  stroke - the stroke (null permitted).
See Also:   PiePlot.getSectionOutlineStroke()PiePlot.setSectionOutlineStroke(Comparable,Stroke)PiePlot.setBaseSectionOutlineStroke(Stroke)



setSectionOutlineStroke
public void setSectionOutlineStroke(Comparable key, Stroke stroke)(Code)
Sets the outline stroke associated with the specified key, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  key - the key (null not permitted).
Parameters:
  stroke - the stroke.
throws:
  IllegalArgumentException - if key is null.
See Also:   PiePlot.getSectionOutlineStroke(Comparable)
since:
   1.0.3



setSectionOutlineStroke
public void setSectionOutlineStroke(int section, Stroke stroke)(Code)
Sets the stroke used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.
Parameters:
  section - the section index (zero-based).
Parameters:
  stroke - the stroke (null permitted).PiePlot.setSectionOutlineStroke(Comparable,Stroke)



setSectionOutlinesVisible
public void setSectionOutlinesVisible(boolean visible)(Code)
Sets the flag that controls whether or not the outline is drawn for each pie section, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  visible - the flag.
See Also:   PiePlot.getSectionOutlinesVisible()



setSectionPaint
public void setSectionPaint(Paint paint)(Code)
Sets the paint for ALL sections in the plot. If this is set to null, then a list of paints is used instead (to allow different colors to be used for each section).
Parameters:
  paint - the paint (null permitted).
See Also:   PiePlot.getSectionPaint()PiePlot.setSectionPaint(Comparable,Paint)PiePlot.setBaseSectionPaint(Paint)



setSectionPaint
public void setSectionPaint(Comparable key, Paint paint)(Code)
Sets the paint associated with the specified key, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  key - the key (null not permitted).
Parameters:
  paint - the paint.
throws:
  IllegalArgumentException - if key is null.
See Also:   PiePlot.getSectionPaint(Comparable)
since:
   1.0.3



setSectionPaint
public void setSectionPaint(int section, Paint paint)(Code)
Sets the paint used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.
Parameters:
  section - the section index (zero-based).
Parameters:
  paint - the paint (null permitted).PiePlot.setSectionPaint(Comparable,Paint)



setShadowPaint
public void setShadowPaint(Paint paint)(Code)
Sets the shadow paint and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null permitted).
See Also:   PiePlot.getShadowPaint()



setShadowXOffset
public void setShadowXOffset(double offset)(Code)
Sets the x-offset for the shadow effect and sends a PlotChangeEvent to all registered listeners.
Parameters:
  offset - the offset (in Java2D units).
See Also:   PiePlot.getShadowXOffset()



setShadowYOffset
public void setShadowYOffset(double offset)(Code)
Sets the y-offset for the shadow effect and sends a PlotChangeEvent to all registered listeners.
Parameters:
  offset - the offset (in Java2D units).
See Also:   PiePlot.getShadowYOffset()



setStartAngle
public void setStartAngle(double angle)(Code)
Sets the starting angle and sends a PlotChangeEvent to all registered listeners. The initial default value is 90 degrees, which corresponds to 12 o'clock. A value of zero corresponds to 3 o'clock... this is the encoding used by Java's Arc2D class.
Parameters:
  angle - the angle (in degrees).
See Also:   PiePlot.getStartAngle()



setToolTipGenerator
public void setToolTipGenerator(PieToolTipGenerator generator)(Code)
Sets the tool tip generator and sends a PlotChangeEvent to all registered listeners. Set the generator to null if you don't want any tool tips.
Parameters:
  generator - the generator (null permitted).
See Also:   PiePlot.getToolTipGenerator()



setURLGenerator
public void setURLGenerator(PieURLGenerator generator)(Code)
Sets the URL generator and sends a PlotChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   PiePlot.getURLGenerator()



Fields inherited from org.jfree.chart.plot.Plot
final public static float DEFAULT_BACKGROUND_ALPHA(Code)(Java Doc)
final public static Paint DEFAULT_BACKGROUND_PAINT(Code)(Java Doc)
final public static float DEFAULT_FOREGROUND_ALPHA(Code)(Java Doc)
final public static RectangleInsets DEFAULT_INSETS(Code)(Java Doc)
final public static Shape DEFAULT_LEGEND_ITEM_BOX(Code)(Java Doc)
final public static Shape DEFAULT_LEGEND_ITEM_CIRCLE(Code)(Java Doc)
final public static Paint DEFAULT_OUTLINE_PAINT(Code)(Java Doc)
final public static Stroke DEFAULT_OUTLINE_STROKE(Code)(Java Doc)
final public static int MINIMUM_HEIGHT_TO_DRAW(Code)(Java Doc)
final public static int MINIMUM_WIDTH_TO_DRAW(Code)(Java Doc)
final public static Number ZERO(Code)(Java Doc)

Methods inherited from org.jfree.chart.plot.Plot
public void addChangeListener(PlotChangeListener listener)(Code)(Java Doc)
public void axisChanged(AxisChangeEvent event)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public void datasetChanged(DatasetChangeEvent event)(Code)(Java Doc)
abstract public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)(Java Doc)
public void drawBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
public void drawBackgroundImage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
protected void drawNoDataMessage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
public void drawOutline(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void fillBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
protected void fillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)(Code)(Java Doc)
public float getBackgroundAlpha()(Code)(Java Doc)
public Image getBackgroundImage()(Code)(Java Doc)
public int getBackgroundImageAlignment()(Code)(Java Doc)
public float getBackgroundImageAlpha()(Code)(Java Doc)
public Paint getBackgroundPaint()(Code)(Java Doc)
public DatasetGroup getDatasetGroup()(Code)(Java Doc)
public DrawingSupplier getDrawingSupplier()(Code)(Java Doc)
public float getForegroundAlpha()(Code)(Java Doc)
public RectangleInsets getInsets()(Code)(Java Doc)
public LegendItemCollection getLegendItems()(Code)(Java Doc)
public String getNoDataMessage()(Code)(Java Doc)
public Font getNoDataMessageFont()(Code)(Java Doc)
public Paint getNoDataMessagePaint()(Code)(Java Doc)
public Paint getOutlinePaint()(Code)(Java Doc)
public Stroke getOutlineStroke()(Code)(Java Doc)
public Plot getParent()(Code)(Java Doc)
abstract public String getPlotType()(Code)(Java Doc)
protected double getRectX(double x, double w1, double w2, RectangleEdge edge)(Code)(Java Doc)
protected double getRectY(double y, double h1, double h2, RectangleEdge edge)(Code)(Java Doc)
public Plot getRootPlot()(Code)(Java Doc)
public void handleClick(int x, int y, PlotRenderingInfo info)(Code)(Java Doc)
public boolean isOutlineVisible()(Code)(Java Doc)
public boolean isSubplot()(Code)(Java Doc)
public void markerChanged(MarkerChangeEvent event)(Code)(Java Doc)
public void notifyListeners(PlotChangeEvent event)(Code)(Java Doc)
public void removeChangeListener(PlotChangeListener listener)(Code)(Java Doc)
public static RectangleEdge resolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc)
public static RectangleEdge resolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc)
public void setBackgroundAlpha(float alpha)(Code)(Java Doc)
public void setBackgroundImage(Image image)(Code)(Java Doc)
public void setBackgroundImageAlignment(int alignment)(Code)(Java Doc)
public void setBackgroundImageAlpha(float alpha)(Code)(Java Doc)
public void setBackgroundPaint(Paint paint)(Code)(Java Doc)
protected void setDatasetGroup(DatasetGroup group)(Code)(Java Doc)
public void setDrawingSupplier(DrawingSupplier supplier)(Code)(Java Doc)
public void setForegroundAlpha(float alpha)(Code)(Java Doc)
public void setInsets(RectangleInsets insets)(Code)(Java Doc)
public void setInsets(RectangleInsets insets, boolean notify)(Code)(Java Doc)
public void setNoDataMessage(String message)(Code)(Java Doc)
public void setNoDataMessageFont(Font font)(Code)(Java Doc)
public void setNoDataMessagePaint(Paint paint)(Code)(Java Doc)
public void setOutlinePaint(Paint paint)(Code)(Java Doc)
public void setOutlineStroke(Stroke stroke)(Code)(Java Doc)
public void setOutlineVisible(boolean visible)(Code)(Java Doc)
public void setParent(Plot parent)(Code)(Java Doc)
public void zoom(double percent)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.