Package com.itextpdf.svg.renderers.impl
Class EllipseSvgNodeRenderer
java.lang.Object
com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
com.itextpdf.svg.renderers.impl.EllipseSvgNodeRenderer
- All Implemented Interfaces:
-
ISvgNodeRenderer
- Direct Known Subclasses:
-
CircleSvgNodeRenderer
ISvgNodeRenderer
implementation for the -
Field Summary
Fields inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
attributesAndStyles
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a deep copy of this renderer, including it's subtree of childrenprotected void
doDraw
(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.getObjectBoundingBox
(SvgDrawContext context) Calculates the current object bounding box.protected boolean
Fetches a map of String values by calling getAttribute(String s) method and maps it's values to arc parameter cx, cy , rx, ry respectivelyMethods inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParent
-
Constructor Details
-
EllipseSvgNodeRenderer
public EllipseSvgNodeRenderer()
-
-
Method Details
-
doDraw
Description copied from class:AbstractSvgNodeRenderer
Draws this element to a canvas-like object maintained in the context.- Specified by:
-
doDraw
in classAbstractSvgNodeRenderer
- Parameters:
-
context
- the object that knows the place to draw this element and maintains its state
-
getObjectBoundingBox
Description copied from interface:ISvgNodeRenderer
Calculates the current object bounding box.- Parameters:
-
context
- the current context, for instance it contains current viewport and available font data - Returns:
-
the
Rectangle
representing the current object's bounding box, or null if bounding box is undefined
-
setParameters
protected boolean setParameters()Fetches a map of String values by calling getAttribute(String s) method and maps it's values to arc parameter cx, cy , rx, ry respectively- Returns:
- boolean values to indicate whether all values exit or not
-
createDeepCopy
Description copied from interface:ISvgNodeRenderer
Creates a deep copy of this renderer, including it's subtree of children- Returns:
- deep copy of this renderer
-