com.aspose.cells
Class TickLabels

java.lang.Object
    extended by com.aspose.cells.TickLabels

public class TickLabels 
extends java.lang.Object

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


Property Getters/Setters Summary
booleangetAutoScaleFont()
voidsetAutoScaleFont(boolean)
           True if the text in the object changes font size when the object size changes. The default value is True.
intgetBackgroundMode()
voidsetBackgroundMode(int)
           Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.
intgetDirectionType()
voidsetDirectionType(int)
           Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant.
java.lang.StringgetDisplayNumberFormat()
           Gets and sets the display number format of tick labels.
FontgetFont()
           Returns a Font object that represents the font of the specified TickLabels object.
booleanisAutomaticRotation()
voidsetAutomaticRotation(boolean)
           Indicates whether the rotation angle is automatic
intgetNumber()
voidsetNumber(int)
           Represents the format number for the TickLabels object.
java.lang.StringgetNumberFormat()
voidsetNumberFormat(java.lang.String)
           Represents the format string for the TickLabels object.
booleangetNumberFormatLinked()
voidsetNumberFormatLinked(boolean)
           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).
intgetOffset()
voidsetOffset(int)
           Gets and sets the distance of labels from the axis.
intgetReadingOrder()
voidsetReadingOrder(int)
           Represents text reading order. The value of the property is TextDirectionType integer constant.
intgetRotationAngle()
voidsetRotationAngle(int)
           Represents text rotation angle in clockwise.
intgetTextDirection()
voidsetTextDirection(int)
           Represents text reading order. The value of the property is TextDirectionType integer constant.
com.aspose.cells.TickLabelItem[]getTickLabelItems()
           Gets the items' info of TickLabel.
 

Property Getters/Setters Detail

getFont

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

getAutoScaleFont/setAutoScaleFont

public boolean getAutoScaleFont() / 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.

setAutoScaleFont

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.

getBackgroundMode/setBackgroundMode

public int getBackgroundMode() / public void setBackgroundMode(int value)
Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.

setBackgroundMode

public void setBackgroundMode(int value)
Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.

getRotationAngle/setRotationAngle

public int getRotationAngle() / public void setRotationAngle(int value)
Represents text rotation angle in clockwise.
0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.

setRotationAngle

public void setRotationAngle(int value)
Represents text rotation angle in clockwise.
0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.

isAutomaticRotation/setAutomaticRotation

public boolean isAutomaticRotation() / public void setAutomaticRotation(boolean value)
Indicates whether the rotation angle is automatic

setAutomaticRotation

public void setAutomaticRotation(boolean value)
Indicates whether the rotation angle is automatic

getNumberFormat/setNumberFormat

public java.lang.String getNumberFormat() / public void setNumberFormat(java.lang.String value)
Represents the format string for the TickLabels object. The formatting string is same as a custom format string setting to a cell. For example, "$0".

setNumberFormat

public void setNumberFormat(java.lang.String value)
Represents the format string for the TickLabels object. The formatting string is same as a custom format string setting to a cell. For example, "$0".

getNumber/setNumber

public int getNumber() / public void setNumber(int value)
Represents the format number for the TickLabels object.

setNumber

public void setNumber(int value)
Represents the format number for the TickLabels object.

getNumberFormatLinked/setNumberFormatLinked

public boolean getNumberFormatLinked() / 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).

setNumberFormatLinked

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

getDisplayNumberFormat

public java.lang.String getDisplayNumberFormat()
Gets and sets the display number format of tick labels.

getOffset/setOffset

public int getOffset() / public void setOffset(int value)
Gets and sets the distance of labels from the axis. 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’s font size.

setOffset

public void setOffset(int value)
Gets and sets the distance of labels from the axis. 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’s font size.

getTextDirection/setTextDirection

public int getTextDirection() / public void setTextDirection(int value)
Represents text reading order. The value of the property is TextDirectionType integer constant.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.

setTextDirection

public void setTextDirection(int value)
Represents text reading order. The value of the property is TextDirectionType integer constant.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.

getReadingOrder/setReadingOrder

public int getReadingOrder() / public void setReadingOrder(int value)
Represents text reading order. The value of the property is TextDirectionType integer constant.

setReadingOrder

public void setReadingOrder(int value)
Represents text reading order. The value of the property is TextDirectionType integer constant.

getDirectionType/setDirectionType

public int getDirectionType() / public void setDirectionType(int value)
Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant.

setDirectionType

public void setDirectionType(int value)
Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant.

getTickLabelItems

public com.aspose.cells.TickLabelItem[] getTickLabelItems()
Gets the items' info of TickLabel. Only exists after calling Chart.calculate() method.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.