com.aspose.cells

Class TickLabels

  • java.lang.Object
    • 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()
void
setAutoScaleFont(booleanvalue)
           True if the text in the object changes font size when the object size changes. The default value is True.
intgetBackgroundMode()
void
           Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.
intgetDirectionType()
void
           Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant.
FontgetFont()
Returns a Font object that represents the font of the specified TickLabels object.
booleanisAutomaticRotation()
void
setAutomaticRotation(booleanvalue)
           Indicates whether the rotation angle is automatic
intgetNumber()
void
setNumber(intvalue)
           Represents the format number for the TickLabels object.
java.lang.StringgetNumberFormat()
void
setNumberFormat(java.lang.Stringvalue)
           Represents the format string for the TickLabels object.
booleangetNumberFormatLinked()
void
setNumberFormatLinked(booleanvalue)
           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()
void
setOffset(intvalue)
           Represents the distance between the levels of labels, and the distance between the first level and the axis line.
intgetReadingOrder()
void
setReadingOrder(intvalue)
           Represents text reading order. The value of the property is TextDirectionType integer constant.
intgetRotationAngle()
void
           Represents text rotation angle in clockwise.
intgetTextDirection()
void
           Represents text reading order. The value of the property is TextDirectionType integer constant.
 

    • 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.
      • 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.
      • 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.
      • isAutomaticRotation/setAutomaticRotation

        public boolean isAutomaticRotation() / 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 formating 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.
      • 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).
      • getOffset/setOffset

        public int getOffset() / public void setOffset(int value)
        
        Represents the distance between the levels of labels, and the distance between the first level and the axis line. 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.
      • getReadingOrder/setReadingOrder

        public int getReadingOrder() / 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.

    setAutoScaleFont

    public voidsetAutoScaleFont(booleanvalue)
    
    True if the text in the object changes font size when the object size changes. The default value is True.

    setBackgroundMode

    public voidsetBackgroundMode(intvalue)
    
    Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.

    setRotationAngle

    public voidsetRotationAngle(intvalue)
    
    Represents text rotation angle in clockwise.
    0: Not rotated.

    255: Top to Bottom.

    -90: Downward.

    90: Upward.

    setAutomaticRotation

    public voidsetAutomaticRotation(booleanvalue)
    
    Indicates whether the rotation angle is automatic

    setNumberFormat

    public voidsetNumberFormat(java.lang.Stringvalue)
    
    Represents the format string for the TickLabels object. The formating string is same as a custom format string setting to a cell. For example, "$0".

    setNumber

    public voidsetNumber(intvalue)
    
    Represents the format number for the TickLabels object.

    setNumberFormatLinked

    public voidsetNumberFormatLinked(booleanvalue)
    
    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

    public voidsetOffset(intvalue)
    
    Represents the distance between the levels of labels, and the distance between the first level and the axis line. 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.

    setTextDirection

    public voidsetTextDirection(intvalue)
    
    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.

    setReadingOrder

    public voidsetReadingOrder(intvalue)
    
    Represents text reading order. The value of the property is TextDirectionType integer constant.

    setDirectionType

    public voidsetDirectionType(intvalue)
    
    Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant.