diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-03-10 11:16:48 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-23 02:55:28 +0100 |
commit | 4c2c9acbd81a9554960298100d8d43badec1d798 (patch) | |
tree | e024fb27c1c4a0677ed3f5df7ce30959cb746faf /chart2 | |
parent | Add a function to get X error bar properties. (diff) | |
download | core-4c2c9acbd81a9554960298100d8d43badec1d798.tar.gz core-4c2c9acbd81a9554960298100d8d43badec1d798.zip |
Add function to create X error bars in VSeriesPlotter class.
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 22 | ||||
-rw-r--r-- | chart2/source/view/inc/VSeriesPlotter.hxx | 6 |
2 files changed, 28 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index 901e22a2afa4..64216c601d12 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -929,6 +929,28 @@ void VSeriesPlotter::createErrorBar( } +void VSeriesPlotter::createErrorBar_X( const drawing::Position3D& rUnscaledLogicPosition + , VDataSeries& rVDataSeries, sal_Int32 nPointIndex + , const uno::Reference< drawing::XShapes >& xTarget + , double* pfScaledLogicX ) +{ + if(m_nDimension!=2) + return; + // error bars + uno::Reference< beans::XPropertySet > xErrorBarProp(rVDataSeries.getXErrorBarProperties(nPointIndex)); + if( xErrorBarProp.is()) + { + uno::Reference< drawing::XShapes > xErrorBarsGroup_Shapes( + this->getErrorBarsGroupShape(rVDataSeries, xTarget) ); + + createErrorBar( xErrorBarsGroup_Shapes + , rUnscaledLogicPosition, xErrorBarProp + , rVDataSeries, nPointIndex + , false /* bYError */ + , pfScaledLogicX ); + } +} + void VSeriesPlotter::createErrorBar_Y( const drawing::Position3D& rUnscaledLogicPosition , VDataSeries& rVDataSeries, sal_Int32 nPointIndex , const uno::Reference< drawing::XShapes >& xTarget diff --git a/chart2/source/view/inc/VSeriesPlotter.hxx b/chart2/source/view/inc/VSeriesPlotter.hxx index 3d3f80503492..b393225b765a 100644 --- a/chart2/source/view/inc/VSeriesPlotter.hxx +++ b/chart2/source/view/inc/VSeriesPlotter.hxx @@ -378,6 +378,12 @@ protected: //methods , double* pfScaledLogicX ); + virtual void createErrorBar_X( const ::com::sun::star::drawing::Position3D& rUnscaledLogicPosition + , VDataSeries& rVDataSeries, sal_Int32 nPointIndex + , const ::com::sun::star::uno::Reference< + ::com::sun::star::drawing::XShapes >& xTarget + , double* pfScaledLogicX=0 ); + virtual void createErrorBar_Y( const ::com::sun::star::drawing::Position3D& rUnscaledLogicPosition , VDataSeries& rVDataSeries, sal_Int32 nPointIndex , const ::com::sun::star::uno::Reference< |