public class StopSvgNodeRenderer extends AbstractBranchSvgNodeRenderer implements INoDrawSvgNodeRenderer
ISvgNodeRenderer implementation for the gradient <stop> tag.VIEWBOX_VALUES_NUMBERattributesAndStyles| Constructor and Description |
|---|
StopSvgNodeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
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.
|
com.itextpdf.kernel.geom.Rectangle |
getObjectBoundingBox(SvgDrawContext context)
Calculates the current object bounding box.
|
double |
getOffset()
Evaluates the stop color offset value.
|
float[] |
getStopColor()
Evaluates the rgba array of the specified stop color.
|
float |
getStopOpacity()
Evaluates the stop opacity of the specified stop color.
|
addChild, deepCopyChildren, getChildrencanConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, getChildrendraw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParentpublic double getOffset()
public float[] getStopColor()
public float getStopOpacity()
public ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderercreateDeepCopy in interface ISvgNodeRenderercreateDeepCopy in class AbstractBranchSvgNodeRendererpublic com.itextpdf.kernel.geom.Rectangle getObjectBoundingBox(SvgDrawContext context)
ISvgNodeRenderergetObjectBoundingBox in interface ISvgNodeRenderercontext - the current context, for instance it contains current viewport and available
font dataRectangle representing the current object's bounding box, or null
if bounding box is undefinedprotected void doDraw(SvgDrawContext context)
AbstractBranchSvgNodeRendererdoDraw in class AbstractBranchSvgNodeRenderercontext - the object that knows the place to draw this element and
maintains its stateCopyright © 1998–2023 iText Group NV. All rights reserved.