Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend SVG support to Nebula #353

Closed
lcaron opened this issue Jun 25, 2021 · 1 comment
Closed

Extend SVG support to Nebula #353

lcaron opened this issue Jun 25, 2021 · 1 comment
Milestone

Comments

@lcaron
Copy link
Contributor

lcaron commented Jun 25, 2021

Copy of https://bugs.eclipse.org/bugs/show_bug.cgi?id=566565

Nebula currently handles SVG inside the o.e.n.cwt project. We would like to extract these classes into their own project and make the SWT/SVG library as complete as possible.

AFAI could find, there are no real independent SVG implementations for SWT.

  • People use Batik to render SVG into an image and then display this image inside an SWT canvas.

  • GMF has some support [1]

  • Java Swing/AWT implementation [2]

[1] https://git.eclipse.org/c/gmf-tooling/org.eclipse.gmf-tooling.git/tree/plugins/org.eclipse.gmf.runtime.lite.svg/src/org/eclipse/gmf/runtime/lite/svg

[2] https://github.com/jfree/jfreesvg

Laurent CARON

How about embed JFreeSVG with SWT/AWT bridge ?
Another idea : embed a JavaFX WebView ?

Wim Jongman

I'm looking for a native SWT implementation. Edward expressed interest in working on this. Edward, let me know if you need
some pointers to get started.

Laurent CARON

I think a mix between JFreeSVG & SWT/AWT should be reasonable.
Stay tuned ;)

Edward Francis

Wim, I am interested. I've never contributed to anything like this, so I am definitely interested in some pointers. Thanks.

Wil jongman

Hey Edward, sorry for the delay.

If you take a look at the filestructure of Nebula, you will see that each project has its own directory inside the widgets directory.

I think for now, we can create a new project o.e.nebula.cwt.svg inside the CWT widget that will be used to isolate the SVG code.

Then we will need to add this new project to the CWT feature.

Laurent CARON

I worked on the subject. Unfortunately, JFreeSVG can only output SVG documents, it cannot render existing SVG files within Java application.

If one wants to display SVG files in Java, the only solution is Apache Batik (SVGSalamender [1] is not an alternative because it has not been updated for years).

I'll work on a SWT Control that embeb a Batik Control viewer (with SWT/AWT).

Is there any legal issues ? (Apache Licence VS EPL 2) ?

Cheers,
Laurent

[1] = https://github.com/blackears/svgSalamander

Wim Jongman

Laurent, please take a look at bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=568215

@lcaron lcaron added this to the 2.6.0 milestone Jun 25, 2021
@lcaron lcaron modified the milestones: 2.6.0, 2.7.0 Dec 20, 2021
@lcaron lcaron modified the milestones: 2.7.0, 2.8.0 Jun 24, 2022
@lcaron lcaron modified the milestones: 3.0.0, 3.1.0 Mar 7, 2023
@lcaron
Copy link
Contributor Author

lcaron commented Dec 23, 2023

This bug is old and complicated to fix. Please reopen if needed.

@lcaron lcaron closed this as completed Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant