![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.cells.Axis
com.aspose.cells.CategoryAxis
public class CategoryAxis
Encapsulates the object that represents a chart's category axis.
Method Summary | |
---|---|
short |
getBaseUnitScale()
Gets the base unit scale for the category axis. |
short |
getCategoryType()
Gets the category axis type. |
int |
getCrossAt()
Gets the point on the category axis where the other axis crosses. |
short |
getMajorUnit()
Gets the major units for the axis. |
short |
getMajorUnitScale()
Gets the major unit scale for the category axis. |
double |
getMaxValue()
Gets the max value of axis. |
short |
getMinorUnit()
Gets the minor units for the axis. |
short |
getMinorUnitScale()
Gets the minor unit scale for the category axis. |
int |
getMinValue()
Gets the min value of the axis. |
int |
getTickLabelSpacing()
Gets the number of category between tick-mark labels. |
short |
getTickMarkSpacing()
Gets the number of category between tick marks. |
short |
getTickOffset()
Gets the distance between the levels of labels, and the distance between the first level and the axis line. |
Title |
getTitle()
Gets the category axis' title. |
boolean |
isAutoCross()
Indicates whether Microsoft Workbook automatically sets the axis crossing point. |
boolean |
isAutoMajorUnit()
Indicates whether Microsoft Workbook automatically sets the major unit. |
boolean |
isAutoMax()
Indicates whether Microsoft Workbook automatically sets the max value. |
boolean |
isAutoMin()
Indicates whether Microsoft Workbook automatically sets the min value. |
boolean |
isAutoMinorUnit()
Indicates whether Microsoft Workbook automatically sets the minor unit. |
boolean |
isBaseUnitAuto()
Indicates whether Microsoft Workbook automatically sets the base unit. |
boolean |
isBetweenCategories()
Indicates whether the value axis crosses the category axis between categories. |
boolean |
isCrossAtMax()
Indicates whether the axis crosses at the maximum value. |
boolean |
isReversed()
Indicates whether Microsoft Workbook plots data points from last to first. |
void |
setBaseUnitScale(short unitScale)
Sets the base unit scale for the category axis. |
void |
setBetweenCategories(boolean isBetweenCategories)
Sets whether the value axis crosses the category axis between categories. |
void |
setCategoryType(int type)
Sets the category axis type. |
void |
setCrossAt(double at)
Sets the point on the category axis where the other axis crosses. |
void |
setCrossAtMax(boolean isCrossAtMax)
Sets whether the axis crosses at the maximum value. |
void |
setMajorUnit(double unit)
Sets the major units for the axis. |
void |
setMajorUnitScale(short unitScale)
Sets the major unit scale for the category axis. |
void |
setMaxValue(double value)
Sets the max value of axis. |
void |
setMinorUnit(double unit)
Sets the minor units for the axis. |
void |
setMinorUnitScale(short unitScale)
Sets the minor unit scale for the category axis. |
void |
setMinValue(double value)
Sets the min value of the axis. |
void |
setReversed(boolean isReversed)
Sets whether Microsoft Workbook plots data points from last to first. |
void |
setTickLabelSpacing(int tickLabelSpacing)
Sets the number of category between tick-mark labels. |
void |
setTickMarkSpacing(int tickMarkSpacing)
Sets the number of category between tick marks. |
void |
setTickOffset(short offset)
Sets the distance between the levels of labels, and the distance between the first level and the axis line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Title getTitle()
CellsException
- if chart has been removed.public int getCrossAt()
CellsException
- if chart has been removed.public void setCrossAt(double at)
at
- the point where the other axis crosses.
CellsException
- if chart has been removed.public int getTickLabelSpacing()
CellsException
- if chart has been removed.public void setTickLabelSpacing(int tickLabelSpacing)
tickLabelSpacing
- the number of category between tick-mark labels.
CellsException
- if chart has been removed.public short getTickMarkSpacing()
CellsException
- if chart has been removed.public void setTickMarkSpacing(int tickMarkSpacing)
tickMarkSpacing
- the number of category between tick marks.
CellsException
- if chart has been removed.public short getTickOffset()
public void setTickOffset(short offset)
offset
- The value can be an integer percentage from 0 through 1000, relative to the axis label’s font size.public short getCategoryType()
CellsException
- if chart has been removed.setCategoryType(int)
public void setCategoryType(int type)
type
- the category axis type.
It could be one of the following values: CategoryType.AUTOMATIC_SCALE |
CategoryType.CATEGORY_SCALE |
CategoryType.TIME_SCALE |
CellsException
- if chart has been removed.
java.lang.IllegalArgumentException
- if category type is invalid.public short getBaseUnitScale()
CellsException
- if chart has been removed.setBaseUnitScale(short)
public boolean isBaseUnitAuto()
CellsException
- if chart has been removed.public void setBaseUnitScale(short unitScale)
unitScale
- the base unit scale.
It could be one of the following values: TimeUnit.DAYS |
TimeUnit.MONTHS |
TimeUnit.YEARS |
CellsException
- if chart has been removed.public short getMajorUnit()
CellsException
- if chart has been removed.public void setMajorUnit(double unit)
unit
- the major units for the axis.
CellsException
- if chart has been removed.public short getMajorUnitScale()
CellsException
- if chart has been removed.setBaseUnitScale(short)
public void setMajorUnitScale(short unitScale)
unitScale
- the major unit scale.
CellsException
- if chart has been removed.setBaseUnitScale(short)
public short getMinorUnit()
CellsException
- if chart has been removed.public void setMinorUnit(double unit)
unit
- the minor units for the axis.
CellsException
- if chart has been removed.public short getMinorUnitScale()
CellsException
- if chart has been removed.setBaseUnitScale(short)
public void setMinorUnitScale(short unitScale)
unitScale
- the minor unit scale
CellsException
- if chart has been removed.setBaseUnitScale(short)
public int getMinValue()
CellsException
- if chart has been removed.public void setMinValue(double value)
value
- the min value of the axis.
CellsException
- if chart has been removed.public double getMaxValue()
CellsException
- if chart has been removed.public void setMaxValue(double value)
value
- the max value of axis.
CellsException
- if chart has been removed.public void setCrossAtMax(boolean isCrossAtMax)
isCrossAtMax
- whether the axis crosses at the maximum value.
CellsException
- if chart has been removed.public boolean isCrossAtMax()
CellsException
- if chart has been removed.public void setReversed(boolean isReversed)
isReversed
- whether Microsoft Workbook plots data points from last to first.
CellsException
- if chart has been removed.public boolean isReversed()
CellsException
- if chart has been removed.public void setBetweenCategories(boolean isBetweenCategories)
isBetweenCategories
- whether the value axis crosses the category axis between categories.
CellsException
- if chart has been removed.public boolean isBetweenCategories()
CellsException
- if chart has been removed.public boolean isAutoMax()
CellsException
- if chart has been removed.public boolean isAutoMin()
CellsException
- if chart has been removed.public boolean isAutoMajorUnit()
CellsException
- if chart has been removed.public boolean isAutoMinorUnit()
CellsException
- if chart has been removed.public boolean isAutoCross()
CellsException
- if chart has been removed.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |