Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.cells
Class SeriesAxis

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

public class SeriesAxis
extends java.lang.Object

Encapsulates the object that represents series axis.


Method Summary
 Line getAxisLine()
          Gets the appearance of an axis.
 Font getFont()
          Gets a Font object that represents the font of the specified TickLabels object.
 Line getMajorGridLines()
          Gets major gridlines on a chart axis.
 int getMajorTickMark()
          Gets the type of major tick mark for the axis.
 Line getMinorGridLines()
          Gets minor gridlines on a chart axis.
 int getMinorTickMark()
          Gets the type of minor tick mark for the axis.
 int getNumber()
          Gets the format index for the TickLabels object.
 int getRotation()
          Gets text rotation angle.
 int getTickLabelPosition()
          Gets the position of tick-mark labels on the axis.
 int getTickLabelSpacing()
          Gets the number of series between tick-mark labels.
 short getTickMarkSpacing()
          Gets the number of series between tick marks.
 Title getTitle()
          Gets the axis' title.
 boolean isReversed()
          Indicates whether Microsoft Workbook plots data points from last to first.
 boolean isVisible()
          Indicates whether the axis is visible.
 void setAxisLine(Line line)
          Sets the appearance of an axis.
 void setFont(Font font)
          Sets a Font object that represents the font of the specified TickLabels object.
 void setMajorTickMark(int majorTickMark)
          Sets the type of major tick mark for the axis.
 void setMinorTickMark(int minorTickMark)
          Sets the type of minor tick mark for the axis.
 void setNumber(int number)
          Sets the format index for the TickLabels object.
 void setReversed(boolean isReversed)
          Sets whether Microsoft Workbook plots data points from last to first.
 void setRotation(int rotation)
          Sets text rotation angle.Must be between -90 and 90.
 void setTickLabelPosition(int tickLabelPosition)
          Sets the position of tick-mark labels on the axis.
 void setTickLabelSpacing(int tickLabelSpacing)
          Sets the number of series between tick-mark labels.
 void setTickMarkSpacing(int tickMarkSpacing)
          Sets the number of series between tick marks.
 void setVisible(boolean isVisible)
          Sets whether the axis is visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTickLabelSpacing

public int getTickLabelSpacing()
Gets the number of series between tick-mark labels.

Returns:
the number of series between tick-mark labels.
Throws:
CellsException - if chart has been removed.

setTickLabelSpacing

public void setTickLabelSpacing(int tickLabelSpacing)
Sets the number of series between tick-mark labels.

Parameters:
tickLabelSpacing - the number of series between tick-mark labels.
Throws:
CellsException - if chart has been removed.

getTickMarkSpacing

public short getTickMarkSpacing()
Gets the number of series between tick marks.

Returns:
the number of series between tick marks.
Throws:
CellsException - if chart has been removed.

setTickMarkSpacing

public void setTickMarkSpacing(int tickMarkSpacing)
Sets the number of series between tick marks.

Parameters:
tickMarkSpacing - the number of series between tick marks.
Throws:
CellsException - if chart has been removed.

setReversed

public void setReversed(boolean isReversed)
Sets whether Microsoft Workbook plots data points from last to first.

Parameters:
isReversed - whether Microsoft Workbook plots data points from last to first.
Throws:
CellsException - if chart has been removed.

isReversed

public boolean isReversed()
Indicates whether Microsoft Workbook plots data points from last to first.

Returns:
whether Microsoft Workbook plots data points from last to first.
Throws:
CellsException - if chart has been removed.

getTitle

public Title getTitle()
Gets the axis' title.

Returns:
the axis' title
Throws:
CellsException - if chart has been removed.

getAxisLine

public Line getAxisLine()
Gets the appearance of an axis.

Returns:
the appearance of an axis.
Throws:
CellsException - if chart has bean removed.

setAxisLine

public void setAxisLine(Line line)
Sets the appearance of an axis.

Parameters:
line - the appearance of an axis.
Throws:
CellsException - if chart has bean removed.

getMajorGridLines

public Line getMajorGridLines()
Gets major gridlines on a chart axis.

Returns:
major gridlines on a chart axis.
Throws:
CellsException - if chart has bean removed.

getMinorGridLines

public Line getMinorGridLines()
Gets minor gridlines on a chart axis.

Returns:
minor gridlines on a chart axis.
Throws:
CellsException - if chart has bean removed.

getFont

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

Returns:
a Font object.
Throws:
CellsException - if chart has bean removed.

setFont

public void setFont(Font font)
Sets a Font object that represents the font of the specified TickLabels object.

Parameters:
font - a Font object.
Throws:
CellsException - if chart has bean removed.

getNumber

public int getNumber()
Gets the format index for the TickLabels object.

Returns:
the format index
Throws:
CellsException - if chart has bean removed.
See Also:
Style.setNumber(int)

setNumber

public void setNumber(int number)
Sets the format index for the TickLabels object.

Parameters:
number - the format index.
Throws:
java.lang.IllegalArgumentException - if format number is not built-in number.
CellsException - if chart has bean removed.
See Also:
Style.setNumber(int)

getRotation

public int getRotation()
Gets text rotation angle.

Returns:
text rotation angle.
Throws:
CellsException - if chart has bean removed.

setRotation

public void setRotation(int rotation)
Sets text rotation angle.Must be between -90 and 90.

Parameters:
rotation - text rotation angle.
Throws:
java.lang.IllegalArgumentException - if rotation is not between -90 and 90.
CellsException - if chart has bean removed.

getMajorTickMark

public int getMajorTickMark()
Gets the type of major tick mark for the axis.

Returns:
the type of major tick mark for the axis.
Throws:
CellsException - if chart has bean removed.
See Also:
setMajorTickMark(int)

setMajorTickMark

public void setMajorTickMark(int majorTickMark)
Sets the type of major tick mark for the axis.

Parameters:
majorTickMark - the type of major tick mark for the axis. It could be one of the following values:
TickMarkerType.CROSS
TickMarkerType.INSIDE
TickMarkerType.NONE
TickMarkerType.OUTSIDE
Throws:
java.lang.IllegalArgumentException - if majorTickMark is invalid tick mark type.
CellsException - if chart has bean removed.

getMinorTickMark

public int getMinorTickMark()
Gets the type of minor tick mark for the axis.

Returns:
the type of minor tick mark for the axis.
Throws:
CellsException - if chart has bean removed.
See Also:
setMajorTickMark(int)

setMinorTickMark

public void setMinorTickMark(int minorTickMark)
Sets the type of minor tick mark for the axis.

Parameters:
minorTickMark - the type of minor tick mark for the axis.
Throws:
CellsException - if chart has bean removed.
java.lang.IllegalArgumentException - if minorTickMark is invalid tick mark type.
See Also:
setMajorTickMark(int)

getTickLabelPosition

public int getTickLabelPosition()
Gets the position of tick-mark labels on the axis.

Returns:
the position of tick-mark labels on the axis.
Throws:
CellsException - if chart has bean removed.
See Also:
setTickLabelPosition(int)

setTickLabelPosition

public void setTickLabelPosition(int tickLabelPosition)
Sets the position of tick-mark labels on the axis.

Parameters:
tickLabelPosition - the position of tick-mark labels on the axis. * It could be one of the following values:
TickLabelPositionType.HIGH
TickLabelPositionType.LOW
TickLabelPositionType.NEXT_TO_AXIS
TickLabelPositionType.NONE
Throws:
java.lang.IllegalArgumentException - if tick label position type is invalid.
CellsException - if chart has bean removed.

isVisible

public boolean isVisible()
Indicates whether the axis is visible.

Returns:
whether the axis is visible.
Throws:
CellsException - if chart has bean removed.

setVisible

public void setVisible(boolean isVisible)
Sets whether the axis is visible.

Parameters:
isVisible - whether the axis is visible.
Throws:
CellsException - if chart has bean removed.