Package com.itextpdf.svg.renderers.impl
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
-
Field Summary
Fields inherited from class com.itextpdf.svg.renderers.impl.AbstractBranchSvgNodeRenderer
VIEWBOX_VALUES_NUMBER
Fields inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
attributesAndStyles, doFill, doStroke, partOfClipPath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Rectangle
calculateViewPort
(SvgDrawContext context) Calculate the viewport based on the context.boolean
Method to see if the renderer can create a viewportprotected boolean
Method to see if a certain renderer can use fill.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.Methods inherited from class com.itextpdf.svg.renderers.impl.AbstractBranchSvgNodeRenderer
addChild, addXObject, applyViewBox, calculateAndApplyViewBox, createDeepCopy, deepCopyChildren, getChildren, getViewBoxValues, postDraw, processAspectRatioPosition, retrieveAlignAndMeet, setPartOfClipPath
Methods inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
calculateViewPortTranslation, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, preDraw, setAttribute, setAttributesAndStyles, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.itextpdf.svg.renderers.ISvgNodeRenderer
draw, getAttribute, getAttributeMapCopy, getObjectBoundingBox, getParent, setAttribute, setAttributesAndStyles, setParent
-
Constructor Details
-
AbstractContainerSvgNodeRenderer
public AbstractContainerSvgNodeRenderer()
-
-
Method Details
-
canConstructViewPort
public boolean canConstructViewPort()Description copied from class:AbstractSvgNodeRenderer
Method to see if the renderer can create a viewport- Overrides:
canConstructViewPort
in classAbstractSvgNodeRenderer
- Returns:
- true if the renderer can construct a viewport
-
canElementFill
protected boolean canElementFill()Description copied from class:AbstractSvgNodeRenderer
Method to see if a certain renderer can use fill.- Overrides:
canElementFill
in classAbstractSvgNodeRenderer
- Returns:
- true if the renderer can use fill
-
doDraw
Description copied from class:AbstractBranchSvgNodeRenderer
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.- Overrides:
doDraw
in 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
-