- 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 com.github.weisj.jsvg.nodes.prototype.HasContext
HasContext.ByDelegateNested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext
HasGeometryContext.ByDelegateNested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.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 com.github.weisj.jsvg.nodes.container.CommonInnerViewContainer
height, width, x, yFields inherited from class com.github.weisj.jsvg.nodes.container.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 com.github.weisj.jsvg.nodes.container.CommonInnerViewContainer
anchorLocation, isVisible, sizeMethods inherited from class com.github.weisj.jsvg.nodes.container.BaseInnerViewContainer
createInnerContext, renderWithSize, renderWithSize, staticViewBox, viewBoxMethods inherited from class com.github.weisj.jsvg.nodes.container.CommonRenderableContainerNode
children, contextDelegate, doAdd, geometryContextDelegateMethods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
acceptChild, addChild, isAcceptableTypeMethods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Container
addChild, children, childrenOfTypeMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext.ByDelegate
fontRenderContext, fontSpec, paintContextMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
transform, transformBoxMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
elementBounds, elementShapeMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Renderable
parseIsVisible, requiresInstantiationMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.ShapedContainer
untransformedElementBounds, untransformedElementShapeMethods inherited from interface com.github.weisj.jsvg.nodes.SVGNode
addContent, idMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.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
-