LibreOffice Module chart2 (master) 1
BubbleChart.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 <VSeriesPlotter.hxx>
22#include <com/sun/star/drawing/Direction3D.hpp>
23
24namespace chart
25{
26
28{
29 // public methods
30public:
31 BubbleChart() = delete;
32
34 , sal_Int32 nDimensionCount );
35 virtual ~BubbleChart() override;
36
37 virtual void createShapes() override;
38
39 virtual css::drawing::Direction3D getPreferredDiagramAspectRatio() const override;
40
41 // MinimumAndMaximumSupplier
42 virtual bool isExpandIfValuesCloseToBorder( sal_Int32 nDimensionIndex ) override;
43 virtual bool isSeparateStackingForDifferentSigns( sal_Int32 nDimensionIndex ) override;
44
45 virtual LegendSymbolStyle getLegendSymbolStyle() override;
46
47private: //methods
50
51 css::drawing::Direction3D transformToScreenBubbleSize( double fLogicSize );
52
53private: //member
54
55 double m_fMaxLogicBubbleSize;//calculated values
56 double m_fBubbleSizeFactorToScreen;//calculated values
57};
58} //namespace chart
59
60/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~BubbleChart() override
Definition: BubbleChart.cxx:52
void calculateBubbleSizeScalingFactor()
Definition: BubbleChart.cxx:84
css::drawing::Direction3D transformToScreenBubbleSize(double fLogicSize)
double m_fMaxLogicBubbleSize
Definition: BubbleChart.hxx:55
virtual bool isExpandIfValuesCloseToBorder(sal_Int32 nDimensionIndex) override
virtual void createShapes() override
virtual LegendSymbolStyle getLegendSymbolStyle() override
double m_fBubbleSizeFactorToScreen
Definition: BubbleChart.hxx:56
void calculateMaximumLogicBubbleSize()
Definition: BubbleChart.cxx:57
virtual bool isSeparateStackingForDifferentSigns(sal_Int32 nDimensionIndex) override
BubbleChart(const rtl::Reference< ::chart::ChartType > &xChartTypeModel, sal_Int32 nDimensionCount)
virtual css::drawing::Direction3D getPreferredDiagramAspectRatio() const override
a value <= 0 for a directions means that this direction can be stretched arbitrary