Class AbstractContainerSvgNodeRenderer
java.lang.Object
com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
com.itextpdf.svg.renderers.impl.AbstractBranchSvgNodeRenderer
com.itextpdf.svg.renderers.impl.AbstractContainerSvgNodeRenderer
- All Implemented Interfaces:
IBranchSvgNodeRenderer, ISvgNodeRenderer
- Direct Known Subclasses:
SvgTagSvgNodeRenderer, SymbolSvgNodeRenderer
Abstract class that will be the superclass for any element that instantiates new view port.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSvgNodeRenderer
AbstractSvgNodeRenderer.FillProperties, AbstractSvgNodeRenderer.StrokeProperties -
Field Summary
Fields inherited from class AbstractBranchSvgNodeRenderer
VIEWBOX_VALUES_NUMBERFields inherited from class AbstractSvgNodeRenderer
attributesAndStyles, doFill, doStroke -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) RectanglecalculateViewPort(SvgDrawContext context) Calculate the viewport based on the context.booleanMethod to see if the renderer can create a viewportprotected booleanMethod to see if a certain renderer can use fill.protected voiddoDraw(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.Methods inherited from class AbstractBranchSvgNodeRenderer
addChild, applyViewBox, calculateAndApplyViewBox, createDeepCopy, deepCopyChildren, getChildren, postDrawMethods inherited from class AbstractSvgNodeRenderer
applyFillAndStrokeProperties, applyNonScalingStrokeTransform, calculateViewPortTranslation, deepCopyAttributesAndStyles, doStrokeOrFill, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getCurrentFontSize, getCurrentViewBox, getParent, getParentClipPath, isHidden, parseAbsoluteLength, parseHorizontalLength, parseVerticalLength, preDraw, retrieveAlignAndMeet, setAttribute, setAttributesAndStyles, setParentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISvgNodeRenderer
draw, getAttribute, getAttributeMapCopy, getObjectBoundingBox, getParent, setAttribute, setAttributesAndStyles, setParent
-
Constructor Details
-
AbstractContainerSvgNodeRenderer
public AbstractContainerSvgNodeRenderer()
-
-
Method Details
-
canConstructViewPort
public boolean canConstructViewPort()Description copied from class:AbstractSvgNodeRendererMethod to see if the renderer can create a viewport- Overrides:
canConstructViewPortin classAbstractSvgNodeRenderer- Returns:
- true if the renderer can construct a viewport
-
canElementFill
protected boolean canElementFill()Description copied from class:AbstractSvgNodeRendererMethod to see if a certain renderer can use fill.- Overrides:
canElementFillin classAbstractSvgNodeRenderer- Returns:
- true if the renderer can use fill
-
doDraw
Description copied from class:AbstractBranchSvgNodeRendererMethod that will set properties to be inherited by this branch renderer's children and will iterate over all children in order to draw them.- Overrides:
doDrawin classAbstractBranchSvgNodeRenderer- Parameters:
context- the object that knows the place to draw this element and maintains its state
-
calculateViewPort
Calculate the viewport based on the context.- Parameters:
context- the SVG draw context- Returns:
- the viewport that applies to this renderer
-