Class sap.makit.AxisModule: sap/makit/Axis

extends Element
known direct subclasses: CategoryAxis, ValueAxis

Base element for the Axis object for the Chart.

Deprecated API:Since version 1.38. MAKIT charts have been replaced with sap.viz and vizFrame in 1.38. This control will not be supported anymore from 1.38.


Since: 1.8.
Constructor Summary
new sap.makit.Axis(sId?, mSettings?)Constructor for a new Axis.
Method Summary
sap.makit.Axis.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.makit.Axis with name sClassName and enriches it with the information contained in oClassInfo.
sap.makit.Axis.getMetadata()Returns a metadata object for class sap.makit.Axis.
getColor()Getter for property color.
getShowGrid()Getter for property showGrid.
getShowLabel()Getter for property showLabel.
getShowPrimaryLine()Getter for property showPrimaryLine.
getThickness()Getter for property thickness.
setColor(sColor)Setter for property color.
setShowGrid(bShowGrid)Setter for property showGrid.
setShowLabel(bShowLabel)Setter for property showLabel.
setShowPrimaryLine(bShowPrimaryLine)Setter for property showPrimaryLine.
setThickness(fThickness)Setter for property thickness.
Constructor Detail
new sap.makit.Axis(sId?, mSettings?)
Constructor for a new Axis.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers.

If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).

The supported settings are:

In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Deprecated:
Since version 1.38. MAKIT charts have been replaced with sap.viz and vizFrame in 1.38. This control will not be supported anymore from 1.38.
Method Detail
sap.makit.Axis.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.makit.Axis with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of informations as described in Element.extend.

Parameters:
{string}sClassName name of the class to be created
{object}oClassInfo? object literal with informations about the class
{function}FNMetaImpl? constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata.
Returns:
{function} the created class / constructor function
sap.makit.Axis.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.makit.Axis.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getColor(): string
Getter for property color. Color of the primary line. Accept the following format: standard name format: gray, red, black, etc hex format: #ff00ff rgb format: rgb(256, 0, 256)

Default value is gray

Returns:
{string} the value of property color
getShowGrid(): boolean
Getter for property showGrid. Indicates whether to show grid of the Axis in the chart area

Default value is false

Returns:
{boolean} the value of property showGrid
getShowLabel(): boolean
Getter for property showLabel. Indicates whether to show label of the Axis by the primary line

Default value is true

Returns:
{boolean} the value of property showLabel
getShowPrimaryLine(): boolean
Getter for property showPrimaryLine. Indicates whether to show the primary line of the Axis on the chart area

Default value is true

Returns:
{boolean} the value of property showPrimaryLine
getThickness(): float
Getter for property thickness. The line thickness of the primary line

Default value is 1

Returns:
{float} the value of property thickness
setColor(sColor): sap.makit.Axis
Setter for property color.

Default value is gray

Parameters:
{string}sColor new value for property color
Returns:
{sap.makit.Axis}this to allow method chaining
setShowGrid(bShowGrid): sap.makit.Axis
Setter for property showGrid.

Default value is false

Parameters:
{boolean}bShowGrid new value for property showGrid
Returns:
{sap.makit.Axis}this to allow method chaining
setShowLabel(bShowLabel): sap.makit.Axis
Setter for property showLabel.

Default value is true

Parameters:
{boolean}bShowLabel new value for property showLabel
Returns:
{sap.makit.Axis}this to allow method chaining
setShowPrimaryLine(bShowPrimaryLine): sap.makit.Axis
Setter for property showPrimaryLine.

Default value is true

Parameters:
{boolean}bShowPrimaryLine new value for property showPrimaryLine
Returns:
{sap.makit.Axis}this to allow method chaining
setThickness(fThickness): sap.makit.Axis
Setter for property thickness.

Default value is 1

Parameters:
{float}fThickness new value for property thickness
Returns:
{sap.makit.Axis}this to allow method chaining