TickLabels
Inheritance: java.lang.Object
public class TickLabels
Represents the tick-mark labels associated with tick marks on a chart axis.
Methods
Method | Description |
---|---|
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 between the axis labels and the axis line. |
getReadingOrder() | Represents text reading order. |
getRotationAngle() | Represents text rotation angle in clockwise. |
getTextDirection() | Represents text reading order. |
getTickLabelItems() | Gets the display tick labels of the 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 between the axis labels and the axis line. |
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getAlignmentType()
public int getAlignmentType()
Gets the text alignment for the tick labels on the axis.
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.
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 between the axis labels and the axis line.
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 the display tick labels of the 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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | boolean |
setAutomaticRotation(boolean value)
public void setAutomaticRotation(boolean value)
Indicates whether the rotation angle is automatic
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setBackgroundMode(int value)
public void setBackgroundMode(int value)
Sets the display mode of the background
See BackgroundMode.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setDirectionType(int value)
public void setDirectionType(int value)
Sets the direction of text.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setNumber(int value)
public void setNumber(int value)
Represents the format number for the TickLabels object.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
value | boolean |
setOffset(int value)
public void setOffset(int value)
Sets the distance between the axis labels and the axis line.
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:
Parameter | Type | Description |
---|---|---|
value | int |
setReadingOrder(int value)
public void setReadingOrder(int value)
Represents text reading order.
See TextDirectionType.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | int |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |