Class CustomDateTimeAxis

java.lang.Object
org.jfree.chart.axis.Axis
org.jfree.chart.axis.ValueAxis
org.jfree.chart.axis.NumberAxis
com.jfreechartextensions.axistransformations.ExtendedNumberAxis
com.illumon.iris.db.plot.builders.jfreechart.axis.CustomNumberAxis
com.illumon.iris.db.plot.builders.jfreechart.axis.CustomDateTimeAxis
All Implemented Interfaces:
Serializable, Cloneable, org.jfree.util.PublicCloneable

public class CustomDateTimeAxis
extends CustomNumberAxis
DateTime axis that shows tick values that are in data range.
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class com.jfreechartextensions.axistransformations.ExtendedNumberAxis

    SMALLEST_DOUBLE

    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

    Constructors 
    Constructor Description
    CustomDateTimeAxis()  
  • Method Summary

    Modifier and Type Method Description
    protected void addMinorTicks​(Collection<org.jfree.chart.axis.NumberTick> result, int nMinorTicks, double majorTickMin, double majorTickMax, org.jfree.ui.RectangleEdge edge)  
    protected double calculateHighestVisibleTickValue()  
    protected double calculateLowestVisibleTickValue()  
    protected int calculateVisibleTickCount()  
    protected boolean isTickLabelVisible​(double tickValue, boolean isMajor)  
    protected com.jfreechartextensions.axistransformations.BasicAxisTransform newNullAxisTransform()  
    List refreshTicks​(Graphics2D g2, org.jfree.chart.axis.AxisState state, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)  

    Methods inherited from class com.illumon.iris.db.plot.builders.jfreechart.axis.CustomNumberAxis

    redrawTicks

    Methods inherited from class com.jfreechartextensions.axistransformations.ExtendedNumberAxis

    autoAdjustRange, createTick, formatLabel, getDataRange, getMajorTicks, getMaxRange, getMinRange, getRange, getTransform, java2DToValue, lengthToJava2D, okToPlotTick, selectAutoTickUnit, selectHorizontalAutoTickUnit, selectVerticalAutoTickUnit, setLowerBound, setMajorTicks, setTickLabelAngle, setTransform, setUpperBound, valueToJava2D, zoomRange

    Methods inherited from class org.jfree.chart.axis.NumberAxis

    clone, configure, createIntegerTickUnits, createIntegerTickUnits, createStandardTickUnits, createStandardTickUnits, draw, equals, estimateMaximumTickLabelHeight, estimateMaximumTickLabelWidth, getAutoRangeIncludesZero, getAutoRangeStickyZero, getMarkerBand, getNumberFormatOverride, getRangeType, getTickUnit, hashCode, refreshTicksHorizontal, refreshTicksVertical, 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, getRightArrow, getStandardTickUnits, getUpArrow, getUpperBound, getUpperMargin, isAutoRange, isAutoTickUnitSelection, isInverted, isNegativeArrowVisible, isPositiveArrowVisible, isVerticalTickLabels, pan, reserveSpace, resizeRange, resizeRange, resizeRange2, setAutoRange, setAutoRange, setAutoRangeMinimumSize, setAutoRangeMinimumSize, setAutoTickIndex, setAutoTickUnitSelection, setAutoTickUnitSelection, setDefaultAutoRange, setDownArrow, setFixedAutoRange, setInverted, setLeftArrow, setLowerMargin, setMinorTickCount, setNegativeArrowVisible, setPositiveArrowVisible, setRange, setRange, setRange, setRangeAboutValue, setRangeWithMargins, setRangeWithMargins, setRangeWithMargins, setRightArrow, setStandardTickUnits, setUpArrow, setUpperMargin, setVerticalTickLabels

    Methods inherited from class org.jfree.chart.axis.Axis

    addChangeListener, createAndAddEntity, createAttributedLabel, drawAttributedLabel, drawLabel, fireChangeEvent, getAttributedLabel, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelEnclosure, getLabelFont, getLabelInsets, getLabelLocation, getLabelPaint, getMinorTickMarkInsideLength, getMinorTickMarkOutsideLength, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isMinorTickMarksVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, labelAnchorH, labelAnchorV, labelLocationX, labelLocationY, notifyListeners, removeChangeListener, setAttributedLabel, setAttributedLabel, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelInsets, setLabelLocation, 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
  • Constructor Details

  • Method Details

    • newNullAxisTransform

      protected com.jfreechartextensions.axistransformations.BasicAxisTransform newNullAxisTransform()
      Overrides:
      newNullAxisTransform in class CustomNumberAxis
    • isTickLabelVisible

      protected boolean isTickLabelVisible​(double tickValue, boolean isMajor)
      Overrides:
      isTickLabelVisible in class com.jfreechartextensions.axistransformations.ExtendedNumberAxis
    • refreshTicks

      public List refreshTicks​(Graphics2D g2, org.jfree.chart.axis.AxisState state, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)
      Overrides:
      refreshTicks in class com.jfreechartextensions.axistransformations.ExtendedNumberAxis
    • addMinorTicks

      protected void addMinorTicks​(Collection<org.jfree.chart.axis.NumberTick> result, int nMinorTicks, double majorTickMin, double majorTickMax, org.jfree.ui.RectangleEdge edge)
      Overrides:
      addMinorTicks in class com.jfreechartextensions.axistransformations.ExtendedNumberAxis
    • calculateLowestVisibleTickValue

      protected double calculateLowestVisibleTickValue()
      Overrides:
      calculateLowestVisibleTickValue in class org.jfree.chart.axis.NumberAxis
    • calculateHighestVisibleTickValue

      protected double calculateHighestVisibleTickValue()
      Overrides:
      calculateHighestVisibleTickValue in class org.jfree.chart.axis.NumberAxis
    • calculateVisibleTickCount

      protected int calculateVisibleTickCount()
      Overrides:
      calculateVisibleTickCount in class org.jfree.chart.axis.NumberAxis