TickLabels

Inheritance: java.lang.Object

public class TickLabels

Represents the tick-mark labels associated with tick marks on a chart axis.

Methods

MethodDescription
equals(Object arg0)
getAlignmentType()Gets the text alignment for the tick labels on the axis.
getAutoScaleFont()True if the text in the object changes font size when the object size changes.
getBackgroundMode()Gets the display mode of the background
getClass()
getDirectionType()Gets the direction of text.
getDisplayNumberFormat()Gets the display number format of tick labels.
getFont()Returns a ChartArea.getFont() object that represents the font of the specified TickLabels object.
getNumber()Represents the format number for the TickLabels object.
getNumberFormat()Represents the format string for the TickLabels object.
getNumberFormatLinked()True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).
getOffset()Gets the distance of labels from the axis.
getReadingOrder()Represents text reading order.
getRotationAngle()Represents text rotation angle in clockwise.
getTextDirection()Represents text reading order.
getTickLabelItems()Gets each tick label item’s information of axis.
hashCode()
isAutomaticRotation()Indicates whether the rotation angle is automatic
notify()
notifyAll()
setAlignmentType(int value)Sets the text alignment for the tick labels on the axis.
setAutoScaleFont(boolean value)True if the text in the object changes font size when the object size changes.
setAutomaticRotation(boolean value)Indicates whether the rotation angle is automatic
setBackgroundMode(int value)Sets the display mode of the background
setDirectionType(int value)Sets the direction of text.
setNumber(int value)Represents the format number for the TickLabels object.
setNumberFormat(String value)Represents the format string for the TickLabels object.
setNumberFormatLinked(boolean value)True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).
setOffset(int value)Sets the distance of labels from the axis.
setReadingOrder(int value)Represents text reading order.
setRotationAngle(int value)Represents text rotation angle in clockwise.
setTextDirection(int value)Represents text reading order.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAlignmentType()

public int getAlignmentType()

Gets the text alignment for the tick labels on the axis.

See TickLabelAlignmentType.

Returns: int

getAutoScaleFont()

public boolean getAutoScaleFont()

True if the text in the object changes font size when the object size changes. The default value is True.

Returns: boolean

getBackgroundMode()

public int getBackgroundMode()

Gets the display mode of the background

See BackgroundMode.

Returns: int

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDirectionType()

public int getDirectionType()

Gets the direction of text.

See ChartTextDirectionType.

Returns: int

getDisplayNumberFormat()

public String getDisplayNumberFormat()

Gets the display number format of tick labels.

Returns: java.lang.String

getFont()

public Font getFont()

Returns a ChartArea.getFont() object that represents the font of the specified TickLabels object.

Returns: Font

getNumber()

public int getNumber()

Represents the format number for the TickLabels object.

Returns: int

getNumberFormat()

public String getNumberFormat()

Represents the format string for the TickLabels object.

Remarks

The formatting string is same as a custom format string setting to a cell. For example, “$0”.

Returns: java.lang.String

getNumberFormatLinked()

public boolean getNumberFormatLinked()

True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).

Returns: boolean

getOffset()

public int getOffset()

Gets the distance of labels from the axis.

Remarks

The default distance is 100 percent, which represents the default spacing between the axis labels and the axis line. The value can be an integer percentage from 0 through 1000, relative to the axis label\u9225\u6a9a font size.

Returns: int

getReadingOrder()

public int getReadingOrder()

Represents text reading order.

See TextDirectionType.

Returns: int

getRotationAngle()

public int getRotationAngle()

Represents text rotation angle in clockwise.

Remarks

0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.

Returns: int

getTextDirection()

public int getTextDirection()

Represents text reading order.

See TextDirectionType.

Remarks

NOTE: This member is now obsolete. Instead, please use TickLabels.ReadingOrder property. This property will be removed 12 months later since March 2020. Aspose apologizes for any inconvenience you may have experienced.

Returns: int

getTickLabelItems()

public TickLabelItem[] getTickLabelItems()

Gets each tick label item’s information of axis.

Remarks

Only available after calling Chart.calculate() method.

Returns: com.aspose.cells.TickLabelItem[]

hashCode()

public native int hashCode()

Returns: int

isAutomaticRotation()

public boolean isAutomaticRotation()

Indicates whether the rotation angle is automatic

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAlignmentType(int value)

public void setAlignmentType(int value)

Sets the text alignment for the tick labels on the axis.

See TickLabelAlignmentType.

Parameters:

ParameterTypeDescription
valueint

setAutoScaleFont(boolean value)

public void setAutoScaleFont(boolean value)

True if the text in the object changes font size when the object size changes. The default value is True.

Parameters:

ParameterTypeDescription
valueboolean

setAutomaticRotation(boolean value)

public void setAutomaticRotation(boolean value)

Indicates whether the rotation angle is automatic

Parameters:

ParameterTypeDescription
valueboolean

setBackgroundMode(int value)

public void setBackgroundMode(int value)

Sets the display mode of the background

See BackgroundMode.

Parameters:

ParameterTypeDescription
valueint

setDirectionType(int value)

public void setDirectionType(int value)

Sets the direction of text.

See ChartTextDirectionType.

Parameters:

ParameterTypeDescription
valueint

setNumber(int value)

public void setNumber(int value)

Represents the format number for the TickLabels object.

Parameters:

ParameterTypeDescription
valueint

setNumberFormat(String value)

public void setNumberFormat(String value)

Represents the format string for the TickLabels object.

Remarks

The formatting string is same as a custom format string setting to a cell. For example, “$0”.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setNumberFormatLinked(boolean value)

public void setNumberFormatLinked(boolean value)

True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).

Parameters:

ParameterTypeDescription
valueboolean

setOffset(int value)

public void setOffset(int value)

Sets the distance of labels from the axis.

Remarks

The default distance is 100 percent, which represents the default spacing between the axis labels and the axis line. The value can be an integer percentage from 0 through 1000, relative to the axis label\u9225\u6a9a font size.

Parameters:

ParameterTypeDescription
valueint

setReadingOrder(int value)

public void setReadingOrder(int value)

Represents text reading order.

See TextDirectionType.

Parameters:

ParameterTypeDescription
valueint

setRotationAngle(int value)

public void setRotationAngle(int value)

Represents text rotation angle in clockwise.

Remarks

0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.

Parameters:

ParameterTypeDescription
valueint

setTextDirection(int value)

public void setTextDirection(int value)

Represents text reading order.

See TextDirectionType.

Remarks

NOTE: This member is now obsolete. Instead, please use TickLabels.ReadingOrder property. This property will be removed 12 months later since March 2020. Aspose apologizes for any inconvenience you may have experienced.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int