|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yworks.yfiles.server.svg.SVGIdRewriteGraphVisitor
This implementation of SVGGraphVisitor rewrites all IDs in the SVG document
to include a prefix.
The prefix is retrieved from the SVGRenderContext.getIdPrefix() method.
| Constructor Summary | |
SVGIdRewriteGraphVisitor(SVGRenderContext ctx)
Creates a new SVGIDRewriteGraphVisitor for the given context. |
|
| Method Summary | |
protected String |
createNewId(String oldId)
Creates a new ID given the old one. |
void |
visitAttribute(Attr attr)
Replaces ID values with a prefixed version. |
void |
visitNode(Node node)
Does nothing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SVGIdRewriteGraphVisitor(SVGRenderContext ctx)
ctx - The context| Method Detail |
protected String createNewId(String oldId)
oldId - Can be either the actual ID or a Pattern replacement string
(i.e. "$1")
public final void visitNode(Node node)
visitNode in interface SVGGraphVisitornode - The nodepublic final void visitAttribute(Attr attr)
visitAttribute in interface SVGGraphVisitorattr - The attribute whose value might be rewritten.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||