Class Axis
java.lang.Object
com.independentsoft.office.odf.charts.Axis
- All Implemented Interfaces:
IContentElement
Represents an axis for a chart.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the dimension in a coordinate system.getGrids()Gets a collection of grids.getName()Gets the name of the axis.Returns the parent content element.getStyle()References a chart style by its name.getTitle()Gets the title from a chart document.voidsetDimension(Dimension dimension)Sets a dimension in a coordinate system.voidSets the name of the axis.voidsetParent(IContentElement parent)Sets the parent content element.voidReferences a chart style by its name.voidSets the title in a chart document.toString()Converts the value of the current Axis object to its equivalent string representation.
-
Constructor Details
-
Axis
public Axis()Initializes a new instance of the Axis class.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Axis object to its equivalent string representation. -
getDimension
Gets the dimension in a coordinate system. The defined values are: - x: dimension represented by the x-axis of a chart. - y: dimension represented by the y-axis of a chart. - z: dimension represented by the z-axis of a chart.- Returns:
- the dimension
-
setDimension
Sets a dimension in a coordinate system. The defined values are: - x: dimension represented by the x-axis of a chart. - y: dimension represented by the y-axis of a chart. - z: dimension represented by the z-axis of a chart.- Parameters:
dimension- the new dimension
-
getStyle
References a chart style by its name.- Returns:
- the style
-
setStyle
References a chart style by its name.- Parameters:
style- the new style
-
getName
Gets the name of the axis.- Returns:
- the name
-
setName
Sets the name of the axis.- Parameters:
name- the new name
-
getGrids
Gets a collection of grids.- Returns:
- the grids
-
getTitle
Gets the title from a chart document.- Returns:
- the title
-
setTitle
Sets the title in a chart document.- Parameters:
title- the new title
-