Skip to main content

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

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
See Also

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 AxisScaling.

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

true if the axis uses a logarithmic scale; otherwise, false.

getMax() Method

Returns the maximum axis value.

Declaration

public @Nullable Double getMax()

Returns

Type Description
Double

The maximum axis value, or null for an automatic maximum value.

getMin() Method

Returns the minimum axis value.

Declaration

public @Nullable Double getMin()

Returns

Type Description
Double

The minimum axis value, or null for an automatic minimum value.

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 2 to 1000).

Exceptions

Type Description
ArgumentOutOfRangeException

Thrown if the value parameter is less than 2 or greater than 1000.

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

true to use a logarithmic scale; otherwise, false.

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 null for an automatic maximum value.

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 null for an automatic minimum value.

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.