public abstract class AbstractGradientSvgNodeRenderer extends AbstractBranchSvgNodeRenderer implements ISvgPaintServer
ISvgNodeRenderer
abstract implementation for gradient tags (VIEWBOX_VALUES_NUMBER
attributesAndStyles
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, getChildren
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createColor
addChild, getChildren
createDeepCopy, draw, getAttribute, getAttributeMapCopy, getObjectBoundingBox, getParent, setAttribute, setAttributesAndStyles, setParent
protected 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.