Class DataAxisProperties

All Implemented Interfaces:
Serializable, HTMLTestable

public final class DataAxisProperties extends LabelAxisProperties implements HTMLTestable
See Also:
  • Field Details

    • roundToNearest

      private int roundToNearest
    • showZeroLine

      private boolean showZeroLine
    • zeroLineChartStroke

      private ChartStroke zeroLineChartStroke
    • userDefinedScale

      private boolean userDefinedScale
    • userDefinedMinimumValue

      private double userDefinedMinimumValue
    • userDefinedIncrement

      private double userDefinedIncrement
    • numItems

      private int numItems
    • useDollarSigns

      private boolean useDollarSigns
    • useCommas

      private boolean useCommas
    • usePercentSigns

      private boolean usePercentSigns
    • scaleCalculator

      private ScaleCalculator scaleCalculator
  • Constructor Details

    • DataAxisProperties

      public DataAxisProperties()
  • Method Details

    • setUserDefinedScale

      public void setUserDefinedScale(double axisMinimum, double axisIncrement) throws PropertyException
      Parameters:
      axisMinimum -
      axisIncrement -
      Throws:
      PropertyException
    • getRoundToNearest

      public int getRoundToNearest()
    • setRoundToNearest

      public void setRoundToNearest(int roundToNearest)
    • showZeroLine

      public boolean showZeroLine()
    • setShowZeroLine

      public void setShowZeroLine(boolean showZeroLine)
    • getZeroLineChartStroke

      public ChartStroke getZeroLineChartStroke()
    • setZeroLineChartStroke

      public void setZeroLineChartStroke(ChartStroke zeroLine)
    • hasUserDefinedScale

      public boolean hasUserDefinedScale()
    • getUserDefinedMinimumValue

      public double getUserDefinedMinimumValue()
    • getUserDefinedIncrement

      public double getUserDefinedIncrement()
    • getNumItems

      public int getNumItems()
    • setNumItems

      public void setNumItems(int numItems)
    • useDollarSigns

      public boolean useDollarSigns()
    • setUseDollarSigns

      public void setUseDollarSigns(boolean useDollarSigns)
    • useCommas

      public boolean useCommas()
    • setUseCommas

      public void setUseCommas(boolean useCommas)
    • usePercentSigns

      public boolean usePercentSigns()
    • setUsePercentSigns

      public void setUsePercentSigns(boolean usePercentSigns)
    • getScaleCalculator

      public ScaleCalculator getScaleCalculator()
    • setScaleCalculator

      public void setScaleCalculator(ScaleCalculator scaleCalculator)
      You do not have to explicitly set a ScaleCalculator implementation as jCharts will create one, but if you do not like the way Scale ranges are created, you could create your own implementation of ScaleCalculator and jCharts will use it!
      Parameters:
      scaleCalculator -
    • toHTML

      public void toHTML(HTMLGenerator htmlGenerator)
      Enables the testing routines to display the contents of this Object.
      Specified by:
      toHTML in interface HTMLTestable
      Overrides:
      toHTML in class AxisTypeProperties
      Parameters:
      htmlGenerator -