Task #2034

Restore access to the pop up dialog of JFreeChart to edit chart rendering properties

Added by Sebastien Jacquot over 2 years ago. Updated 6 months ago.

Status:Closed Start date:02/11/2017
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Charts Spent time: -
Target version:TXM 0.8.0

Description

Restore access to the pop up dialog of JFreeChart to edit chart rendering properties.
(The default ChartPanel class offers a context menu that opens a component to edit some chart properties. This menu has been hidden at this moment.)

Validation tests

  • create some charts
  • open the chart properties from the chart tool bar button ou the empty area context menu
    => change some rendering properties from the opened pop up dialog
    => the properties dialog lang must be the same as TXM
    => note: these properties are not saved when closing the editor (only those modified in the rendering tool bar are saved)
  • additional: export the chart view in some formats and check the exported file
  • note: the changes are only saved in the same session (closing/reopening a result) but not between sessions (not persisted)

History

#1 Updated by Sebastien Jacquot over 2 years ago

The default context menu also permits to copy the chart, we may restore this functionality too and add it to the RCP chart context menu + bind it to CTRL + C
  • get the source code of the command
  • define a method in SWTChartsComponentsProvider copyChart()
  • see if Batik also permit that
  • create an AbstractHandler command in org.txm.chartsengine.rcp.handlers
  • add it to the context menu as menu contribution
  • add a button to the tool bar, name: "Copy", tooltip: "Copy to clipboard", bind it to CTRL/Meta key + C

see: http://www.java2s.com/Code/Java/2D-Graphics-GUI/ThisprogramdemonstratesthetransferofimagesbetweenaJavaapplicationandthesystemclipboard.htm

[Now has its own issue: https://forge.cbp.ens-lyon.fr/redmine/issues/2037]

#2 Updated by Sebastien Jacquot over 2 years ago

  • Subject changed from RCP: Restoring access to the form component of JFreeChart to edit chart parameters to Restore access to the pop up dialog of JFreeChart to edit chart rendering properties
  • Description updated (diff)
  • Status changed from New to Feedback
  • % Done changed from 0 to 80

#3 Updated by Sebastien Jacquot about 1 year ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#4 Updated by Sebastien Jacquot about 1 year ago

  • Description updated (diff)

#5 Updated by Sebastien Jacquot 6 months ago

SJ: tested on Win: OK

#6 Updated by Sebastien Jacquot 6 months ago

  • Status changed from Feedback to Closed
  • % Done changed from 80 to 100

Also available in: Atom PDF