Class DataAxis

java.lang.Object
org.jCharts.axisChart.axis.Axis
org.jCharts.axisChart.axis.DataAxis
All Implemented Interfaces:
Serializable, HTMLTestable

public class DataAxis extends Axis implements HTMLTestable
Deprecated.
just using the YAxis Object
See Also:
  • Field Details

    • minValue

      private double minValue
      Deprecated.
    • maxValue

      private double maxValue
      Deprecated.
    • increment

      private double increment
      Deprecated.
    • zeroLineCoordinate

      protected float zeroLineCoordinate
      Deprecated.
  • Constructor Details

    • DataAxis

      public DataAxis(AxisChart axisChart)
      Deprecated.
      this class is no longer used
      Parameters:
      axisChart -
  • Method Details

    • amDataAxis

      protected boolean amDataAxis()
      Deprecated.
    • amLabelAxis

      protected boolean amLabelAxis()
      Deprecated.
    • addTextTags

      public void addTextTags()
      Deprecated.
      Add all text labels to be display on this axis.
    • computeScaleIncrement

      void computeScaleIncrement(AxisChartDataProcessor axisChartDataProcessor)
      Deprecated.
      Calculates the axis scale increment. If the user does not specify a scale, it is auto computed in the followin way:
    • if all values are positive, the MIN value will be zero.
    • if all values are negative, the MAX value will be zero.
    • Padding is done by either adding or subtracting the increment by the rounding power of ten specified in the properties.
    • Parameters:
      axisChartDataProcessor - need to get the min/max
    • round

      private double round(double value, double powerOfTen)
      Deprecated.
      Rounds the scale increment up by the power of ten specified in the properties.
      Parameters:
      value - the value to round
      powerOfTen - the product of 10 times the rounding property.
      Returns:
      double the rounded result
    • roundTheIncrement

      private void roundTheIncrement(double powerOfTen)
      Deprecated.
      Rounds the scale increment up by the power of ten specified in the properties.
      Parameters:
      powerOfTen - the value of 10 times the rounding property.
    • getZeroLineCoordinate

      public float getZeroLineCoordinate()
      Deprecated.
      Returns the screen coordinate of the zero line. This will not always be the same as the origin as not all charts start at zero.
      Overrides:
      getZeroLineCoordinate in class Axis
      Returns:
      float the screen pixel location of the zero line.
    • computeAxisCoordinate

      float computeAxisCoordinate(double value)
      Deprecated.
      Takes a value and determines the screen coordinate it should be drawn at.
      Parameters:
      value -
      Returns:
      float the screen pixel coordinate
    • getMaxValue

      public double getMaxValue()
      Deprecated.
      Returns the MAX value plotted by the axis.
      Returns:
      double the MAX value plotted by the axis
    • getMinValue

      public double getMinValue()
      Deprecated.
      Returns the MIN value plotted by the axis.
      Returns:
      double the MIN value plotted by the axis
    • getOneUnitPixelSize

      public double getOneUnitPixelSize()
      Deprecated.
      Returns the number of pixels one value unit occupies.
      Overrides:
      getOneUnitPixelSize in class Axis
      Returns:
      double the number of pixels one value unit occupies.
    • render

      protected void render(Graphics2D graphics2D, IDataSeries iDataSeries)
      Deprecated.
      Renders the DataAxis on the passes Graphics2D object
      Parameters:
      graphics2D -
      iDataSeries -
    • toHTML

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