Package org.jfree.chart.renderer
Class OutlierList
java.lang.Object
org.jfree.chart.renderer.OutlierList
A collection of outliers for a single entity in a box and whisker plot.
Outliers are grouped in lists for each entity. Lists contain
one or more outliers, determined by whether overlaps have
occured. Overlapping outliers are grouped in the same list.
Each list contains an averaged outlier, which is the same as a single
outlier if there is only one outlier in the list, but the average of
all the outliers in the list if there is more than one.
NB This is simply my scheme for displaying outliers, and might not be
acceptable by the wider community.
-
Constructor Summary
ConstructorsConstructorDescriptionOutlierList(Outlier outlier) Creates a new list containing a single outlier. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds an outlier to the list.Returns the averaged outlier.intReturns the number of outliers in the list.booleanReturnstrueif the list contains multiple outliers, andfalseotherwise.booleanisOverlapped(Outlier other) Returnstrueif the outlier overlaps, andfalseotherwise.voidsetAveragedOutlier(Outlier averagedOutlier) Sets the averaged outlier.voidsetMultiple(boolean multiple) Sets the flag that indicates whether or not this list represents multiple outliers.voidUpdates the averaged outlier.
-
Constructor Details
-
OutlierList
Creates a new list containing a single outlier.- Parameters:
outlier- the outlier.
-
-
Method Details
-
add
Adds an outlier to the list.- Parameters:
outlier- the outlier.- Returns:
- A boolean.
-
getItemCount
Returns the number of outliers in the list.- Returns:
- The item count.
-
getAveragedOutlier
Returns the averaged outlier.- Returns:
- The averaged outlier.
-
setAveragedOutlier
Sets the averaged outlier.- Parameters:
averagedOutlier- the averaged outlier.
-
isMultiple
Returnstrueif the list contains multiple outliers, andfalseotherwise.- Returns:
- A boolean.
-
setMultiple
Sets the flag that indicates whether or not this list represents multiple outliers.- Parameters:
multiple- the flag.
-
isOverlapped
Returnstrueif the outlier overlaps, andfalseotherwise.- Parameters:
other- the outlier.- Returns:
- A boolean.
-
updateAveragedOutlier
Updates the averaged outlier.
-