21#include <com/sun/star/chart2/ScaleData.hpp>
25namespace chart {
struct ExplicitIncrementData; }
26namespace chart {
struct ExplicitScaleData; }
45 const css::chart2::ScaleData& rSourceScale,
const Date& rNullDate );
73 bool bExpandBorderToIncrementRhythm,
74 bool bExpandIfValuesCloseToBorder,
75 bool bExpandWideValuesToZero,
76 bool bExpandNarrowValuesTowardZero );
107 bool bAutoMinimum,
bool bAutoMaximum )
const;
113 bool bAutoMinimum,
bool bAutoMaximum )
const;
119 bool bAutoMinimum,
bool bAutoMaximum )
const;
125 bool bAutoMinimum,
bool bAutoMaximum )
const;
This class implements the calculation of automatic axis limits.
const css::chart2::ScaleData & getScale() const
void calculateExplicitIncrementAndScaleForLinear(ExplicitScaleData &rExplicitScale, ExplicitIncrementData &rExplicitIncrement, bool bAutoMinimum, bool bAutoMaximum) const
Fills the passed scale data and increment data for linear scaling.
ScaleAutomatism(const css::chart2::ScaleData &rSourceScale, const Date &rNullDate)
bool m_bExpandBorderToIncrementRhythm
Maximum number of automatic main increments.
void calculateExplicitScaleAndIncrement(ExplicitScaleData &rExplicitScale, ExplicitIncrementData &rExplicitIncrement) const
Fills the passed scale data and increment data according to the own settings.
sal_Int32 m_nTimeResolution
true = Expand narrow range toward zero (add half of range).
void calculateExplicitIncrementAndScaleForDateTimeAxis(ExplicitScaleData &rExplicitScale, ExplicitIncrementData &rExplicitIncrement, bool bAutoMinimum, bool bAutoMaximum) const
Fills the passed scale data and increment data for date-time axis.
void setAutoScalingOptions(bool bExpandBorderToIncrementRhythm, bool bExpandIfValuesCloseToBorder, bool bExpandWideValuesToZero, bool bExpandNarrowValuesTowardZero)
Sets additional auto scaling options.
void calculateExplicitIncrementAndScaleForCategory(ExplicitScaleData &rExplicitScale, ExplicitIncrementData &rExplicitIncrement, bool bAutoMinimum, bool bAutoMaximum) const
Fills the passed scale data and increment data for category scaling.
void calculateExplicitIncrementAndScaleForLogarithmic(ExplicitScaleData &rExplicitScale, ExplicitIncrementData &rExplicitIncrement, bool bAutoMinimum, bool bAutoMaximum) const
Fills the passed scale data and increment data for logarithmic scaling.
void setMaximumAutoMainIncrementCount(sal_Int32 nMaximumAutoMainIncrementCount)
Sets the maximum allowed number of automatic main increments.
const Date & getNullDate() const
bool m_bExpandNarrowValuesTowardZero
true = Expand wide spread values to zero.
sal_Int32 m_nMaximumAutoMainIncrementCount
Maximum of all source values.
bool m_bExpandWideValuesToZero
true = Expand if values are too close to the borders.
void setAutomaticTimeResolution(sal_Int32 nTimeResolution)
Sets the time resolution to be used in case it is not set explicitly within the scale.
bool m_bExpandIfValuesCloseToBorder
true = Expand to main increments.
void expandValueRange(double fMinimum, double fMaximum)
Expands own value range with the passed minimum and maximum.
double m_fValueMaximum
Minimum of all source values.
css::chart2::ScaleData m_aSourceScale
describes how tickmarks are positioned on the scale of an axis.
This structure contains the explicit values for a scale like Minimum and Maximum.