Package com.github.weisj.jsvg.nodes
Class SVG
- All Implemented Interfaces:
Container<SVGNode>,HasClip,HasContext,HasContext.ByDelegate,HasFillRule,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
FieldsFields 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 TypeMethodDescriptionvoidbuild(@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 Point2DtransformOrigin(@NotNull MeasureContext context) 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
fillRule, fontRenderContext, fontSpec, paintContextMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
transformMethods 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.prototype.Transformable
applyTransform, transformShape
-
Field Details
-
TAG
- See Also:
-
-
Constructor Details
-
SVG
public SVG()
-
-
Method Details
-
tagName
-
isTopLevel
public boolean isTopLevel() -
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
-