URL in Legend in PNG should be clickable

0 votes
asked Oct 24, 2013 in Wanted features by valexiev (790 points)

URLs in Legends (and Notes) are clickable in SVG, eg see the bottom of this diagram.

URLs of whole nodes are clickable in SVG and PNG.

But URLs in Legends in PNG are not clickable, eg see this form (top left node is clickable, link in legend on the bottom is not).

It would be nice to compute URL areas in Legend & Note and add them to the imagemap.

A related minor request: make the URLs underlined, rather than having to use a <u> tag around the link

commented Oct 24, 2013 by mbucc (450 points)
Re: underlining links, you can now do that manually; for example,

  node dbserver {
    database "DB" {
      [<u><font color=blue>App</font></u>] as APP
    }
  }
 url of APP is [[http://google.com]]

1 Answer

0 votes
answered Oct 25, 2013 by plantuml (194,950 points)
selected Oct 25, 2013 by valexiev
 
Best answer
This is patched in the following beta, and should work:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

About automatically underlining of URL, we will study what can be done.
commented Oct 25, 2013 by valexiev (790 points)
Tested, it makes a box for the Diagram link in .cmapx. Nice! :-)

I'm not sure why, I also tested with -thtml and got this exception:

> java -jar c:\prog\bin\plantuml.jar -thtml sequence-diagram.puml
java.lang.UnsupportedOperationException
        at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma.create
Image(SequenceDiagramFileMakerPuma.java:314)
        at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma.create
One(SequenceDiagramFileMakerPuma.java:173)
        at net.sourceforge.plantuml.sequencediagram.SequenceDiagram.exportDiagramInternal(Seque
nceDiagram.java:202)
        at net.sourceforge.plantuml.UmlDiagram.exportDiagram(UmlDiagram.java:222)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagramsSequence(PSystemUtils.java:172)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:62)
        at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:1
24)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:359)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:288)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:264)
        at net.sourceforge.plantuml.Run.main(Run.java:108)
Exception in thread "main" java.lang.UnsupportedOperationException
        at net.sourceforge.plantuml.graphic.GraphicStrings.writeImage(GraphicStrings.java:133)
        at net.sourceforge.plantuml.UmlDiagram.exportDiagramError(UmlDiagram.java:267)
        at net.sourceforge.plantuml.UmlDiagram.exportDiagram(UmlDiagram.java:230)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagramsSequence(PSystemUtils.java:172)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:62)
        at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:1
24)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:359)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:288)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:264)
        at net.sourceforge.plantuml.Run.main(Run.java:108)
...