| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.jfree.chart.plot.Plotorg.jfree.chart.plot.PiePlotorg.jfree.chart.plot.RingPlotField Summary |
Fields inherited from class org.jfree.chart.plot.PiePlot | |
DEFAULT_INTERIOR_GAP, DEFAULT_LABEL_BACKGROUND_PAINT, DEFAULT_LABEL_FONT, DEFAULT_LABEL_OUTLINE_PAINT, DEFAULT_LABEL_OUTLINE_STROKE, DEFAULT_LABEL_PAINT, DEFAULT_LABEL_SHADOW_PAINT, DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW, DEFAULT_START_ANGLE, MAX_INTERIOR_GAP, localizationResources | |
Fields inherited from class org.jfree.chart.plot.Plot | |
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO | |
Constructor Summary | |
| |
| |
Method Summary | |
protected void |
|
boolean |
|
double |
|
double |
|
Paint |
|
Stroke |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public RingPlot(PieDataset dataset)
Creates a new plot for the specified dataset.
- Parameters:
dataset- the dataset (nullpermitted).
protected void drawItem(Graphics2D g2, int section, Rectangle2D dataArea, PiePlotState state, int currentPass)
Draws a single data item.
- Parameters:
g2- the graphics device (nullnot permitted).section- the section index.dataArea- the data plot area.state- state information for one chart.currentPass- the current pass index.
public boolean equals(Object obj)
Tests this plot for equality with an arbitrary object.
- Parameters:
obj- the object to test against (nullpermitted).
- Returns:
- A boolean.
public double getInnerSeparatorExtension()
Returns the length of the inner extension of the separator line that is drawn between sections, expressed as a percentage of the depth of the section.
- Returns:
- The inner separator extension (as a percentage).
public double getOuterSeparatorExtension()
Returns the length of the outer extension of the separator line that is drawn between sections, expressed as a percentage of the depth of the section.
- Returns:
- The outer separator extension (as a percentage).
public Paint getSeparatorPaint()
Returns the separator paint.
- Returns:
- The paint (never
null).
public Stroke getSeparatorStroke()
Returns the separator stroke.
- Returns:
- The stroke (never
null).
public boolean getSeparatorsVisible()
Returns a flag that indicates whether or not separators are drawn between the sections in the chart.
- Returns:
- A boolean.
public void setInnerSeparatorExtension(double percent)
Sets the length of the inner extension of the separator line that is drawn between sections, as a percentage of the depth of the sections, and sends aPlotChangeEventto all registered listeners.
- Parameters:
percent- the percentage.
public void setOuterSeparatorExtension(double percent)
Sets the length of the outer extension of the separator line that is drawn between sections, as a percentage of the depth of the sections, and sends aPlotChangeEventto all registered listeners.
- Parameters:
percent- the percentage.
public void setSeparatorPaint(Paint paint)
Sets the paint used to draw the separator between sections.
- Parameters:
paint- the paint (nullnot permitted).
public void setSeparatorStroke(Stroke stroke)
Sets the stroke used to draw the separator between sections.
- Parameters:
stroke- the stroke (nullnot permitted).
public void setSeparatorsVisible(boolean visible)
Sets the flag that controls whether or not separators are drawn between the sections in the chart, and sends aPlotChangeEventto all registered listeners.
- Parameters:
visible- the flag.