Package org.jCharts.axisChart.axis
Class DataAxis
java.lang.Object
org.jCharts.axisChart.axis.Axis
org.jCharts.axisChart.axis.DataAxis
- All Implemented Interfaces:
Serializable,HTMLTestable
Deprecated.
just using the YAxis Object
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleDeprecated.private doubleDeprecated.private doubleDeprecated.protected floatDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Add all text labels to be display on this axis.protected booleanDeprecated.protected booleanDeprecated.(package private) floatcomputeAxisCoordinate(double value) Deprecated.Takes a value and determines the screen coordinate it should be drawn at.(package private) voidcomputeScaleIncrement(AxisChartDataProcessor axisChartDataProcessor) Deprecated.Calculates the axis scale increment.doubleDeprecated.Returns the MAX value plotted by the axis.doubleDeprecated.Returns the MIN value plotted by the axis.doubleDeprecated.Returns the number of pixels one value unit occupies.floatDeprecated.Returns the screen coordinate of the zero line.protected voidrender(Graphics2D graphics2D, IDataSeries iDataSeries) Deprecated.Renders the DataAxis on the passes Graphics2D objectprivate doubleround(double value, double powerOfTen) Deprecated.Rounds the scale increment up by the power of ten specified in the properties.private voidroundTheIncrement(double powerOfTen) Deprecated.Rounds the scale increment up by the power of ten specified in the properties.voidtoHTML(HTMLGenerator htmlGenerator) Deprecated.Enables the testing routines to display the contents of this Object.Methods inherited from class org.jCharts.axisChart.axis.Axis
computeAxisTitleDimensions, computeOneUnitPixelSize, computeScalePixelWidth, computeScalePixelWidthDataAxis, getAxisChart, getAxisLabelsGroup, getMinimumHeightNeeded, getMinimumWidthNeeded, getNumberOfScaleItems, getOrigin, getPixelLength, getScaleCalculator, getScalePixelWidth, getTickStart, getTitleHeight, getTitleWidth, setAxisLabelsGroup, setMinimumHeightNeeded, setMinimumWidthNeeded, setOneUnitPixelSize, setOrigin, setPixelLength, setScaleCalculator, setScalePixelWidth, setTickStart, setZeroLineCoordinate
-
Field Details
-
minValue
private double minValueDeprecated. -
maxValue
private double maxValueDeprecated. -
increment
private double incrementDeprecated. -
zeroLineCoordinate
protected float zeroLineCoordinateDeprecated.
-
-
Constructor Details
-
DataAxis
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
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 roundpowerOfTen- 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:
getZeroLineCoordinatein classAxis- 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:
getOneUnitPixelSizein classAxis- Returns:
- double the number of pixels one value unit occupies.
-
render
Deprecated.Renders the DataAxis on the passes Graphics2D object- Parameters:
graphics2D-iDataSeries-
-
toHTML
Deprecated.Enables the testing routines to display the contents of this Object.- Specified by:
toHTMLin interfaceHTMLTestable- Overrides:
toHTMLin classAxis- Parameters:
htmlGenerator-
-