diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-21 15:48:17 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-04 12:30:35 -0500 |
commit | cfbae09f529fb71273bb140223e3884acdf9985b (patch) | |
tree | 60442adb315b26b0ee24a38ee26b60f6d61d2cd3 /chart2 | |
parent | e056cb27679100a09afa5cfe2dc877e428ac2aad (diff) |
More method descriptions.
Change-Id: I465e991c83cd5b711d73afd9407596ef1df70f27
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/axes/VCartesianAxis.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.hxx b/chart2/source/view/axes/VCartesianAxis.hxx index 574bc2f18d7b..2492bb05f455 100644 --- a/chart2/source/view/axes/VCartesianAxis.hxx +++ b/chart2/source/view/axes/VCartesianAxis.hxx @@ -102,6 +102,16 @@ public: protected: //methods /** + * Go through all tick label positions and decide which labels to display + * based on the text shape geometry, overlap setting, tick interval, + * auto-stagger setting etc. + * + * When the auto-stagger setting is on, try to avoid overlaps by + * staggering labels or set the labels at an angle. This method may + * change the axis label properties especially when the auto staggering is + * performed. But the screen label positions will not be shifted in this + * method; it will be done in the doStaggeringOfLabels method. + * * @return true if the text shapes have been successfully created, * otherwise false. Returning false means the AxisLabelProperties * have changed during the call, and the caller needs to call this @@ -119,6 +129,12 @@ protected: //methods TickFactory2D* createTickFactory2D(); void hideIdenticalScreenValues( TickInfoArraysType& rTickInfos ) const; + /** + * Shift the screen positions of the tick labels according to the stagger + * settings. Stagger setting is finalized during the createTextShapes + * call, but this method does the physical shifting of the label + * positions. + */ void doStaggeringOfLabels( const AxisLabelProperties& rAxisLabelProperties , TickFactory2D* pTickFactory2D ); bool isAutoStaggeringOfLabelsAllowed( |