LibreOffice Module chart2 (master) 1
Public Member Functions | Public Attributes | Private Attributes | List of all members
chart::AxisUsage Class Reference

This class handles a collection of coordinate systems and is used for executing some action on all coordinate systems such as "prepareAutomaticAxisScaling" and "setExplicitScaleAndIncrement". More...

#include <AxisUsage.hxx>

Collaboration diagram for chart::AxisUsage:
[legend]

Public Member Functions

 AxisUsage ()
 
void addCoordinateSystem (VCoordinateSystem *pCooSys, sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex)
 
std::vector< VCoordinateSystem * > getCoordinateSystems (sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex)
 
sal_Int32 getMaxAxisIndexForDimension (sal_Int32 nDimensionIndex)
 
void prepareAutomaticAxisScaling (ScaleAutomatism &rScaleAutomatism, sal_Int32 nDimIndex, sal_Int32 nAxisIndex)
 
void setExplicitScaleAndIncrement (sal_Int32 nDimIndex, sal_Int32 nAxisIndex, const ExplicitScaleData &rScale, const ExplicitIncrementData &rInc)
 

Public Attributes

ScaleAutomatism aAutoScaling
 

Private Attributes

tCoordinateSystemMap aCoordinateSystems
 
std::map< sal_Int32, sal_Int32 > aMaxIndexPerDimension
 

Detailed Description

This class handles a collection of coordinate systems and is used for executing some action on all coordinate systems such as "prepareAutomaticAxisScaling" and "setExplicitScaleAndIncrement".

Moreover it contains the "aAutoScaling" object that is an instance of the "ScaleAutomatism" class. The initialization of "aAutoScaling" is performed in the "SeriesPlotterContainer::initAxisUsageList" method and is used in the "SeriesPlotterContainer::doAutoScaling" for calculating explicit scale and increment objects (see "SeriesPlotterContainer::doAutoScaling").

Definition at line 45 of file AxisUsage.hxx.

Constructor & Destructor Documentation

◆ AxisUsage()

chart::AxisUsage::AxisUsage ( )
inline

Definition at line 48 of file AxisUsage.hxx.

Member Function Documentation

◆ addCoordinateSystem()

void chart::AxisUsage::addCoordinateSystem ( VCoordinateSystem pCooSys,
sal_Int32  nDimensionIndex,
sal_Int32  nAxisIndex 
)
inline

◆ getCoordinateSystems()

std::vector< VCoordinateSystem * > chart::AxisUsage::getCoordinateSystems ( sal_Int32  nDimensionIndex,
sal_Int32  nAxisIndex 
)
inline

Definition at line 90 of file AxisUsage.hxx.

References aCoordinateSystems.

Referenced by prepareAutomaticAxisScaling(), and setExplicitScaleAndIncrement().

◆ getMaxAxisIndexForDimension()

sal_Int32 chart::AxisUsage::getMaxAxisIndexForDimension ( sal_Int32  nDimensionIndex)
inline

Definition at line 107 of file AxisUsage.hxx.

References aMaxIndexPerDimension.

◆ prepareAutomaticAxisScaling()

void chart::AxisUsage::prepareAutomaticAxisScaling ( ScaleAutomatism rScaleAutomatism,
sal_Int32  nDimIndex,
sal_Int32  nAxisIndex 
)
inline

Definition at line 116 of file AxisUsage.hxx.

References getCoordinateSystems().

◆ setExplicitScaleAndIncrement()

void chart::AxisUsage::setExplicitScaleAndIncrement ( sal_Int32  nDimIndex,
sal_Int32  nAxisIndex,
const ExplicitScaleData rScale,
const ExplicitIncrementData rInc 
)
inline

Definition at line 125 of file AxisUsage.hxx.

References getCoordinateSystems().

Member Data Documentation

◆ aAutoScaling

ScaleAutomatism chart::AxisUsage::aAutoScaling

Definition at line 134 of file AxisUsage.hxx.

◆ aCoordinateSystems

tCoordinateSystemMap chart::AxisUsage::aCoordinateSystems
private

Definition at line 137 of file AxisUsage.hxx.

Referenced by addCoordinateSystem(), and getCoordinateSystems().

◆ aMaxIndexPerDimension

std::map<sal_Int32, sal_Int32> chart::AxisUsage::aMaxIndexPerDimension
private

Definition at line 138 of file AxisUsage.hxx.

Referenced by addCoordinateSystem(), and getMaxAxisIndexForDimension().


The documentation for this class was generated from the following file: