Using SVG + Java to flexibly display information, is it viable?

I have a requirement to create a "simulating" display of a complex electrical system. I have access to real-time status information and system block diagrams in Visio.

This is a viable approach:

  • Create an SVG Figure from a Flowchart

  • Mark SVG items of interest with SVG attributes

  • load SVG DOM in java

  • find the tagged elements and change them according to the system status information (for example, make the RED element if it is "in alarm")

  • maps SVG to PNG for display using BATIK (use swing component: JSVGCanvas)

A key requirement is the flexible ability to change SVG after application deployment. An application capable of flexibly pulling different "data points" based on tags in SVG.

Does anyone have success using a similar strategy? What pitfalls should I expect? What's in the way of SVG editing tools?

+3
source share
2 answers

I did something similar to display my health status. I actually annotated the data objects and made them paste their state into a silent SVG file, but the mechanism should be about the same as the other way around.

Benefits:

  • Makes complex, dynamic diagrams insanely easy to render.
  • Chart maintenance is a breeze compared to everything I've ever used.
  • - SVG, , .

:

  • , . SVG, , , , .
  • XPath, - . , XPath.

: Inkscape. , SVG, , , , , Inkscape. SVG, , , , . SVG, -, .

+2

SVG Salamander, , :

  • " SVG ".
  • " . Java- ".
0

Source: https://habr.com/ru/post/1767534/


All Articles