LibreOffice Module chart2 (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
chart::VAxisBase Class Referenceabstract

#include <VAxisBase.hxx>

Inheritance diagram for chart::VAxisBase:
[legend]
Collaboration diagram for chart::VAxisBase:
[legend]

Public Member Functions

 VAxisBase (sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount, const AxisProperties &rAxisProperties, const css::uno::Reference< css::util::XNumberFormatsSupplier > &xNumberFormatsSupplier)
 
virtual ~VAxisBase () override
 
sal_Int32 getDimensionCount () const
 Return the number of dimensions the diagram has. More...
 
virtual void createMaximumLabels ()=0
 
virtual void createLabels ()=0
 
virtual void updatePositions ()=0
 
virtual bool isAnythingToDraw ()
 
virtual void initAxisLabelProperties (const css::awt::Size &rFontReferenceSize, const css::awt::Rectangle &rMaximumSpaceForLabels)
 
virtual void setExplicitScaleAndIncrement (const ExplicitScaleData &rScale, const ExplicitIncrementData &rIncrement) override
 
virtual sal_Int32 estimateMaximumAutoMainIncrementCount ()
 
virtual void createAllTickInfos (TickInfoArraysType &rAllTickInfos)
 
void setExtraLinePositionAtOtherAxis (double fCrossingAt)
 
virtual void createDataTableView (std::vector< std::unique_ptr< VSeriesPlotter > > &rSeriesPlotterList, css::uno::Reference< css::util::XNumberFormatsSupplier > const &xNumberFormatsSupplier, rtl::Reference<::chart::ChartModel > const &xChartDoc, css::uno::Reference< css::uno::XComponentContext > const &rComponentContext)
 
std::shared_ptr< DataTableViewgetDataTableView ()
 
- Public Member Functions inherited from chart::VAxisOrGridBase
 VAxisOrGridBase (sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount)
 
virtual ~VAxisOrGridBase () override
 
virtual void setTransformationSceneToScreen (const css::drawing::HomogenMatrix &rMatrix) override
 
virtual void setExplicitScaleAndIncrement (const ExplicitScaleData &rScale, const ExplicitIncrementData &rIncrement)
 
void set3DWallPositions (CuboidPlanePosition eLeftWallPos, CuboidPlanePosition eBackWallPos, CuboidPlanePosition eBottomPos)
 
virtual TickFactorycreateTickFactory ()
 
- Public Member Functions inherited from chart::PlotterBase
 PlotterBase (sal_Int32 nDimension)
 
virtual ~PlotterBase ()
 
virtual void initPlotter (const rtl::Reference< SvxShapeGroupAnyD > &xLogicTarget, const rtl::Reference< SvxShapeGroupAnyD > &xFinalTarget, const OUString &rCID)
 
virtual void setScales (std::vector< ExplicitScaleData > &&rScales, bool bSwapXAndYAxis)
 
virtual void setTransformationSceneToScreen (const css::drawing::HomogenMatrix &rMatrix)
 
virtual void createShapes ()=0
 

Protected Member Functions

void removeTextShapesFromTicks ()
 
void updateUnscaledValuesAtTicks (TickIter &rIter)
 
virtual bool prepareShapeCreation ()
 
void recordMaximumTextSize (SvxShape &xShape, double fRotationAngleDegree)
 
bool isDateAxis () const
 
bool isComplexCategoryAxis () const
 
- Protected Member Functions inherited from chart::PlotterBase
rtl::Reference< SvxShapeGroupAnyDcreateGroupShape (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const OUString &rName=OUString())
 

Static Protected Member Functions

static size_t getIndexOfLongestLabel (const css::uno::Sequence< OUString > &rLabels)
 

Protected Attributes

css::uno::Reference< css::util::XNumberFormatsSupplier > m_xNumberFormatsSupplier
 
AxisProperties m_aAxisProperties
 
AxisLabelProperties m_aAxisLabelProperties
 
css::uno::Sequence< OUString > m_aTextLabels
 
bool m_bUseTextLabels
 
rtl::Reference< SvxShapeGroupAnyDm_xGroupShape_Shapes
 
rtl::Reference< SvxShapeGroupAnyDm_xTextTarget
 
rtl::Reference< SvxShapeGroupAnyDm_xDataTableTarget
 
std::shared_ptr< DataTableViewm_pDataTableView
 
TickInfoArraysType m_aAllTickInfos
 This typically consists of 2 TickInfo vectors (i.e. More...
 
bool m_bReCreateAllTickInfos
 
bool m_bRecordMaximumTextSize
 
sal_Int32 m_nMaximumTextWidthSoFar
 
sal_Int32 m_nMaximumTextHeightSoFar
 
- Protected Attributes inherited from chart::VAxisOrGridBase
ExplicitScaleData m_aScale
 
ExplicitIncrementData m_aIncrement
 
sal_Int32 m_nDimensionIndex
 
::basegfx::B3DHomMatrix m_aMatrixScreenToScene
 
CuboidPlanePosition m_eLeftWallPos
 
CuboidPlanePosition m_eBackWallPos
 
CuboidPlanePosition m_eBottomPos
 
- Protected Attributes inherited from chart::PlotterBase
rtl::Reference< SvxShapeGroupAnyDm_xLogicTarget
 
rtl::Reference< SvxShapeGroupAnyDm_xFinalTarget
 
OUString m_aCID
 
const sal_Int32 m_nDimension
 
PlottingPositionHelperm_pPosHelper
 

Additional Inherited Members

- Static Public Member Functions inherited from chart::PlotterBase
static bool isValidPosition (const css::drawing::Position3D &rPos)
 

Detailed Description

Definition at line 36 of file VAxisBase.hxx.

Constructor & Destructor Documentation

◆ VAxisBase()

chart::VAxisBase::VAxisBase ( sal_Int32  nDimensionIndex,
sal_Int32  nDimensionCount,
const AxisProperties rAxisProperties,
const css::uno::Reference< css::util::XNumberFormatsSupplier > &  xNumberFormatsSupplier 
)

Definition at line 39 of file VAxisBase.cxx.

◆ ~VAxisBase()

chart::VAxisBase::~VAxisBase ( )
overridevirtual

Definition at line 53 of file VAxisBase.cxx.

Member Function Documentation

◆ createAllTickInfos()

void chart::VAxisBase::createAllTickInfos ( TickInfoArraysType rAllTickInfos)
virtual

◆ createDataTableView()

void chart::VAxisBase::createDataTableView ( std::vector< std::unique_ptr< VSeriesPlotter > > &  rSeriesPlotterList,
css::uno::Reference< css::util::XNumberFormatsSupplier > const &  xNumberFormatsSupplier,
rtl::Reference<::chart::ChartModel > const &  xChartDoc,
css::uno::Reference< css::uno::XComponentContext > const &  rComponentContext 
)
virtual

Reimplemented in chart::VCartesianAxis.

Definition at line 245 of file VAxisBase.cxx.

◆ createLabels()

virtual void chart::VAxisBase::createLabels ( )
pure virtual

◆ createMaximumLabels()

virtual void chart::VAxisBase::createMaximumLabels ( )
pure virtual

◆ estimateMaximumAutoMainIncrementCount()

sal_Int32 chart::VAxisBase::estimateMaximumAutoMainIncrementCount ( )
virtual

◆ getDataTableView()

std::shared_ptr< DataTableView > chart::VAxisBase::getDataTableView ( )
inline

Definition at line 73 of file VAxisBase.hxx.

References m_pDataTableView.

◆ getDimensionCount()

sal_Int32 chart::VAxisBase::getDimensionCount ( ) const

Return the number of dimensions the diagram has.

2 for x and y, and 3 for x, y, and z.

Definition at line 124 of file VAxisBase.cxx.

References chart::PlotterBase::m_nDimension.

Referenced by chart::VCoordinateSystem::setTransformationSceneToScreen().

◆ getIndexOfLongestLabel()

size_t chart::VAxisBase::getIndexOfLongestLabel ( const css::uno::Sequence< OUString > &  rLabels)
staticprotected

Definition at line 195 of file VAxisBase.cxx.

References getLength(), and nLength.

◆ initAxisLabelProperties()

void chart::VAxisBase::initAxisLabelProperties ( const css::awt::Size &  rFontReferenceSize,
const css::awt::Rectangle &  rMaximumSpaceForLabels 
)
virtual

◆ isAnythingToDraw()

bool chart::VAxisBase::isAnythingToDraw ( )
virtual

◆ isComplexCategoryAxis()

bool chart::VAxisBase::isComplexCategoryAxis ( ) const
protected

◆ isDateAxis()

bool chart::VAxisBase::isDateAxis ( ) const
protected

◆ prepareShapeCreation()

bool chart::VAxisBase::prepareShapeCreation ( )
protectedvirtual

◆ recordMaximumTextSize()

void chart::VAxisBase::recordMaximumTextSize ( SvxShape xShape,
double  fRotationAngleDegree 
)
protected

◆ removeTextShapesFromTicks()

void chart::VAxisBase::removeTextShapesFromTicks ( )
protected

Definition at line 214 of file VAxisBase.cxx.

References m_aAllTickInfos, and m_xTextTarget.

Referenced by chart::VPolarAngleAxis::createLabels(), and prepareShapeCreation().

◆ setExplicitScaleAndIncrement()

void chart::VAxisBase::setExplicitScaleAndIncrement ( const ExplicitScaleData rScale,
const ExplicitIncrementData rIncrement 
)
overridevirtual

◆ setExtraLinePositionAtOtherAxis()

void chart::VAxisBase::setExtraLinePositionAtOtherAxis ( double  fCrossingAt)

◆ updatePositions()

virtual void chart::VAxisBase::updatePositions ( )
pure virtual

◆ updateUnscaledValuesAtTicks()

void chart::VAxisBase::updateUnscaledValuesAtTicks ( TickIter rIter)
protected

Member Data Documentation

◆ m_aAllTickInfos

TickInfoArraysType chart::VAxisBase::m_aAllTickInfos
protected

This typically consists of 2 TickInfo vectors (i.e.

the outer vector has 2 child vector elements) for normal axis. The first vector corresponds with the major ticks while the second corresponds with the minor ticks.

It may have more than 2 TickInfo vectors for complex category axis which has multi-level axis labels.

Definition at line 108 of file VAxisBase.hxx.

Referenced by chart::VPolarAngleAxis::createLabels(), chart::VPolarAngleAxis::createShapes(), prepareShapeCreation(), and removeTextShapesFromTicks().

◆ m_aAxisLabelProperties

AxisLabelProperties chart::VAxisBase::m_aAxisLabelProperties
protected

◆ m_aAxisProperties

AxisProperties chart::VAxisBase::m_aAxisProperties
protected

◆ m_aTextLabels

css::uno::Sequence< OUString > chart::VAxisBase::m_aTextLabels
protected

◆ m_bRecordMaximumTextSize

bool chart::VAxisBase::m_bRecordMaximumTextSize
protected

Definition at line 111 of file VAxisBase.hxx.

Referenced by recordMaximumTextSize().

◆ m_bReCreateAllTickInfos

bool chart::VAxisBase::m_bReCreateAllTickInfos
protected

Definition at line 109 of file VAxisBase.hxx.

Referenced by prepareShapeCreation(), and setExplicitScaleAndIncrement().

◆ m_bUseTextLabels

bool chart::VAxisBase::m_bUseTextLabels
protected

◆ m_nMaximumTextHeightSoFar

sal_Int32 chart::VAxisBase::m_nMaximumTextHeightSoFar
protected

Definition at line 113 of file VAxisBase.hxx.

Referenced by recordMaximumTextSize().

◆ m_nMaximumTextWidthSoFar

sal_Int32 chart::VAxisBase::m_nMaximumTextWidthSoFar
protected

Definition at line 112 of file VAxisBase.hxx.

Referenced by recordMaximumTextSize().

◆ m_pDataTableView

std::shared_ptr<DataTableView> chart::VAxisBase::m_pDataTableView
protected

Definition at line 97 of file VAxisBase.hxx.

Referenced by getDataTableView().

◆ m_xDataTableTarget

rtl::Reference< SvxShapeGroupAnyD > chart::VAxisBase::m_xDataTableTarget
protected

Definition at line 95 of file VAxisBase.hxx.

Referenced by prepareShapeCreation().

◆ m_xGroupShape_Shapes

rtl::Reference< SvxShapeGroupAnyD > chart::VAxisBase::m_xGroupShape_Shapes
protected

◆ m_xNumberFormatsSupplier

css::uno::Reference< css::util::XNumberFormatsSupplier > chart::VAxisBase::m_xNumberFormatsSupplier
protected

◆ m_xTextTarget

rtl::Reference< SvxShapeGroupAnyD > chart::VAxisBase::m_xTextTarget
protected

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