Feature #2066
Mis à jour par Sebastien Jacquot il y a plus de 8 ans
Store the zoom/scaling factor and pan coordinates to reopen a closed chart editor keeping its last state (in same TXM session).
h3. Solution
* create some shared entries in /org.txm.chartsengine.core/src/org/txm/chartsengine/core/preferences/ChartsEnginePreferences.java (like CURRENT_X_PAN, CURRENT_Y_PAN and CURRENT_ZOOM) and sets them as 0 by default
* update the local result preferences node in pan() and zoom() methods of IChartComponent implementations:
* /org.txm.chartsengine.jfreechart.rcp/src/org/txm/chartsengine/jfreechart/rcp/themes/base/swing/ItemSelectionJFCChartPanel.java
* /org.txm.chartsengine.svgbatik.rcp/src/org/txm/chartsengine/svgbatik/rcp/swing/SVGPanel.java
* in ChartComposite.loadChart() implementations at IChartComponent creation get the value from the local result node if exists otherwise get the default values and pan and zoom programmatically
h3. Solution
* create some shared entries in /org.txm.chartsengine.core/src/org/txm/chartsengine/core/preferences/ChartsEnginePreferences.java (like CURRENT_X_PAN, CURRENT_Y_PAN and CURRENT_ZOOM) and sets them as 0 by default
* update the local result preferences node in pan() and zoom() methods of IChartComponent implementations:
* /org.txm.chartsengine.jfreechart.rcp/src/org/txm/chartsengine/jfreechart/rcp/themes/base/swing/ItemSelectionJFCChartPanel.java
* /org.txm.chartsengine.svgbatik.rcp/src/org/txm/chartsengine/svgbatik/rcp/swing/SVGPanel.java
* in ChartComposite.loadChart() implementations at IChartComponent creation get the value from the local result node if exists otherwise get the default values and pan and zoom programmatically