TAChart: extract utility unit and refactor axis drawing
Original Reporter info from Mantis: Ask
-
Reporter name: Alexander S. Klenin
Original Reporter info from Mantis: Ask
- Reporter name: Alexander S. Klenin
Description:
Attached patch contains some non-trivial refactorings:
- Created new unit TAChartUtils, moved some support code into it.
- Heavily refactored code of CalculateIntervals and TAGraph.DrawAxis
procedures -- removed lots of duplicated code, simplifed logic,
extracted local procedures etc.
- Introduced TPenBrushFontRecall helper class.
- Added 'Axis titles' checkbox to the demo program.
Total line count is reduced by more than a hondred lines,
despite the overhead of boilerplate code in the new unit.
Mantis conversion info:
- Mantis ID: 12758
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 17809 (#e7e358fd)
- Target version: 1.0.0
- LazTarget: 1.0