1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
21 #include <VSeriesPlotter.hxx>
22 #include <com/sun/star/drawing/Direction3D.hpp>
27 class BubbleChart
: public VSeriesPlotter
31 BubbleChart() = delete;
33 BubbleChart( const rtl::Reference
< ::chart::ChartType
>& xChartTypeModel
34 , sal_Int32 nDimensionCount
);
35 virtual ~BubbleChart() override
;
37 virtual void createShapes() override
;
39 virtual css::drawing::Direction3D
getPreferredDiagramAspectRatio() const override
;
41 // MinimumAndMaximumSupplier
42 virtual bool isExpandIfValuesCloseToBorder( sal_Int32 nDimensionIndex
) override
;
43 virtual bool isSeparateStackingForDifferentSigns( sal_Int32 nDimensionIndex
) override
;
45 virtual LegendSymbolStyle
getLegendSymbolStyle() override
;
48 void calculateMaximumLogicBubbleSize();
49 void calculateBubbleSizeScalingFactor();
51 css::drawing::Direction3D
transformToScreenBubbleSize( double fLogicSize
);
55 double m_fMaxLogicBubbleSize
;//calculated values
56 double m_fBubbleSizeFactorToScreen
;//calculated values
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */