-
Hi! I am using JFreeSVG for a project and was wondering if there was any way I could add additional attributes onto a group tag? Ex: currently I know I can add an id to the group tag, but if I wanted to add an attibute like "filepath" to my group tag (so that the tag would read something like < g id="unique-id" filepath="unique-filepath" >, is there an easy way to do so? Thank you so much for your time! EDIT: Oops, I didn't realize the example wasn't visible, added spaces between the < > brackets. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That's not supported at present but I suppose the rendering hint |
Beta Was this translation helpful? Give feedback.
That's not supported at present but I suppose the rendering hint
SVGHints.KEY_BEGIN_GROUP
could be modified to support it. Right now it expects aString
instance for the value and uses that as the group ID. It could check for an instance ofMap<String, String>
and consider each entry in the map to be an attribute-value pair and simply write those into the SVG output. Would that work for you?