nl.tudelft.simulation.jstats.charts.boxAndWhisker
Class BoxAndWhiskerPlot

java.lang.Object
  extended by org.jfree.chart.plot.Plot
      extended by nl.tudelft.simulation.jstats.charts.boxAndWhisker.BoxAndWhiskerPlot
All Implemented Interfaces:
Serializable, Cloneable, EventListener, EventListenerInterface, AxisChangeListener, MarkerChangeListener, LegendItemSource, DatasetChangeListener, org.jfree.util.PublicCloneable

public class BoxAndWhiskerPlot
extends Plot
implements EventListenerInterface

The Summary chart class defines a summary chart.
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:43 $
Author:
Peter Jacobs , Alexander Verbraeck
See Also:
Serialized Form

Field Summary
static short BORDER_SIZE
          BORDER_SIZE refers to the width of the border on the panel
protected  double confidenceInterval
          the confidenceInterval
static Font FONT
          FONT defines the font of the plot
protected  NumberFormat formatter
          formatter formats the text
static String PLOT_TYPE
          PLOT_TYPE refers to the plot type
protected  Tally[] tallies
          target is the tally to represent
static Font TITLE_FONT
          TITLE_FONT defines the font of the plot
 
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
BoxAndWhiskerPlot()
          constructs a new BoxAndWhiskerPlot
 
Method Summary
 void add(Tally tally)
          adds a tally to the array of targets;
 void draw(Graphics2D g2, Rectangle2D rectangle, PlotState plotState, PlotRenderingInfo plotRenderingInfo)
           
 void draw(Graphics2D g2, Rectangle2D rectangle, Point2D point, PlotState plotState, PlotRenderingInfo plotRenderingInfo)
           
 double getConfidenceInterval()
          Returns the confidence interval of the BoxAndWhiskerPlot
 String getPlotType()
           
 void notify(EventInterface event)
           
 void setConfidenceInterval(double confidenceInterval)
          sets the confidence interval of the plot.
 
Methods inherited from class org.jfree.chart.plot.Plot
addChangeListener, axisChanged, clone, createAndAddEntity, datasetChanged, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, equals, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getLegendItems, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, handleClick, isNotify, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setNotify, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoom
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BORDER_SIZE

public static final short BORDER_SIZE
BORDER_SIZE refers to the width of the border on the panel

See Also:
Constant Field Values

PLOT_TYPE

public static final String PLOT_TYPE
PLOT_TYPE refers to the plot type

See Also:
Constant Field Values

FONT

public static final Font FONT
FONT defines the font of the plot


TITLE_FONT

public static final Font TITLE_FONT
TITLE_FONT defines the font of the plot


tallies

protected Tally[] tallies
target is the tally to represent


formatter

protected NumberFormat formatter
formatter formats the text


confidenceInterval

protected double confidenceInterval
the confidenceInterval

Constructor Detail

BoxAndWhiskerPlot

public BoxAndWhiskerPlot()
constructs a new BoxAndWhiskerPlot

Method Detail

add

public void add(Tally tally)
adds a tally to the array of targets;

Parameters:
tally - the tally to be summarized

getPlotType

public String getPlotType()
Specified by:
getPlotType in class Plot
See Also:
Plot.getPlotType()

notify

public void notify(EventInterface event)
Specified by:
notify in interface EventListenerInterface
See Also:
#notify(nl.tudelft.simulation.event.EventInterface)

draw

public void draw(Graphics2D g2,
                 Rectangle2D rectangle,
                 Point2D point,
                 PlotState plotState,
                 PlotRenderingInfo plotRenderingInfo)
Specified by:
draw in class Plot

draw

public void draw(Graphics2D g2,
                 Rectangle2D rectangle,
                 PlotState plotState,
                 PlotRenderingInfo plotRenderingInfo)
See Also:
org.jfree.chart.plot.Plot#draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D, org.jfree.chart.plot.PlotState, org.jfree.chart.plot.PlotRenderingInfo)

getConfidenceInterval

public double getConfidenceInterval()
Returns the confidence interval of the BoxAndWhiskerPlot

Returns:
the confidence interval of the BoxAndWhiskerPlot

setConfidenceInterval

public void setConfidenceInterval(double confidenceInterval)
sets the confidence interval of the plot. The default value = 0.05 (=5%)

Parameters:
confidenceInterval - the confidence interval


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.