AxisScaling Class
Contains scale settings of an axis in a standard chart.
Declaration
public class AxisScaling extends AxisScalingBase
Remarks
Call the Axis.getScaling() method to access scale settings of an axis.
Refer to the following help topic for additional information: Customize Chart Axes — Presentation API for Java.
Inherited Members
Inheritance
AxisScaling()
Initializes a new instance of the AxisScaling class.
Declaration
public AxisScaling()
Methods
deepClone() Method
Returns a deep copy of this AxisScaling instance.
Declaration
public AxisScaling deepClone()
Returns
| Type | Description |
|---|---|
AxisScaling |
A deep copy of this |
getLogBase() Method
Returns the logarithm base of a logarithmic axis scale.
Declaration
public double getLogBase()
Returns
| Type | Description |
|---|---|
| double | The logarithm base. |
getLogScale() Method
Returns whether the axis uses a logarithmic scale.
Declaration
public boolean getLogScale()
Returns
| Type | Description |
|---|---|
| boolean |
|
getMax() Method
Returns the maximum axis value.
Declaration
public @Nullable Double getMax()
Returns
| Type | Description |
|---|---|
| Double | The maximum axis value, or |
getMin() Method
Returns the minimum axis value.
Declaration
public @Nullable Double getMin()
Returns
| Type | Description |
|---|---|
| Double | The minimum axis value, or |
getOrientation() Method
Returns the direction of axis values.
Declaration
public AxisOrientationType getOrientation()
Returns
| Type | Description |
|---|---|
| AxisOrientationType | The direction of axis values. |
setLogBase(double value) Method
Sets the logarithm base of a logarithmic axis scale.
Declaration
public void setLogBase(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | The logarithm base (from |
Exceptions
| Type | Description |
|---|---|
| ArgumentOutOfRangeException | Thrown if the |
Remarks
The value range is from 2 to 1000. If you do not call the setLogBase(value) method, the API uses 2.
Note
The logarithm base takes effect when you call the setLogScale(true) method.
setLogScale(boolean value) Method
Sets whether the axis uses a logarithmic scale.
Declaration
public void setLogScale(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
Call the setLogBase(double value) method to specify the logarithm base.
setMax(@Nullable Double value) Method
Sets the maximum axis value.
Declaration
public void setMax(@Nullable Double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Double | The maximum axis value, or |
Remarks
If you do not call the setMax(value) method or call the setMax(null) method, the chart calculates the maximum axis value automatically.
setMin(@Nullable Double value) Method
Sets the minimum axis value.
Declaration
public void setMin(@Nullable Double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Double | The minimum axis value, or |
Remarks
If you do not call the setMin(value) method or call the setMin(null) method, the chart calculates the minimum axis value automatically.
setOrientation(AxisOrientationType value) Method
Sets the direction of axis values.
Declaration
public void setOrientation(AxisOrientationType value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | AxisOrientationType | The direction of axis values. |
Remarks
The setOrientation(value) method accepts the following values:
| Value | Description |
|---|---|
| MIN_MAX | Indicates axis values that increase from the minimum to the maximum. |
| MAX_MIN | Indicates axis values in reverse order (from the maximum to the minimum). |
If you do not call the setOrientation(value) method, the API uses AxisOrientationType.MIN_MAX.