nl.tudelft.simulation.jstats.charts.histogram
Class HistogramDomainAxis

java.lang.Object
  extended by org.jfree.chart.axis.Axis
      extended by org.jfree.chart.axis.ValueAxis
          extended by org.jfree.chart.axis.NumberAxis
              extended by nl.tudelft.simulation.jstats.charts.histogram.HistogramDomainAxis
All Implemented Interfaces:
Serializable, Cloneable, org.jfree.util.PublicCloneable

public class HistogramDomainAxis
extends NumberAxis

The histogram domainAxis defines the x-Axis of a histogram.

(c) copyright 2002-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

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

Field Summary
protected  String[] labels
          labels refers to the labels to be printed
protected  double maxLabelHeight
          maxLabelHeight refers to the maximum label heigth
 
Fields inherited from class org.jfree.chart.axis.NumberAxis
DEFAULT_AUTO_RANGE_INCLUDES_ZERO, DEFAULT_AUTO_RANGE_STICKY_ZERO, DEFAULT_TICK_UNIT, DEFAULT_VERTICAL_TICK_LABELS
 
Fields inherited from class org.jfree.chart.axis.ValueAxis
DEFAULT_AUTO_RANGE, DEFAULT_AUTO_RANGE_MINIMUM_SIZE, DEFAULT_AUTO_TICK_UNIT_SELECTION, DEFAULT_INVERTED, DEFAULT_LOWER_BOUND, DEFAULT_LOWER_MARGIN, DEFAULT_RANGE, DEFAULT_UPPER_BOUND, DEFAULT_UPPER_MARGIN, MAXIMUM_TICK_COUNT
 
Fields inherited from class org.jfree.chart.axis.Axis
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_VISIBLE, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_LABELS_VISIBLE, DEFAULT_TICK_MARK_INSIDE_LENGTH, DEFAULT_TICK_MARK_OUTSIDE_LENGTH, DEFAULT_TICK_MARK_PAINT, DEFAULT_TICK_MARK_STROKE, DEFAULT_TICK_MARKS_VISIBLE
 
Constructor Summary
HistogramDomainAxis(XYPlot parent, String label, double[] domain, int numberOfBins)
          constructs a new HistogramDomainAxis
 
Method Summary
 AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge, PlotRenderingInfo arg5)
           
 double java2DToValue(double value, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)
           
 AxisSpace reserveSpace(Graphics2D g2, Plot dataPlot, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge, AxisSpace axisSpace)
           
 double valueToJava2D(double value, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)
           
 
Methods inherited from class org.jfree.chart.axis.NumberAxis
autoAdjustRange, calculateHighestVisibleTickValue, calculateLowestVisibleTickValue, calculateVisibleTickCount, clone, configure, createIntegerTickUnits, createIntegerTickUnits, createStandardTickUnits, createStandardTickUnits, equals, estimateMaximumTickLabelHeight, estimateMaximumTickLabelWidth, getAutoRangeIncludesZero, getAutoRangeStickyZero, getMarkerBand, getNumberFormatOverride, getRangeType, getTickUnit, hashCode, refreshTicks, refreshTicksHorizontal, refreshTicksVertical, selectAutoTickUnit, selectHorizontalAutoTickUnit, selectVerticalAutoTickUnit, setAutoRangeIncludesZero, setAutoRangeStickyZero, setMarkerBand, setNumberFormatOverride, setRangeType, setTickUnit, setTickUnit
 
Methods inherited from class org.jfree.chart.axis.ValueAxis
calculateAnchorPoint, centerRange, drawAxisLine, drawTickMarksAndLabels, findMaximumTickLabelHeight, findMaximumTickLabelWidth, getAutoRangeMinimumSize, getAutoTickIndex, getDefaultAutoRange, getDownArrow, getFixedAutoRange, getLeftArrow, getLowerBound, getLowerMargin, getMinorTickCount, getRange, getRightArrow, getStandardTickUnits, getUpArrow, getUpperBound, getUpperMargin, isAutoRange, isAutoTickUnitSelection, isInverted, isNegativeArrowVisible, isPositiveArrowVisible, isVerticalTickLabels, lengthToJava2D, pan, resizeRange, resizeRange, resizeRange2, setAutoRange, setAutoRange, setAutoRangeMinimumSize, setAutoRangeMinimumSize, setAutoTickIndex, setAutoTickUnitSelection, setAutoTickUnitSelection, setDefaultAutoRange, setDownArrow, setFixedAutoRange, setInverted, setLeftArrow, setLowerBound, setLowerMargin, setMinorTickCount, setNegativeArrowVisible, setPositiveArrowVisible, setRange, setRange, setRange, setRangeAboutValue, setRangeWithMargins, setRangeWithMargins, setRangeWithMargins, setRightArrow, setStandardTickUnits, setUpArrow, setUpperBound, setUpperMargin, setVerticalTickLabels, zoomRange
 
Methods inherited from class org.jfree.chart.axis.Axis
addChangeListener, createAndAddEntity, drawLabel, fireChangeEvent, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelEnclosure, getLabelFont, getLabelInsets, getLabelPaint, getMinorTickMarkInsideLength, getMinorTickMarkOutsideLength, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isMinorTickMarksVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, notifyListeners, removeChangeListener, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelInsets, setLabelPaint, setMinorTickMarkInsideLength, setMinorTickMarkOutsideLength, setMinorTickMarksVisible, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

labels

protected String[] labels
labels refers to the labels to be printed


maxLabelHeight

protected double maxLabelHeight
maxLabelHeight refers to the maximum label heigth

Constructor Detail

HistogramDomainAxis

public HistogramDomainAxis(XYPlot parent,
                           String label,
                           double[] domain,
                           int numberOfBins)
constructs a new HistogramDomainAxis

Parameters:
parent - the plot to which this axis belongs
label - the label of the axis
domain - the domain
numberOfBins - the numberOfBins
Method Detail

valueToJava2D

public double valueToJava2D(double value,
                            Rectangle2D dataArea,
                            org.jfree.ui.RectangleEdge edge)
Overrides:
valueToJava2D in class NumberAxis
See Also:
ValueAxis.valueToJava2D(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)

java2DToValue

public double java2DToValue(double value,
                            Rectangle2D dataArea,
                            org.jfree.ui.RectangleEdge edge)
Overrides:
java2DToValue in class NumberAxis
See Also:
ValueAxis.java2DToValue(double, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge)

reserveSpace

public AxisSpace reserveSpace(Graphics2D g2,
                              Plot dataPlot,
                              Rectangle2D dataArea,
                              org.jfree.ui.RectangleEdge edge,
                              AxisSpace axisSpace)
Overrides:
reserveSpace in class ValueAxis
See Also:
#reserveSpace(Graphics2D, Plot, Rectangle2D, RectangleEdge, AxisSpace)

draw

public AxisState draw(Graphics2D g2,
                      double cursor,
                      Rectangle2D plotArea,
                      Rectangle2D dataArea,
                      org.jfree.ui.RectangleEdge edge,
                      PlotRenderingInfo arg5)
Overrides:
draw in class NumberAxis
See Also:
Axis.draw(java.awt.Graphics2D, double, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, org.jfree.ui.RectangleEdge, org.jfree.chart.plot.PlotRenderingInfo)


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