LibreOffice Module chart2 (master) 1
|
#include <VAxisBase.hxx>
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< DataTableView > | getDataTableView () |
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 TickFactory * | createTickFactory () |
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< SvxShapeGroupAnyD > | createGroupShape (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const OUString &rName=OUString()) |
Static Protected Member Functions | |
static size_t | getIndexOfLongestLabel (const css::uno::Sequence< OUString > &rLabels) |
Additional Inherited Members | |
Static Public Member Functions inherited from chart::PlotterBase | |
static bool | isValidPosition (const css::drawing::Position3D &rPos) |
Definition at line 36 of file VAxisBase.hxx.
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.
|
overridevirtual |
Definition at line 53 of file VAxisBase.cxx.
|
virtual |
Reimplemented in chart::VCartesianAxis.
Definition at line 157 of file VAxisBase.cxx.
References chart::VAxisOrGridBase::createTickFactory(), chart::VAxisOrGridBase::m_aScale, and chart::ExplicitScaleData::m_bShiftedCategoryPosition.
Referenced by prepareShapeCreation().
|
virtual |
Reimplemented in chart::VCartesianAxis.
Definition at line 245 of file VAxisBase.cxx.
|
pure virtual |
Implemented in chart::VCartesianAxis, chart::VPolarAngleAxis, and chart::VPolarRadiusAxis.
|
pure virtual |
Implemented in chart::VCartesianAxis, chart::VPolarAngleAxis, and chart::VPolarRadiusAxis.
|
virtual |
Reimplemented in chart::VCartesianAxis, and chart::VPolarRadiusAxis.
Definition at line 114 of file VAxisBase.cxx.
Referenced by chart::VCoordinateSystem::prepareAutomaticAxisScaling().
|
inline |
Definition at line 73 of file VAxisBase.hxx.
References m_pDataTableView.
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().
|
staticprotected |
Definition at line 195 of file VAxisBase.cxx.
References getLength(), and nLength.
|
virtual |
Reimplemented in chart::VPolarRadiusAxis.
Definition at line 57 of file VAxisBase.cxx.
References chart::ExplicitCategoriesProvider::getSimpleCategories(), chart::AxisLabelProperties::init(), m_aAxisLabelProperties, m_aAxisProperties, chart::AxisLabelProperties::m_aFontReferenceSize, chart::AxisLabelProperties::m_aMaximumSpaceForLabels, m_aTextLabels, chart::AxisProperties::m_bComplexCategories, chart::AxisProperties::m_bDisplayLabels, m_bUseTextLabels, chart::AxisLabelProperties::m_eStaggering, chart::AxisProperties::m_nAxisType, chart::AxisLabelProperties::m_nNumberFormatKey, chart::AxisProperties::m_nNumberFormatKey, chart::AxisProperties::m_pExplicitCategoriesProvider, chart::AxisProperties::m_xAxisModel, chart::AxisProperties::m_xAxisTextProvider, and chart::SideBySide.
Referenced by chart::VPolarRadiusAxis::createShapes(), and chart::VPolarRadiusAxis::initAxisLabelProperties().
|
virtual |
Reimplemented in chart::VPolarAxis.
Definition at line 129 of file VAxisBase.cxx.
References m_aAxisProperties, chart::AxisProperties::m_xAxisModel, chart::PlotterBase::m_xFinalTarget, and chart::PlotterBase::m_xLogicTarget.
Referenced by chart::VPolarAxis::isAnythingToDraw(), and prepareShapeCreation().
|
protected |
Definition at line 97 of file VAxisBase.cxx.
References m_aAxisProperties, chart::AxisProperties::m_bComplexCategories, and m_bUseTextLabels.
|
protected |
Definition at line 93 of file VAxisBase.cxx.
References chart::ExplicitScaleData::AxisType, and chart::VAxisOrGridBase::m_aScale.
|
protectedvirtual |
Reimplemented in chart::VPolarRadiusAxis.
Definition at line 166 of file VAxisBase.cxx.
References createAllTickInfos(), chart::ShapeFactory::createGroup2D(), chart::PlotterBase::createGroupShape(), isAnythingToDraw(), m_aAllTickInfos, m_aAxisProperties, chart::PlotterBase::m_aCID, chart::AxisProperties::m_bDisplayDataTable, chart::AxisProperties::m_bDisplayLabels, m_bReCreateAllTickInfos, chart::PlotterBase::m_nDimension, m_xDataTableTarget, chart::PlotterBase::m_xFinalTarget, m_xGroupShape_Shapes, chart::PlotterBase::m_xLogicTarget, m_xTextTarget, and removeTextShapesFromTicks().
Referenced by chart::VPolarAngleAxis::createLabels(), chart::VPolarAngleAxis::createMaximumLabels(), chart::VPolarAngleAxis::createShapes(), and chart::VPolarAngleAxis::updatePositions().
|
protected |
Definition at line 102 of file VAxisBase.cxx.
References chart::ShapeFactory::getSizeAfterRotation(), m_bRecordMaximumTextSize, m_nMaximumTextHeightSoFar, and m_nMaximumTextWidthSoFar.
|
protected |
Definition at line 214 of file VAxisBase.cxx.
References m_aAllTickInfos, and m_xTextTarget.
Referenced by chart::VPolarAngleAxis::createLabels(), and prepareShapeCreation().
|
overridevirtual |
css::uno::RuntimeException |
Reimplemented from chart::VAxisOrGridBase.
Reimplemented in chart::VPolarRadiusAxis.
Definition at line 148 of file VAxisBase.cxx.
References chart::VAxisOrGridBase::m_aIncrement, chart::VAxisOrGridBase::m_aScale, and m_bReCreateAllTickInfos.
Referenced by chart::VPolarRadiusAxis::createShapes(), chart::VPolarCoordinateSystem::initVAxisInList(), chart::VPolarRadiusAxis::setExplicitScaleAndIncrement(), and chart::VPolarCoordinateSystem::updateScalesAndIncrementsOnAxes().
void chart::VAxisBase::setExtraLinePositionAtOtherAxis | ( | double | fCrossingAt | ) |
Definition at line 119 of file VAxisBase.cxx.
References m_aAxisProperties, and chart::AxisProperties::m_pfExrtaLinePositionAtOtherAxis.
|
pure virtual |
Implemented in chart::VCartesianAxis, chart::VPolarAngleAxis, and chart::VPolarRadiusAxis.
|
protected |
Definition at line 232 of file VAxisBase.cxx.
References chart::TickIter::firstInfo(), chart::VAxisOrGridBase::m_aScale, chart::TickIter::nextInfo(), and chart::ExplicitScaleData::Scaling.
Referenced by chart::VPolarAngleAxis::createLabels().
|
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().
|
protected |
Definition at line 89 of file VAxisBase.hxx.
Referenced by chart::VPolarAngleAxis::createLabels(), chart::VPolarRadiusAxis::createShapes(), chart::VPolarAngleAxis::createTextShapes_ForAngleAxis(), and initAxisLabelProperties().
|
protected |
Definition at line 88 of file VAxisBase.hxx.
Referenced by chart::VPolarAngleAxis::createLabels(), chart::VPolarAngleAxis::createShapes(), chart::VPolarRadiusAxis::createShapes(), chart::VPolarAngleAxis::createTextShapes_ForAngleAxis(), initAxisLabelProperties(), isAnythingToDraw(), isComplexCategoryAxis(), prepareShapeCreation(), setExtraLinePositionAtOtherAxis(), and chart::VPolarRadiusAxis::VPolarRadiusAxis().
|
protected |
Definition at line 90 of file VAxisBase.hxx.
Referenced by chart::VPolarAngleAxis::createTextShapes_ForAngleAxis(), and initAxisLabelProperties().
|
protected |
Definition at line 111 of file VAxisBase.hxx.
Referenced by recordMaximumTextSize().
|
protected |
Definition at line 109 of file VAxisBase.hxx.
Referenced by prepareShapeCreation(), and setExplicitScaleAndIncrement().
|
protected |
Definition at line 91 of file VAxisBase.hxx.
Referenced by chart::VPolarAngleAxis::createTextShapes_ForAngleAxis(), initAxisLabelProperties(), and isComplexCategoryAxis().
|
protected |
Definition at line 113 of file VAxisBase.hxx.
Referenced by recordMaximumTextSize().
|
protected |
Definition at line 112 of file VAxisBase.hxx.
Referenced by recordMaximumTextSize().
|
protected |
Definition at line 97 of file VAxisBase.hxx.
Referenced by getDataTableView().
|
protected |
Definition at line 95 of file VAxisBase.hxx.
Referenced by prepareShapeCreation().
|
protected |
Definition at line 93 of file VAxisBase.hxx.
Referenced by chart::VPolarAngleAxis::createShapes(), prepareShapeCreation(), and chart::VPolarRadiusAxis::prepareShapeCreation().
|
protected |
Definition at line 87 of file VAxisBase.hxx.
Referenced by chart::VPolarRadiusAxis::createShapes(), and chart::VPolarAngleAxis::createTextShapes_ForAngleAxis().
|
protected |
Definition at line 94 of file VAxisBase.hxx.
Referenced by chart::VPolarAngleAxis::createLabels(), prepareShapeCreation(), and removeTextShapesFromTicks().