public class ChartAxis
extends java.lang.Object
implements java.lang.Cloneable
To learn more, visit the Working with Charts documentation article.
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAxisBetweenCategories()
Gets a flag indicating whether the value axis crosses the category axis between categories.
|
int |
getBaseTimeUnit()
Gets the smallest time unit that is represented on the time category axis.
|
int |
getCategoryType()
Gets type of the category axis.
|
int |
getCrosses()
Specifies how this axis crosses the perpendicular axis.
|
double |
getCrossesAt()
Specifies where on the perpendicular axis the axis crosses.
|
AxisDisplayUnit |
getDisplayUnit()
Specifies the scaling value of the display units for the value axis.
|
DocumentBase |
getDocument()
Returns the Document the title holder belongs.
|
boolean |
getHidden()
Gets a flag indicating whether this axis is hidden or not.
|
int |
getMajorTickMark()
Gets the major tick marks.
|
double |
getMajorUnit()
Gets the distance between major tick marks.
|
boolean |
getMajorUnitIsAuto()
Gets a flag indicating whether default distance between major tick marks shall be used.
|
int |
getMajorUnitScale()
Gets the scale value for major tick marks on the time category axis.
|
int |
getMinorTickMark()
Gets the minor tick marks for the axis.
|
double |
getMinorUnit()
Gets the distance between minor tick marks.
|
boolean |
getMinorUnitIsAuto()
Gets a flag indicating whether default distance between minor tick marks shall be used.
|
int |
getMinorUnitScale()
Gets the scale value for minor tick marks on the time category axis.
|
ChartNumberFormat |
getNumberFormat()
Returns a
ChartNumberFormat object that allows defining number formats for the axis. |
boolean |
getReverseOrder()
Gets a flag indicating whether values of axis should be displayed in reverse order, i.e.
|
AxisScaling |
getScaling()
Provides access to the scaling options of the axis.
|
int |
getTickLabelAlignment()
Gets text alignment of axis tick labels.
|
int |
getTickLabelOffset()
Gets the distance of labels from the axis.
|
int |
getTickLabelPosition()
Gets the position of the tick labels on the axis.
|
int |
getTickLabelSpacing()
Gets the interval, at which tick labels are drawn.
|
boolean |
getTickLabelSpacingIsAuto()
Gets a flag indicating whether automatic interval of drawing tick labels shall be used.
|
int |
getTickMarkSpacing()
Gets the interval, at which tick marks are drawn.
|
ChartTitle |
getTitle() |
boolean |
getTitleDeleted() |
int |
getTitlePosition() |
int |
getType()
Returns type of the axis.
|
boolean |
isInherited() |
boolean |
isVisible() |
protected java.lang.Object |
memberwiseClone() |
void |
setAxisBetweenCategories(boolean value)
Sets a flag indicating whether the value axis crosses the category axis between categories.
|
void |
setBaseTimeUnit(int value)
Sets the smallest time unit that is represented on the time category axis.
|
void |
setCategoryType(int value)
Sets type of the category axis.
|
void |
setCrosses(int value)
Specifies how this axis crosses the perpendicular axis.
|
void |
setCrossesAt(double value)
Specifies where on the perpendicular axis the axis crosses.
|
void |
setHidden(boolean value)
Sets a flag indicating whether this axis is hidden or not.
|
void |
setMajorTickMark(int value)
Sets the major tick marks.
|
void |
setMajorUnit(double value)
Sets the distance between major tick marks.
|
void |
setMajorUnitIsAuto(boolean value)
Sets a flag indicating whether default distance between major tick marks shall be used.
|
void |
setMajorUnitScale(int value)
Sets the scale value for major tick marks on the time category axis.
|
void |
setMinorTickMark(int value)
Sets the minor tick marks for the axis.
|
void |
setMinorUnit(double value)
Sets the distance between minor tick marks.
|
void |
setMinorUnitIsAuto(boolean value)
Sets a flag indicating whether default distance between minor tick marks shall be used.
|
void |
setMinorUnitScale(int value)
Sets the scale value for minor tick marks on the time category axis.
|
void |
setReverseOrder(boolean value)
Sets a flag indicating whether values of axis should be displayed in reverse order, i.e.
|
void |
setTickLabelAlignment(int value)
Sets text alignment of axis tick labels.
|
void |
setTickLabelOffset(int value)
Sets the distance of labels from the axis.
|
void |
setTickLabelPosition(int value)
Sets the position of the tick labels on the axis.
|
void |
setTickLabelSpacing(int value)
Sets the interval, at which tick labels are drawn.
|
void |
setTickLabelSpacingIsAuto(boolean value)
Sets a flag indicating whether automatic interval of drawing tick labels shall be used.
|
void |
setTickMarkSpacing(int value)
Sets the interval, at which tick marks are drawn.
|
void |
setTitle(ChartTitle value) |
void |
setTitleDeleted(boolean value) |
public int getType()
ChartAxisType constants.public int getCategoryType()
AxisCategoryType.CATEGORY) are allowed in MS Office 2016 new charts.AxisCategoryType constants.public void setCategoryType(int value)
AxisCategoryType.CATEGORY) are allowed in MS Office 2016 new charts.value - Type of the category axis. The value must be one of AxisCategoryType constants.public int getCrosses()
Default value is AxisCrosses.AUTOMATIC.
The property is not supported by MS Office 2016 new charts.
int value. The returned value is one of AxisCrosses constants.public void setCrosses(int value)
Default value is AxisCrosses.AUTOMATIC.
The property is not supported by MS Office 2016 new charts.
value - The corresponding int value. The value must be one of AxisCrosses constants.public double getCrossesAt()
The property has effect only if getCrosses() / setCrosses(int) are set to AxisCrosses.CUSTOM. It is not supported by MS Office 2016 new charts.
The units are determined by the type of axis. When the axis is a value axis, the value of the property is a decimal number on the value axis. When the axis is a time category axis, the value is defined as an integer number of days relative to the base date (30/12/1899). For a text category axis, the value is an integer category number, starting with 1 as the first category.
double value.public void setCrossesAt(double value)
The property has effect only if getCrosses() / setCrosses(int) are set to AxisCrosses.CUSTOM. It is not supported by MS Office 2016 new charts.
The units are determined by the type of axis. When the axis is a value axis, the value of the property is a decimal number on the value axis. When the axis is a time category axis, the value is defined as an integer number of days relative to the base date (30/12/1899). For a text category axis, the value is an integer category number, starting with 1 as the first category.
value - The corresponding double value.public boolean getReverseOrder()
public void setReverseOrder(boolean value)
value - A flag indicating whether values of axis should be displayed in reverse order, i.e.public int getMajorTickMark()
AxisTickMark constants.public void setMajorTickMark(int value)
value - The major tick marks. The value must be one of AxisTickMark constants.public int getMinorTickMark()
AxisTickMark constants.public void setMinorTickMark(int value)
value - The minor tick marks for the axis. The value must be one of AxisTickMark constants.public int getTickLabelPosition()
AxisTickLabelPosition constants.public void setTickLabelPosition(int value)
value - The position of the tick labels on the axis. The value must be one of AxisTickLabelPosition constants.public double getMajorUnit()
Valid range of a value is greater than zero. The property has effect for time category and value axes.
Setting this property sets the getMajorUnitIsAuto() / setMajorUnitIsAuto(boolean) property to false.
public void setMajorUnit(double value)
Valid range of a value is greater than zero. The property has effect for time category and value axes.
Setting this property sets the getMajorUnitIsAuto() / setMajorUnitIsAuto(boolean) property to false.
value - The distance between major tick marks.public boolean getMajorUnitIsAuto()
public void setMajorUnitIsAuto(boolean value)
value - A flag indicating whether default distance between major tick marks shall be used.public int getMajorUnitScale()
AxisTimeUnit constants.public void setMajorUnitScale(int value)
value - The scale value for major tick marks on the time category axis. The value must be one of AxisTimeUnit constants.public double getMinorUnit()
Valid range of a value is greater than zero. The property has effect for time category and value axes.
Setting this property sets the getMinorUnitIsAuto() / setMinorUnitIsAuto(boolean) property to false.
public void setMinorUnit(double value)
Valid range of a value is greater than zero. The property has effect for time category and value axes.
Setting this property sets the getMinorUnitIsAuto() / setMinorUnitIsAuto(boolean) property to false.
value - The distance between minor tick marks.public boolean getMinorUnitIsAuto()
public void setMinorUnitIsAuto(boolean value)
value - A flag indicating whether default distance between minor tick marks shall be used.public int getMinorUnitScale()
AxisTimeUnit constants.public void setMinorUnitScale(int value)
value - The scale value for minor tick marks on the time category axis. The value must be one of AxisTimeUnit constants.public int getBaseTimeUnit()
AxisTimeUnit constants.public void setBaseTimeUnit(int value)
value - The smallest time unit that is represented on the time category axis. The value must be one of AxisTimeUnit constants.public ChartNumberFormat getNumberFormat()
ChartNumberFormat object that allows defining number formats for the axis.ChartNumberFormat object that allows defining number formats for the axis.public int getTickLabelOffset()
The property represents a percentage of the default label offset.
Valid range is from 0 to 1000 percent inclusive. Default value is 100%.
The property has effect only for category axes. It is not supported by MS Office 2016 new charts.
public void setTickLabelOffset(int value)
The property represents a percentage of the default label offset.
Valid range is from 0 to 1000 percent inclusive. Default value is 100%.
The property has effect only for category axes. It is not supported by MS Office 2016 new charts.
value - The distance of labels from the axis.public AxisDisplayUnit getDisplayUnit()
AxisDisplayUnit value.public boolean getAxisBetweenCategories()
public void setAxisBetweenCategories(boolean value)
value - A flag indicating whether the value axis crosses the category axis between categories.public AxisScaling getScaling()
AxisScaling value.public int getTickLabelSpacing()
The property has effect for text category and series axes. It is not supported by MS Office 2016 new charts. Valid range of a value is greater than or equal to 1.
Setting this property sets the getTickLabelSpacingIsAuto() / setTickLabelSpacingIsAuto(boolean) property to false.
public void setTickLabelSpacing(int value)
The property has effect for text category and series axes. It is not supported by MS Office 2016 new charts. Valid range of a value is greater than or equal to 1.
Setting this property sets the getTickLabelSpacingIsAuto() / setTickLabelSpacingIsAuto(boolean) property to false.
value - The interval, at which tick labels are drawn.public boolean getTickLabelSpacingIsAuto()
Default value is true.
The property has effect for text category and series axes. It is not supported by MS Office 2016 new charts.
public void setTickLabelSpacingIsAuto(boolean value)
Default value is true.
The property has effect for text category and series axes. It is not supported by MS Office 2016 new charts.
value - A flag indicating whether automatic interval of drawing tick labels shall be used.public int getTickLabelAlignment()
This property has effect only for multi-line labels.
Default value is ParagraphAlignment.CENTER.
ParagraphAlignment constants.public void setTickLabelAlignment(int value)
This property has effect only for multi-line labels.
Default value is ParagraphAlignment.CENTER.
value - Text alignment of axis tick labels. The value must be one of ParagraphAlignment constants.public int getTickMarkSpacing()
The property has effect for text category and series axes. It is not supported by MS Office 2016 new charts.
Valid range of a value is greater than or equal to 1.
public void setTickMarkSpacing(int value)
The property has effect for text category and series axes. It is not supported by MS Office 2016 new charts.
Valid range of a value is greater than or equal to 1.
value - The interval, at which tick marks are drawn.public boolean getHidden()
public void setHidden(boolean value)
value - A flag indicating whether this axis is hidden or not.public ChartTitle getTitle()
public void setTitle(ChartTitle value)
public int getTitlePosition()
public DocumentBase getDocument()
public boolean getTitleDeleted()
public void setTitleDeleted(boolean value)
public boolean isVisible()
public boolean isInherited()
protected java.lang.Object memberwiseClone()