Project: Birt
Bug 273971 Refactor AutoScale to reduce inner fields
Reported: 2009-04-27 23:18:35 | Status: resolved fixed

Currently there are more than 40 inner fields in AutoScale class. It's hard to maintain and likely to produce bugs, especially during clone. It's better to add some context classes which include related fields, just like ScaleContext. AutoScale includes these context classes, so that inner fields can be reduced.

Files changed in fix:
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/ScaleContext.java