Package org.jfree.chart.plot
Class PiePlot3D
java.lang.Object
org.jfree.chart.plot.Plot
org.jfree.chart.plot.PiePlot
org.jfree.chart.plot.PiePlot3D
- All Implemented Interfaces:
Serializable
,Cloneable
,EventListener
,AnnotationChangeListener
,AxisChangeListener
,MarkerChangeListener
,LegendItemSource
,PublicCloneable
,DatasetChangeListener
Deprecated.
For 3D pie charts, use Orson Charts (https://github.com/jfree/orson-charts).
A plot that displays data in the form of a 3D pie chart, using data from
any class that implements the
PieDataset
interface.
Although this class extends PiePlot
, it does not currently support
exploded sections.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Deprecated.A flag that controls whether or not the sides of the pie chart are rendered using a darker colour.private double
Deprecated.The factor of the depth of the pie from the plot heightprivate static final long
Deprecated.For serialization.Fields inherited from class org.jfree.chart.plot.PiePlot
DEBUG_DRAW_INTERIOR, DEBUG_DRAW_LINK_AREA, DEBUG_DRAW_PIE_AREA, 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, localizationResources, MAX_INTERIOR_GAP
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
ConstructorsConstructorDescriptionDeprecated.Creates a new instance with no dataset.PiePlot3D
(PieDataset dataset) Deprecated.Creates a pie chart with a three dimensional effect using the specified dataset. -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Graphics2D g2, Rectangle2D plotArea, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Deprecated.Draws the plot on a Java 2D graphics device (such as the screen or a printer).protected void
drawSide
(Graphics2D g2, Rectangle2D plotArea, Arc2D arc, Area front, Area back, Paint paint, Paint outlinePaint, Stroke outlineStroke, boolean drawFront, boolean drawBack) Deprecated.Draws the side of a pie section.boolean
Deprecated.Tests this plot for equality with an arbitrary object.boolean
Deprecated.Returns a flag that controls whether or not the sides of the pie chart are rendered using a darker colour.double
Deprecated.Returns the depth factor for the chart.Deprecated.Returns a short string describing the type of plot.private boolean
isAngleAtBack
(double angle) Deprecated.A utility method that returns true if the angle represents a point at the back of the 3D pie chart.private boolean
isAngleAtFront
(double angle) Deprecated.A utility method that returns true if the angle represents a point at the front of the 3D pie chart.void
setDarkerSides
(boolean darker) Deprecated.Sets a flag that controls whether or not the sides of the pie chart are rendered using a darker colour, and sends aPlotChangeEvent
to all registered listeners.void
setDepthFactor
(double factor) Deprecated.Sets the pie depth as a percentage of the height of the plot area, and sends aPlotChangeEvent
to all registered listeners.Methods inherited from class org.jfree.chart.plot.PiePlot
clearSectionOutlinePaints, clearSectionOutlineStrokes, clearSectionPaints, clone, drawItem, drawLabels, drawLeftLabel, drawLeftLabels, drawPie, drawRightLabel, drawRightLabels, drawSimpleLabels, getArcBounds, getArcCenter, getAutoPopulateSectionOutlinePaint, getAutoPopulateSectionOutlineStroke, getAutoPopulateSectionPaint, getDataset, getDefaultSectionOutlinePaint, getDefaultSectionOutlineStroke, getDefaultSectionPaint, getDirection, getExplodePercent, getIgnoreNullValues, getIgnoreZeroValues, getInteriorGap, getLabelBackgroundPaint, getLabelDistributor, getLabelFont, getLabelGap, getLabelGenerator, getLabelLinkDepth, getLabelLinkMargin, getLabelLinkPaint, getLabelLinkStroke, getLabelLinkStyle, getLabelLinksVisible, getLabelOutlinePaint, getLabelOutlineStroke, getLabelPadding, getLabelPaint, getLabelShadowPaint, getLegendItems, getLegendItemShape, getLegendLabelGenerator, getLegendLabelToolTipGenerator, getLegendLabelURLGenerator, getMaximumExplodePercent, getMaximumLabelWidth, getMinimumArcAngleToDraw, getPieIndex, getSectionKey, getSectionOutlinePaint, getSectionOutlineStroke, getSectionOutlinesVisible, getSectionPaint, getShadowGenerator, getShadowPaint, getShadowXOffset, getShadowYOffset, getSimpleLabelOffset, getSimpleLabels, getStartAngle, getToolTipGenerator, getURLGenerator, handleMouseWheelRotation, hashCode, initialise, isCircular, lookupSectionOutlinePaint, lookupSectionOutlinePaint, lookupSectionOutlineStroke, lookupSectionOutlineStroke, lookupSectionPaint, lookupSectionPaint, lookupSectionPaint, setAutoPopulateSectionOutlinePaint, setAutoPopulateSectionOutlineStroke, setAutoPopulateSectionPaint, setCircular, setCircular, setDataset, setDefaultSectionOutlinePaint, setDefaultSectionOutlineStroke, setDefaultSectionPaint, setDirection, setExplodePercent, setIgnoreNullValues, setIgnoreZeroValues, setInteriorGap, setLabelBackgroundPaint, setLabelDistributor, setLabelFont, setLabelGap, setLabelGenerator, setLabelLinkMargin, setLabelLinkPaint, setLabelLinkStroke, setLabelLinkStyle, setLabelLinksVisible, setLabelOutlinePaint, setLabelOutlineStroke, setLabelPadding, setLabelPaint, setLabelShadowPaint, setLegendItemShape, setLegendLabelGenerator, setLegendLabelToolTipGenerator, setLegendLabelURLGenerator, setMaximumLabelWidth, setMinimumArcAngleToDraw, setPieIndex, setSectionOutlinePaint, setSectionOutlineStroke, setSectionOutlinesVisible, setSectionPaint, setShadowGenerator, setShadowPaint, setShadowXOffset, setShadowYOffset, setSimpleLabelOffset, setSimpleLabels, setStartAngle, setToolTipGenerator, setURLGenerator
Methods inherited from class org.jfree.chart.plot.Plot
addChangeListener, annotationChanged, axisChanged, canEqual, createAndAddEntity, datasetChanged, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, fetchElementHintingFlag, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getChart, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, handleClick, isNotify, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setChart, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setNotify, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoom
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.For serialization.- See Also:
-
depthFactor
private double depthFactorDeprecated.The factor of the depth of the pie from the plot height -
darkerSides
private boolean darkerSidesDeprecated.A flag that controls whether or not the sides of the pie chart are rendered using a darker colour.
-
-
Constructor Details
-
PiePlot3D
public PiePlot3D()Deprecated.Creates a new instance with no dataset. -
PiePlot3D
Deprecated.Creates a pie chart with a three dimensional effect using the specified dataset.- Parameters:
dataset
- the dataset (null
permitted).
-
-
Method Details
-
getDepthFactor
public double getDepthFactor()Deprecated.Returns the depth factor for the chart.- Returns:
- The depth factor.
- See Also:
-
setDepthFactor
public void setDepthFactor(double factor) Deprecated.Sets the pie depth as a percentage of the height of the plot area, and sends aPlotChangeEvent
to all registered listeners.- Parameters:
factor
- the depth factor (for example, 0.20 is twenty percent).- See Also:
-
getDarkerSides
public boolean getDarkerSides()Deprecated.Returns a flag that controls whether or not the sides of the pie chart are rendered using a darker colour.- Returns:
- A boolean.
- See Also:
-
setDarkerSides
public void setDarkerSides(boolean darker) Deprecated.Sets a flag that controls whether or not the sides of the pie chart are rendered using a darker colour, and sends aPlotChangeEvent
to all registered listeners.- Parameters:
darker
- true to darken the sides, false to use the default behaviour.- See Also:
-
draw
public void draw(Graphics2D g2, Rectangle2D plotArea, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Deprecated.Draws the plot on a Java 2D graphics device (such as the screen or a printer). This method is called by theJFreeChart
class, you don't normally need to call it yourself. -
drawSide
protected void drawSide(Graphics2D g2, Rectangle2D plotArea, Arc2D arc, Area front, Area back, Paint paint, Paint outlinePaint, Stroke outlineStroke, boolean drawFront, boolean drawBack) Deprecated.Draws the side of a pie section.- Parameters:
g2
- the graphics device.plotArea
- the plot area.arc
- the arc.front
- the front of the pie.back
- the back of the pie.paint
- the color.outlinePaint
- the outline paint.outlineStroke
- the outline stroke.drawFront
- draw the front?drawBack
- draw the back?
-
getPlotType
Deprecated.Returns a short string describing the type of plot.- Overrides:
getPlotType
in classPiePlot
- Returns:
- Pie 3D Plot.
-
isAngleAtFront
private boolean isAngleAtFront(double angle) Deprecated.A utility method that returns true if the angle represents a point at the front of the 3D pie chart. 0 - 180 degrees is the back, 180 - 360 is the front.- Parameters:
angle
- the angle.- Returns:
- A boolean.
-
isAngleAtBack
private boolean isAngleAtBack(double angle) Deprecated.A utility method that returns true if the angle represents a point at the back of the 3D pie chart. 0 - 180 degrees is the back, 180 - 360 is the front.- Parameters:
angle
- the angle.- Returns:
true
if the angle is at the back of the pie.
-
equals
Deprecated.Tests this plot for equality with an arbitrary object.
-