public abstract class AbstractGradientSvgNodeRenderer extends AbstractBranchSvgNodeRenderer implements ISvgPaintServer
ISvgNodeRenderer abstract implementation for gradient tags
(<linearGradient>, <radialGradient>).VIEWBOX_VALUES_NUMBERattributesAndStyles| Constructor and Description |
|---|
AbstractGradientSvgNodeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDraw(SvgDrawContext context)
Method that will set properties to be inherited by this branch renderer's
children and will iterate over all children in order to draw them.
|
protected List<StopSvgNodeRenderer> |
getChildStopRenderers()
Construct a list of child stop renderers
|
protected com.itextpdf.kernel.geom.AffineTransform |
getGradientTransform()
Evaluates the 'gradientTransform' transformations
|
protected boolean |
isObjectBoundingBoxUnits()
Checks whether the gradient units values are on user space on use or object bounding box
|
protected com.itextpdf.kernel.colors.gradients.GradientSpreadMethod |
parseSpreadMethod()
Parses the gradient spread method
|
addChild, createDeepCopy, deepCopyChildren, getChildrencanConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateColoraddChild, getChildrencreateDeepCopy, draw, getAttribute, getAttributeMapCopy, getObjectBoundingBox, getParent, setAttribute, setAttributesAndStyles, setParentprotected void doDraw(SvgDrawContext context)
AbstractBranchSvgNodeRendererdoDraw in class AbstractBranchSvgNodeRenderercontext - the object that knows the place to draw this element and
maintains its stateprotected boolean isObjectBoundingBoxUnits()
false if the 'gradientUnits' value of the gradient tag equals
to 'userSpaceOnUse', otherwise trueprotected com.itextpdf.kernel.geom.AffineTransform getGradientTransform()
AffineTransform object representing the specified gradient transformationprotected List<StopSvgNodeRenderer> getChildStopRenderers()
StopSvgNodeRenderer elements that represents the child stop valuesprotected com.itextpdf.kernel.colors.gradients.GradientSpreadMethod parseSpreadMethod()
GradientSpreadMethod specified in the gradientCopyright © 1998–2022 iText Group NV. All rights reserved.