Class SVG
- All Implemented Interfaces:
Container<SVGNode>, HasClip, HasContext, HasContext.ByDelegate, HasFilter, HasFontContext, HasFontRenderContext, HasGeometryContext, HasGeometryContext.ByDelegate, HasPaintContext, HasShape, Renderable, ShapedContainer<SVGNode>, Transformable, SVGNode
@ElementCategories({Container,Structural})
@PermittedContent(categories={Animation,Descriptive,Shape,Structural,Gradient},
anyOf={Anchor.class,ClipPath.class,Filter.class,Image.class,Mask.class,Marker.class,Pattern.class,Style.class,Text.class,View.class})
public final class SVG
extends CommonInnerViewContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface HasContext
HasContext.ByDelegateNested classes/interfaces inherited from interface HasGeometryContext
HasGeometryContext.ByDelegateNested classes/interfaces inherited from interface HasShape
HasShape.Box -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AnimationPeriodprivate static final floatprivate static final floatprivate booleanprivate booleanstatic final Stringprivate static final @NotNull Coordinate<LengthValue> Fields inherited from class CommonInnerViewContainer
height, width, x, yFields inherited from class BaseInnerViewContainer
preserveAspectRatio, viewBox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull AnimationPeriodvoidbuild(@NotNull AttributeNode attributeNode) @Nullable ClipPathclipPath()protected @NotNull Overflow@Nullable Filterfilter()boolean@Nullable Maskmask()protected @NotNull Point2DouterLocation(@NotNull MeasureContext context) voidrender(@NotNull RenderContext context, @NotNull Output output) protected voidrenderWithCurrentViewBox(@NotNull RenderContext context, @NotNull Output output) booleanboolean@NotNull FloatSizesizeForTopLevel(float em, float ex) @NotNull StringtagName()@NotNull Coordinate<LengthValue> Methods inherited from class CommonInnerViewContainer
anchorLocation, isVisible, sizeMethods inherited from class BaseInnerViewContainer
createInnerContext, renderWithSize, renderWithSize, staticViewBox, viewBoxMethods inherited from class CommonRenderableContainerNode
children, contextDelegate, doAdd, geometryContextDelegateMethods inherited from class BaseContainerNode
acceptChild, addChild, isAcceptableTypeMethods inherited from class AbstractSVGNode
addContent, id, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
addChild, children, childrenOfTypeMethods inherited from interface HasContext.ByDelegate
fontRenderContext, fontSpec, paintContextMethods inherited from interface HasGeometryContext.ByDelegate
transform, transformBoxMethods inherited from interface HasShape
elementBounds, elementShapeMethods inherited from interface Renderable
parseIsVisible, requiresInstantiationMethods inherited from interface ShapedContainer
untransformedElementBounds, untransformedElementShapeMethods inherited from interface SVGNode
addContent, idMethods inherited from interface Transformable
applyTransform, effectiveTransform, transformShape
-
Field Details
-
TAG
- See Also:
-
TOP_LEVEL_TRANSFORM_ORIGIN
-
FALLBACK_WIDTH
private static final float FALLBACK_WIDTH- See Also:
-
FALLBACK_HEIGHT
private static final float FALLBACK_HEIGHT- See Also:
-
isTopLevel
private boolean isTopLevel -
inNonRootMode
private boolean inNonRootMode -
animationPeriod
-
-
Constructor Details
-
SVG
public SVG()
-
-
Method Details
-
tagName
-
isTopLevel
public boolean isTopLevel() -
animationPeriod
-
shouldTransform
public boolean shouldTransform() -
clipPath
-
mask
-
filter
-
build
- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classCommonInnerViewContainer
-
outerLocation
- Overrides:
outerLocationin classCommonInnerViewContainer
-
transformOrigin
-
defaultOverflow
- Specified by:
defaultOverflowin classBaseInnerViewContainer
-
sizeForTopLevel
-
shouldEstablishChildContext
public boolean shouldEstablishChildContext() -
renderWithCurrentViewBox
protected void renderWithCurrentViewBox(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output) - Overrides:
renderWithCurrentViewBoxin classBaseInnerViewContainer
-
render
- Specified by:
renderin interfaceRenderable- Overrides:
renderin classBaseInnerViewContainer
-