com.yworks.yfiles.server.svg
Class SVGGraph2DRewriteRenderer

java.lang.Object
  extended byy.view.DefaultGraph2DRenderer
      extended byyext.svg.io.SVGGraph2DRenderer
          extended bycom.yworks.yfiles.server.svg.SVGGraph2DRewriteRenderer
All Implemented Interfaces:
Graph2DRenderer, OrderRenderer

public final class SVGGraph2DRewriteRenderer
extends yext.svg.io.SVGGraph2DRenderer

This class visits all nodes in the generated SVG document after it has been created and delegates to registered visitors so that they can make modifications on the nodes and their attributes. Invocation of the SVGGraphVisitors will be performed in order of registration.

See Also:
SVGGraphVisitor

Constructor Summary
SVGGraph2DRewriteRenderer()
          Creates a new instance of the SVGGraph2DRewriteRenderer.
 
Method Summary
 void addVisitor(SVGGraphVisitor visitor)
          Adds a new SVGGraphVisitor to the chain of visitors.
 void removeVisitor(SVGGraphVisitor visitor)
          Removes the given visitor from the chain of visitors.
protected  void writeDocument(Node node, Writer writer)
           
 
Methods inherited from class yext.svg.io.SVGGraph2DRenderer
addToSVGDefinition, createCDATASection, createElement, getSVGDocument, getSVGIOHandler, getTopLevelGroup, insertNodeAbove, insertNodeBelow, paint, paint, paintSloppy, paintSloppy, setSVGIOHandler, setTopLevelGroup
 
Methods inherited from class y.view.DefaultGraph2DRenderer
beginLayerPainting, endLayerPainting, getBridgeCalculator, getBridgeCalculator, getClipEnlargementValue, getDrawEdgesFirst, getLayer, getLayer, getPaintOrder, getSloppyPaintOrder, intersects, intersects, isDrawSelectionOnTop, isHierarchicSloppyPaintOrderEnabled, isLayeredPainting, isNestedEdgeDrawingOrderEnabled, isSloppyNestedEdgeDrawingOrderEnabled, paint, paintLayered, paintLayered, paintSloppy, paintSloppyLayered, paintSloppyLayered, prepareBridgeCalculator, setBridgeCalculator, setClipEnlargementValue, setDrawEdgesFirst, setDrawSelectionOnTop, setHierarchicSloppyPaintOrderEnabled, setLayeredPainting, setNestedEdgeDrawingOrderEnabled, setSloppyNestedEdgeDrawingOrderEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGGraph2DRewriteRenderer

public SVGGraph2DRewriteRenderer()
Creates a new instance of the SVGGraph2DRewriteRenderer.

Method Detail

addVisitor

public void addVisitor(SVGGraphVisitor visitor)
Adds a new SVGGraphVisitor to the chain of visitors.

Parameters:
visitor - The visitor that should be added

removeVisitor

public void removeVisitor(SVGGraphVisitor visitor)
Removes the given visitor from the chain of visitors.

Parameters:
visitor - The visitor that should be removed

writeDocument

protected final void writeDocument(Node node,
                                   Writer writer)
                            throws IOException
Throws:
IOException


Copyright © 2006-2013 yWorks GmbH. All rights reserved