com.yworks.yfiles.server.svg
Class SVGRenderContext

java.lang.Object
  extended bycom.yworks.yfiles.server.svg.SVGRenderContext

public class SVGRenderContext
extends Object

Instances of this class contain information required to generate the SVG image.


Constructor Summary
SVGRenderContext(javax.servlet.http.HttpServletRequest request, Graph2DView view)
          Creates a new instance of this class.
 
Method Summary
 int getBorder()
          Returns the value of the "border" parameter from the HTTP request or the SVGServlet.DEFAULT_SVG_BORDER if no or an illegal value is specified.
 String getIdPrefix()
          Returns the prefix parameter from the HTTP request.
 double getPaintDetailThreshold()
           
 javax.servlet.http.HttpServletRequest getRequest()
          Returns the HTTP request.
 Graph2DView getView()
          Returns the Graph2DView.
 double getZoom()
          Returns the zoom from the HTTP request or 1.0 if the zoom parameter is not specified in the request or has an illegal format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGRenderContext

public SVGRenderContext(javax.servlet.http.HttpServletRequest request,
                        Graph2DView view)
Creates a new instance of this class.

Parameters:
request - The HTTP request
view - The view
Throws:
IllegalArgumentException - if any one of the provided parameters is null.
Method Detail

getIdPrefix

public String getIdPrefix()
Returns the prefix parameter from the HTTP request.

Returns:
The prefix or null, if none is provided.

getView

public Graph2DView getView()
Returns the Graph2DView.

Returns:
The view.
Throws:
IllegalStateException - if the view is null.

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Returns the HTTP request.

Returns:
The request.

getZoom

public double getZoom()
Returns the zoom from the HTTP request or 1.0 if the zoom parameter is not specified in the request or has an illegal format.

Returns:
The zoom.

getBorder

public int getBorder()
Returns the value of the "border" parameter from the HTTP request or the SVGServlet.DEFAULT_SVG_BORDER if no or an illegal value is specified.

Returns:
The value of the border parameter

getPaintDetailThreshold

public double getPaintDetailThreshold()


Copyright © 2006-2013 yWorks GmbH. All rights reserved