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
public abstract class AbstractContainerSvgNodeRenderer extends AbstractBranchSvgNodeRenderer
Abstract class that will be the superclass for any element that instantiates new view port.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
AbstractSvgNodeRenderer.FillProperties, AbstractSvgNodeRenderer.StrokeProperties
-
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractContainerSvgNodeRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Rectangle
calculateViewPort(SvgDrawContext context)
Calculate the viewport based on the context.boolean
canConstructViewPort()
Method to see if the renderer can create a viewportprotected boolean
canElementFill()
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, applyViewBox, calculateAndApplyViewBox, createDeepCopy, deepCopyChildren, getChildren, postDraw
-
Methods inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
applyFillAndStrokeProperties, applyNonScalingStrokeTransform, calculateViewPortTranslation, deepCopyAttributesAndStyles, doStrokeOrFill, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getCurrentFontSize, getCurrentViewBox, getParent, getParentClipPath, isHidden, parseAbsoluteLength, parseHorizontalLength, parseVerticalLength, preDraw, retrieveAlignAndMeet, 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
-
-
-
-
Method Detail
-
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
protected void doDraw(SvgDrawContext context)
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
Rectangle calculateViewPort(SvgDrawContext context)
Calculate the viewport based on the context.- Parameters:
context
- the SVG draw context- Returns:
- the viewport that applies to this renderer
-
-