Class SvgShapesRenderer
java.lang.Object
com.hybris.backoffice.workflow.designer.renderer.SvgShapesRenderer
Resolves svg shapes stored as velocity templates
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves svg shapes stored as velocity templates and returns their parsed representation.getSvgShape(String shapeResource, Map<String, Object> ctx) Resolves svg shapes stored as velocity templates and returns their parsed representationprotected Optional<InputStreamReader>resolveResource(String resourcePath) voidsetVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
-
Field Details
-
LOG_TAG
- See Also:
-
-
Constructor Details
-
SvgShapesRenderer
public SvgShapesRenderer()
-
-
Method Details
-
getSvgShape
public String getSvgShape(String shapeResource, String shapeResourceIeFallback, Map<String, Object> ctx) Resolves svg shapes stored as velocity templates and returns their parsed representation. Moreover, it takes an extra argument for particular svg shape resource prepared for Internet Explorer and takes the proper resource depending which browser is being used.- Parameters:
shapeResource- path to the resource containing svg shape in velocity templateshapeResourceIeFallback- path to the resource containing svg shape in velocity template with svg elements supported by Internet Explorerctx- with additional information necessary for parsing svg shape- Returns:
- parsed svg shape
-
getSvgShape
Resolves svg shapes stored as velocity templates and returns their parsed representation- Parameters:
shapeResource- path to the resource containing svg shape in velocity templatectx- with additional information necessary for parsing svg shape- Returns:
- parsed svg shape
-
resolveResource
-
setVelocityEngine
public void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
-