Feature #2066
Store the zoom/scaling factor and pan coordinates to reopen a closed chart editor keeping its last state (in same TXM session)
Status: | Rejected | Start date: | 03/21/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% |
|
Category: | Charts | Spent time: | - | |
Target version: | TXM 0.8.0 |
Description
Store the zoom/scaling factor and pan coordinates to reopen a closed chart editor keeping its last state (in same TXM session).
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 get the value from the local result node if exists otherwise get the default values and pan and zoom programmatically
History
#1 Updated by Sebastien Jacquot over 2 years ago
- Description updated (diff)
#2 Updated by Sebastien Jacquot over 2 years ago
- Description updated (diff)
#3 Updated by Sebastien Jacquot over 1 year ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#4 Updated by Sebastien Jacquot 12 months ago
- Status changed from New to Rejected
- % Done changed from 0 to 100
The system has changed since this issue. JFC charts are cached so the view is restored in a same session. It doesn't apply to R File charts engine and to persistence result reopening but this issue need a more global though about the functionality.