Feature #2066
Store the zoom/scaling factor and pan coordinates to reopen a closed chart editor keeping its last state (in same TXM session)
Statut: | Rejected | Début: | 21/03/2017 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Charts | Temps passé: | - | |
Version cible: | 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
Historique
#1 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#2 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#3 Mis à jour par Sebastien Jacquot il y a plus de 7 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0
#4 Mis à jour par Sebastien Jacquot il y a presque 7 ans
- Statut changé de New à Rejected
- % réalisé changé de 0 à 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.