GSoC 2017 - UIcontrol export
Abstract
The main aim objective of this project is to export uicontrols (components and widgets) along with other graphic objects. Currently when a graphic object is saved in bitmap or vectorized 2D surface, the scilab rendering engine is able to export the all the graphic objects except uicontrols. If a user plots a graph and lists few of the important values in a table, it will be extremely annoying to not find the table in the image they exported. Hence it is important to add this feature in scilab. There are 15 uicontrols for which this feature has to be implemented. Scilab allows the export in 10 image formats but our first focus will be to export all uicontrols in one format (example jpeg). Since the Java2D engine is generic, it can be used for other bitmap formats and then we can extend it for vectorial formats.
Progress
Description |
Status |
Find the exact problem and discuss it with the mentor |
Done |
Find the best solution and discuss it with the mentor |
Done |
Exporting all uicontrols in bitmap format |
Pending |
Exporting uicontrols in SVG vectorial format |
Pending |
Exporting uicontrols in EPS vectorial format |
Pending |
Exporting uicontrols in PS/POS vectorial format |
Pending |
Exporting uicontrols in EMF vectorial format |
Pending |
Improving uicontrols |
Pending |
Week 1-2 report
- Located the exact problem which caused uicontrols to not be exported.
- Tried adding uicontrols to canvas.
- Added JPanel to export and merged it with canvas.
- Working on adding uicontrols to JPanel.
Week 3 report
- Added a new Checkbox to the JPanel
- Matched the properties of JPanel to the figure.
- Trying to add the same checkbox that is drawn on the figure to the JPanel.
Week 4 report
- Found that uiContentPane contains all the uicontrols that are added to the figure.
- Directly exported uiContentPane to check the properties of uicontrols.
- All the properties of uicontrols are already set when added to uiContentPane.
- Found that all the uicontrols can be successfully exported together from uiContentPane if it's merged with the image that is exported already.
- trying to import uiContentPane to export.java so it can be merged with the exported image.