public abstract class AbstractGradientSvgNodeRenderer extends AbstractBranchSvgNodeRenderer implements ISvgPaintServer
ISvgNodeRenderer abstract implementation for gradient tags (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 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 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)
AbstractBranchSvgNodeRenderer
doDraw in class AbstractBranchSvgNodeRenderer
context - the object that knows the place to draw this element and maintains its state
protected boolean isObjectBoundingBoxUnits()
false if the 'gradientUnits' value of the gradient tag equals to 'userSpaceOnUse', otherwise true
protected AffineTransform getGradientTransform()
AffineTransform object representing the specified gradient transformation
protected List<StopSvgNodeRenderer> getChildStopRenderers()
StopSvgNodeRenderer elements that represents the child stop values
protected GradientSpreadMethod parseSpreadMethod()
GradientSpreadMethod specified in the gradient
Copyright © 1998–2022 iText Group NV. All rights reserved.