Interface ISvgView
interface ISvgView
Extends ISvgNode
The interface represents an SVG element.
The Svg container can house child elements and define the rendering area.
See also - ISvgNode.
Methods
attachToParent()
Sets svg to the element the parent of root view.voidattachToParent(IView*parent)
Parameters
parent
IView* — Required
IView the parent view to attach.
setSize()
Sets the size of the element.voidsetSize(com.amazon.kepler.uitoolkit.graphics.Sizesize)
Parameters
size
com.amazon.kepler.uitoolkit.graphics.Size — Required
Size the value defining the width and height of the element.
setContainerSize()
Sets the container size for layout or rendering.voidsetContainerSize(com.amazon.kepler.uitoolkit.graphics.SizecontainerSize)
Parameters
containerSize
com.amazon.kepler.uitoolkit.graphics.Size — Required
Size the value representing the dimensions of the container.
setViewBox()
Sets the viewBox of the svg element. The SVG viewport coordinates for the current SVG fragment.voidsetViewBox(com.amazon.kepler.uitoolkit.graphics.RectviewBox)
Parameters
viewBox
com.amazon.kepler.uitoolkit.graphics.Rect — Required
Rect the new value to set.
setPreserveAspectRatio()
Sets the preserveAspectRatio attribute of the svg element. Default value is @link SvgScale#MEETvoidsetPreserveAspectRatio(SvgPreserveAspectRatioaspectRatio)
Parameters
aspectRatio
SvgPreserveAspectRatio — Required
SvgPreserveAspectRatio the value to set.
setX()
Sets the x attribute, which represents the X-coordinate of the svg component’s position. Has no effect on the outermost svg component. Default value is 0.0 withvoidsetX(SvgLengthx)
SvgUnit::Number
Parameters
x
SvgLength — Required
SvgLength set as the X position of the svg component.
setY()
Sets the y attribute, which represents the Y-coordinate of the svg component’s position. Has no effect on the outermost svg component. Default value is 0.0 withvoidsetY(SvgLengthy)
SvgUnit::Number
Parameters
y
SvgLength — Required
SvgLength set as the Y position of the svg component.
setWidth()
Sets the width of the svg element. Default value is 0.0 withvoidsetWidth(SvgLengthwidth)
SvgUnit::Percentage
Parameters
width
SvgLength — Required
SvgLength to set.
setHeight()
Sets the height of the svg element. Default value is 0.0 withvoidsetHeight(SvgLengthheight)
SvgUnit::Percentage
Parameters
height
SvgLength — Required
SvgLength to set.

