org.unlaxer.diagram.SVGRenderer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unlaxer-diagram Show documentation
Show all versions of unlaxer-diagram Show documentation
a simple parser combinator inspired by RelaxNG
The newest version!
package org.unlaxer.diagram;
public class SVGRenderer {
public String render(Renderable renderable) {
// Renderable is tree structure.
Class extends Renderable> clazz = renderable.getClass();
if (clazz == TextElement.class) {
// new TagBuilder("text")
// .addAttribute("text", value)
// Term
}
throw new IllegalArgumentException();
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy