LibreOffice Module chart2 (master) 1
VPolarRadiusAxis.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#pragma once
20
21#include "VPolarAxis.hxx"
22#include <memory>
23
24namespace chart
25{
26
27class VCartesianAxis;
28
30{
31public:
32 VPolarRadiusAxis( const AxisProperties& rAxisProperties
33 , const css::uno::Reference< css::util::XNumberFormatsSupplier >& xNumberFormatsSupplier
34 , sal_Int32 nDimensionCount );
35 virtual ~VPolarRadiusAxis() override;
36
37 virtual void initPlotter(
38 const rtl::Reference<SvxShapeGroupAnyD>& xLogicTarget
39 , const rtl::Reference<SvxShapeGroupAnyD>& xFinalTarget
40 , const OUString& rCID
41 ) override;
42
43 virtual void setTransformationSceneToScreen( const css::drawing::HomogenMatrix& rMatrix ) override;
44
45 virtual void setScales( std::vector< ExplicitScaleData >&& rScales, bool bSwapXAndYAxis ) override;
46
48 const ExplicitScaleData& rScale
49 , const ExplicitIncrementData& rIncrement ) override;
50
51 virtual void initAxisLabelProperties(
52 const css::awt::Size& rFontReferenceSize
53 , const css::awt::Rectangle& rMaximumSpaceForLabels ) override;
54
55 virtual sal_Int32 estimateMaximumAutoMainIncrementCount() override;
56
57 virtual void createMaximumLabels() override;
58 virtual void createLabels() override;
59 virtual void updatePositions() override;
60
61 virtual void createShapes() override;
62
63protected: //methods
64 virtual bool prepareShapeCreation() override;
65
66private: //member
67 std::unique_ptr<VCartesianAxis> m_apAxisWithLabels;
68};
69
70} //namespace chart
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Int32 estimateMaximumAutoMainIncrementCount() override
virtual void initPlotter(const rtl::Reference< SvxShapeGroupAnyD > &xLogicTarget, const rtl::Reference< SvxShapeGroupAnyD > &xFinalTarget, const OUString &rCID) override
virtual void createShapes() override
virtual void createLabels() override
virtual void setExplicitScaleAndIncrement(const ExplicitScaleData &rScale, const ExplicitIncrementData &rIncrement) override
virtual void setScales(std::vector< ExplicitScaleData > &&rScales, bool bSwapXAndYAxis) override
virtual void initAxisLabelProperties(const css::awt::Size &rFontReferenceSize, const css::awt::Rectangle &rMaximumSpaceForLabels) override
virtual bool prepareShapeCreation() override
virtual void setTransformationSceneToScreen(const css::drawing::HomogenMatrix &rMatrix) override
virtual void createMaximumLabels() override
VPolarRadiusAxis(const AxisProperties &rAxisProperties, const css::uno::Reference< css::util::XNumberFormatsSupplier > &xNumberFormatsSupplier, sal_Int32 nDimensionCount)
virtual void updatePositions() override
virtual ~VPolarRadiusAxis() override
std::unique_ptr< VCartesianAxis > m_apAxisWithLabels
describes how tickmarks are positioned on the scale of an axis.
This structure contains the explicit values for a scale like Minimum and Maximum.