java.lang.Object | ||
↳ | org.jfree.chart.plot.Plot | |
↳ | org.jfree.chart.plot.SpiderWebPlot |
A plot that displays data from a CategoryDataset
in the form of a
"spider web". Multiple series can be plotted on the same axis to allow
easy comparison. This plot doesn't support negative values at present.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
double | DEFAULT_AXIS_LABEL_GAP | The default axis label gap (currently 10%). | |||||||||
double | DEFAULT_HEAD | The default head radius percent (currently 1%). | |||||||||
double | DEFAULT_INTERIOR_GAP | The default interior gap. | |||||||||
double | DEFAULT_MAX_VALUE | The default maximum value plotted - forces the plot to evaluate the maximum from the data passed in | |||||||||
double | DEFAULT_START_ANGLE | The default starting angle for the radar chart axes. | |||||||||
double | MAX_INTERIOR_GAP | The maximum interior gap (currently 40%). |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT_LABEL_BACKGROUND_PAINT | The default series label background paint. | ||||||||||
DEFAULT_LABEL_FONT | The default series label font. | ||||||||||
DEFAULT_LABEL_OUTLINE_PAINT | The default series label outline paint. | ||||||||||
DEFAULT_LABEL_OUTLINE_STROKE | The default series label outline stroke. | ||||||||||
DEFAULT_LABEL_PAINT | The default series label paint. | ||||||||||
DEFAULT_LABEL_SHADOW_PAINT | The default series label shadow paint. | ||||||||||
headPercent | The head radius as a percentage of the available drawing area. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a default plot with no dataset.
| |||||||||||
Creates a new spider web plot with the given dataset, with each row
representing a series.
| |||||||||||
Creates a new spider web plot with the given dataset.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of this plot.
| |||||||||||
Draws the plot on a Java 2D graphics device (such as the screen or a
printer).
| |||||||||||
Tests this plot for equality with an arbitrary object.
| |||||||||||
Returns the axis label gap.
| |||||||||||
Returns the paint used to draw the axis lines.
| |||||||||||
Returns the stroke used to draw the axis lines.
| |||||||||||
Returns the base series paint.
| |||||||||||
Returns the base series stroke.
| |||||||||||
Returns the base series paint.
| |||||||||||
Returns the data extract order (by row or by column).
| |||||||||||
Returns the dataset.
| |||||||||||
Returns the direction in which the radar axes are drawn
(clockwise or anti-clockwise).
| |||||||||||
Returns the head percent.
| |||||||||||
Returns the interior gap, measured as a percentage of the available
drawing space.
| |||||||||||
Returns the series label font.
| |||||||||||
Returns the label generator.
| |||||||||||
Returns the series label paint.
| |||||||||||
Returns the shape used for legend items.
| |||||||||||
Returns a collection of legend items for the radar chart.
| |||||||||||
Returns the maximum value any category axis can take.
| |||||||||||
Returns a short string describing the type of plot.
| |||||||||||
Returns the outline paint for ALL series in the plot.
| |||||||||||
Returns the paint for the specified series.
| |||||||||||
Returns the stroke for the specified series.
| |||||||||||
Returns the outline stroke for ALL series in the plot.
| |||||||||||
Returns the paint for the specified series.
| |||||||||||
Returns the paint for ALL series in the plot.
| |||||||||||
Returns the start angle for the first radar axis.
| |||||||||||
Returns the tool tip generator for the plot.
| |||||||||||
Returns the URL generator for the plot.
| |||||||||||
Method to determine if the web chart is to be filled.
| |||||||||||
Sets the axis label gap and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the paint used to draw the axis lines and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the stroke used to draw the axis lines and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the base series paint.
| |||||||||||
Sets the base series stroke.
| |||||||||||
Sets the base series paint.
| |||||||||||
Sets the data extract order (by row or by column) and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the dataset used by the plot and sends a
PlotChangeEvent
to all registered listeners. | |||||||||||
Sets the direction in which the radar axes are drawn and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the head percent and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the interior gap and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the series label font and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the label generator and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the series label paint and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the shape used for legend items and sends a
PlotChangeEvent
to all registered listeners. | |||||||||||
Sets the maximum value any category axis can take and sends
a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the outline paint for ALL series in the plot.
| |||||||||||
Sets the paint used to fill a series of the radar and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the stroke used to fill a series of the radar and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the outline stroke for ALL series in the plot.
| |||||||||||
Sets the paint for ALL series in the plot.
| |||||||||||
Sets the paint used to fill a series of the radar and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the starting angle and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the tool tip generator for the plot and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the URL generator for the plot and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the webFilled flag and sends a
PlotChangeEvent to all
registered listeners. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the location for a label
| |||||||||||
Draws the label for one axis.
| |||||||||||
Draws a radar plot polygon.
| |||||||||||
Returns the value to be plotted at the interseries of the
series and the category.
| |||||||||||
Returns a cartesian point from a polar angle, length and bounding box
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
The default axis label gap (currently 10%).
The default head radius percent (currently 1%).
The default interior gap.
The default maximum value plotted - forces the plot to evaluate the maximum from the data passed in
The default starting angle for the radar chart axes.
The maximum interior gap (currently 40%).
The head radius as a percentage of the available drawing area.
Creates a default plot with no dataset.
Creates a new spider web plot with the given dataset, with each row representing a series.
dataset | the dataset (null permitted).
|
---|
Creates a new spider web plot with the given dataset.
dataset | the dataset. |
---|---|
extract | controls how data is extracted (TableOrder#BY_ROW or TableOrder#BY_COLUMN). |
Returns a clone of this plot.
CloneNotSupportedException | if the plot cannot be cloned for any reason. |
---|
Draws the plot on a Java 2D graphics device (such as the screen or a printer).
g2 | the graphics device. |
---|---|
area | the area within which the plot should be drawn. |
anchor | the anchor point (null permitted). |
parentState | the state from the parent plot, if there is one. |
info | collects info about the drawing. |
Tests this plot for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the paint used to draw the axis lines.
null
).Returns the stroke used to draw the axis lines.
null
).Returns the base series paint. This is used when no other paint is available.
null
).
Returns the base series stroke. This is used when no other stroke is available.
null
).
Returns the base series paint. This is used when no other paint is available.
null
).Returns the data extract order (by row or by column).
null
).Returns the direction in which the radar axes are drawn (clockwise or anti-clockwise).
null
).Returns the interior gap, measured as a percentage of the available drawing space.
Returns the label generator.
null
).Returns the shape used for legend items.
null
).Returns a collection of legend items for the radar chart.
Returns the maximum value any category axis can take.
Returns a short string describing the type of plot.
Returns the outline paint for ALL series in the plot.
null
).
Returns the paint for the specified series.
series | the series index (zero-based). |
---|
null
).
Returns the stroke for the specified series.
series | the series index (zero-based). |
---|
null
).
Returns the outline stroke for ALL series in the plot.
null
).
Returns the paint for the specified series.
series | the series index (zero-based). |
---|
null
).Returns the paint for ALL series in the plot.
null
).Returns the start angle for the first radar axis.
This is measured in degrees starting from 3 o'clock (Java Arc2D default)
and measuring anti-clockwise.
Returns the tool tip generator for the plot.
null
).Returns the URL generator for the plot.
null
).Method to determine if the web chart is to be filled.
Sets the axis label gap and sends a PlotChangeEvent
to all
registered listeners.
gap | the gap. |
---|
Sets the paint used to draw the axis lines and sends a
PlotChangeEvent
to all registered listeners.
paint | the paint (null not permitted). |
---|
Sets the stroke used to draw the axis lines and sends a
PlotChangeEvent
to all registered listeners.
stroke | the stroke (null not permitted). |
---|
Sets the base series paint.
paint | the paint (null not permitted).
|
---|
Sets the base series stroke.
stroke | the stroke (null not permitted).
|
---|
Sets the base series paint.
paint | the paint (null not permitted). |
---|
Sets the data extract order (by row or by column) and sends a
PlotChangeEvent
to all registered listeners.
order | the order (null not permitted). |
---|
IllegalArgumentException | if order is
null . |
---|
Sets the dataset used by the plot and sends a PlotChangeEvent
to all registered listeners.
dataset | the dataset (null permitted). |
---|
Sets the direction in which the radar axes are drawn and sends a
PlotChangeEvent
to all registered listeners.
direction | the direction (null not permitted). |
---|
Sets the head percent and sends a PlotChangeEvent
to all
registered listeners.
percent | the percent. |
---|
Sets the interior gap and sends a PlotChangeEvent
to all
registered listeners. This controls the space between the edges of the
plot and the plot area itself (the region where the axis labels appear).
percent | the gap (as a percentage of the available drawing space). |
---|
Sets the series label font and sends a PlotChangeEvent
to all
registered listeners.
font | the font (null not permitted). |
---|
Sets the label generator and sends a PlotChangeEvent
to all
registered listeners.
generator | the generator (null not permitted). |
---|
Sets the series label paint and sends a PlotChangeEvent
to all
registered listeners.
paint | the paint (null not permitted). |
---|
Sets the shape used for legend items and sends a PlotChangeEvent
to all registered listeners.
shape | the shape (null not permitted). |
---|
Sets the maximum value any category axis can take and sends
a PlotChangeEvent
to all registered listeners.
value | the maximum value. |
---|
Sets the outline paint for ALL series 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 series).
paint | the paint (null permitted).
|
---|
Sets the paint used to fill a series of the radar and sends a
PlotChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
paint | the paint (null permitted).
|
Sets the stroke used to fill a series of the radar and sends a
PlotChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
stroke | the stroke (null permitted).
|
Sets the outline stroke for ALL series 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 series).
stroke | the stroke (null permitted).
|
---|
Sets the paint for ALL series 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 series of the radar group).
paint | the paint (null permitted). |
---|
Sets the paint used to fill a series of the radar and sends a
PlotChangeEvent
to all registered listeners.
series | the series index (zero-based). |
---|---|
paint | the paint (null permitted). |
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.
angle | the angle (in degrees). |
---|
Sets the tool tip generator for the plot and sends a
PlotChangeEvent
to all registered listeners.
generator | the generator (null permitted). |
---|
Sets the URL generator for the plot and sends a
PlotChangeEvent
to all registered listeners.
generator | the generator (null permitted). |
---|
Sets the webFilled flag and sends a PlotChangeEvent
to all
registered listeners.
flag | the flag. |
---|
Returns the location for a label
labelBounds | the label bounds. |
---|---|
ascent | the ascent (height of font). |
plotArea | the plot area |
startAngle | the start angle for the pie series. |
Draws the label for one axis.
g2 | the graphics device. |
---|---|
plotArea | the plot area |
value | the value of the label (ignored). |
cat | the category (zero-based index). |
startAngle | the starting angle. |
extent | the extent of the arc. |
Draws a radar plot polygon.
g2 | the graphics device. |
---|---|
plotArea | the area we are plotting in (already adjusted). |
centre | the centre point of the radar axes |
info | chart rendering info. |
series | the series within the dataset we are plotting |
catCount | the number of categories per radar plot |
headH | the data point height |
headW | the data point width |
Returns the value to be plotted at the interseries of the
series and the category. This allows us to plot
BY_ROW
or BY_COLUMN
which basically is just
reversing the definition of the categories and data series being
plotted.
series | the series to be plotted. |
---|---|
cat | the category within the series to be plotted. |
null
).Returns a cartesian point from a polar angle, length and bounding box
bounds | the area inside which the point needs to be. |
---|---|
angle | the polar angle, in degrees. |
length | the relative length. Given in percent of maximum extend. |