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.


Field Summary
protected  int numVariables
           
 
Fields inherited from class org.omegahat.Graphics.Plots.DataPlot
dataRegion, xAxis, xLabel, yAxis, yLabel
 
Fields inherited from class org.omegahat.Graphics.Primitives.GraphicalContainer
allocator, children, origin, parent, scaleX, scaleY
 
Fields inherited from class org.omegahat.Graphics.Primitives.RGO
region
 
Fields inherited from class org.omegahat.Graphics.Primitives.GraphicalObject
ACTIVE, fontSize, lastDevice, lastHeightCM, lastRegion, lastWidthCM, parents, status, VISIBLE
 
Fields inherited from interface org.omegahat.Environment.DataStructures.MathOperable
DIVIDE, MINUS, MULTIPLY, PLUS
 
Constructor Summary
Boxplot()
           
Boxplot(NumericVariableInt v)
           
Boxplot(NumericVariableInt[] v)
           
Boxplot(UnivariateSummary summary)
           
Boxplot(UnivariateSummary[] summaries)
           
Boxplot(UnivariateSummary summary, java.lang.String name)
           
Boxplot(UnivariateSummary a, UnivariateSummary b)
           
 
Method Summary
 AxisInt bottomAxis(ScaleInt sx)
          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.
protected  GraphicalContainerInt createDataRegion(ScaleInt sx, ScaleInt sy)
           
 GraphicalComponentInt createElement(int which, UnivariateSummary data)
           
 boolean make(UnivariateSummary[] variables)
           
 int numVariables()
           
 
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
 
Methods inherited from interface org.omegahat.Graphics.Primitives.GraphicalComponentInt
getParameters, getRegion, isActive, isVisible, parents, setActive, setParameters, setRegion, setVisible
 

Field Detail

numVariables

protected int numVariables
Constructor Detail

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)
Method Detail

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