org.omegahat.Graphics.Plots
Class Boxplot
java.lang.Object
|
+--org.omegahat.Graphics.Primitives.GraphicalObject
|
+--org.omegahat.Graphics.Primitives.RGO
|
+--org.omegahat.Graphics.Primitives.GraphicalContainer
|
+--org.omegahat.Graphics.Plots.DataPlot
|
+--org.omegahat.Graphics.Plots.Boxplot
- All Implemented Interfaces:
- Addable, Copyable, GraphicalComponentInt, GraphicalContainerInt, MathOperable, ScaledComponentInt, SimpleGraphicalContainerInt, Subsettable, Tree
- public class Boxplot
- extends DataPlot
the classic statistical box plot, implemented as a DataPlot.
This class acts as a container for BoxWhiskers objects. It can handle one or more
box-whisker objects and attempts to lay them out using a GridAllocator arrangement for
allocating regions in a graphical object.
See BoxPlot for a complementary approach,
using multiple Java components.
| Fields inherited from class org.omegahat.Graphics.Primitives.RGO |
region |
| Methods inherited from class org.omegahat.Graphics.Plots.DataPlot |
bottomAxis, createDataRegion, createDataRegion, createRegionAllocator, dataRegion, getXAxis, getXLabel, getYAxis, getYLabel, leftAxis, leftAxis, make, setXAxis, setXLabel, setYAxis, setYLabel |
| Methods inherited from class org.omegahat.Graphics.Primitives.GraphicalContainer |
add, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addGraphicalObject, addValue, copy, copy, draw, drawChildren, get, getChild, getChildCount, getChildren, getDevice, getOrigin, getRegionAllocator, getXScale, getYScale, parent, parent, remove, removeGraphicalObject, removeGraphicalObject, setOrigin, setRegionAllocator, setXScale, setYScale, subset, subset, transform, transform |
| Methods inherited from class org.omegahat.Graphics.Primitives.RGO |
center, centre, createRegionDescription, createRegionDescription, getRegion, height, height, setHJust, setRegion, setVJust, width, width, x, x, y, y |
| Methods inherited from class org.omegahat.Graphics.Primitives.GraphicalObject |
cacheSize, getFontSize, getFontSize, getParameters, getParents, getStatus, isActive, isVisible, lastHeightCM, lastRegion, lastWidthCM, parents, setActive, setParameters, setParents, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numVariables
protected int numVariables
Boxplot
public Boxplot()
Boxplot
public Boxplot(NumericVariableInt v)
Boxplot
public Boxplot(NumericVariableInt[] v)
Boxplot
public Boxplot(UnivariateSummary summary)
Boxplot
public Boxplot(UnivariateSummary a,
UnivariateSummary b)
Boxplot
public Boxplot(UnivariateSummary summary,
java.lang.String name)
Boxplot
public Boxplot(UnivariateSummary[] summaries)
createDataRegion
protected GraphicalContainerInt createDataRegion(ScaleInt sx,
ScaleInt sy)
- Overrides:
createDataRegion in class DataPlot
createElement
public GraphicalComponentInt createElement(int which,
UnivariateSummary data)
make
public boolean make(UnivariateSummary[] variables)
numVariables
public int numVariables()
bottomAxis
public AxisInt bottomAxis(ScaleInt sx)
- Description copied from class:
DataPlot
- The method used to construct the X axis when the DataPlot object is made,
or to construct a new X axis, throwing away the previous.
- Overrides:
bottomAxis in class DataPlot