- java.lang.Object
-
- 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.ByDelegate
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext
HasGeometryContext.ByDelegate
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
HasShape.Box
-
-
Field Summary
Fields Modifier and Type Field Description private AnimationPeriodanimationPeriodprivate static floatFALLBACK_HEIGHTprivate static floatFALLBACK_WIDTHprivate booleaninNonRootModeprivate booleanisTopLevelstatic java.lang.StringTAGprivate static @NotNull Coordinate<LengthValue>TOP_LEVEL_TRANSFORM_ORIGIN-
Fields inherited from class com.github.weisj.jsvg.nodes.container.CommonInnerViewContainer
height, width, x, y
-
Fields inherited from class com.github.weisj.jsvg.nodes.container.BaseInnerViewContainer
preserveAspectRatio, viewBox
-
-
Constructor Summary
Constructors Constructor Description SVG()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AnimationPeriodanimationPeriod()voidbuild(@NotNull AttributeNode attributeNode)@Nullable ClipPathclipPath()protected @NotNull OverflowdefaultOverflow()@Nullable Filterfilter()booleanisTopLevel()@Nullable Maskmask()protected @NotNull java.awt.geom.Point2DouterLocation(@NotNull MeasureContext context)voidrender(@NotNull RenderContext context, @NotNull Output output)protected voidrenderWithCurrentViewBox(@NotNull RenderContext context, @NotNull Output output)booleanshouldEstablishChildContext()booleanshouldTransform()@NotNull FloatSizesizeForTopLevel(float em, float ex)@NotNull java.lang.StringtagName()@NotNull Coordinate<LengthValue>transformOrigin()-
Methods inherited from class com.github.weisj.jsvg.nodes.container.CommonInnerViewContainer
anchorLocation, isVisible, size
-
Methods inherited from class com.github.weisj.jsvg.nodes.container.BaseInnerViewContainer
createInnerContext, renderWithSize, renderWithSize, staticViewBox, viewBox
-
Methods inherited from class com.github.weisj.jsvg.nodes.container.CommonRenderableContainerNode
children, contextDelegate, doAdd, geometryContextDelegate
-
Methods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
acceptChild, addChild, isAcceptableType
-
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Container
addChild, children, childrenOfType
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext.ByDelegate
fontRenderContext, fontSpec, paintContext
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
transform, transformBox
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
elementBounds, elementShape
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Renderable
parseIsVisible, requiresInstantiation
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.ShapedContainer
untransformedElementBounds, untransformedElementShape
-
Methods inherited from interface com.github.weisj.jsvg.nodes.SVGNode
addContent, id
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Transformable
applyTransform, effectiveTransform, transformShape
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
TOP_LEVEL_TRANSFORM_ORIGIN
@NotNull private static final @NotNull Coordinate<LengthValue> TOP_LEVEL_TRANSFORM_ORIGIN
-
FALLBACK_WIDTH
private static final float FALLBACK_WIDTH
- See Also:
- Constant Field Values
-
FALLBACK_HEIGHT
private static final float FALLBACK_HEIGHT
- See Also:
- Constant Field Values
-
isTopLevel
private boolean isTopLevel
-
inNonRootMode
private boolean inNonRootMode
-
animationPeriod
private AnimationPeriod animationPeriod
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
isTopLevel
public boolean isTopLevel()
-
animationPeriod
@NotNull public @NotNull AnimationPeriod animationPeriod()
-
shouldTransform
public boolean shouldTransform()
-
clipPath
@Nullable public @Nullable ClipPath clipPath()
-
mask
@Nullable public @Nullable Mask mask()
-
filter
@Nullable public @Nullable Filter filter()
-
build
public void build(@NotNull @NotNull AttributeNode attributeNode)- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classCommonInnerViewContainer
-
outerLocation
@NotNull protected @NotNull java.awt.geom.Point2D outerLocation(@NotNull @NotNull MeasureContext context)- Overrides:
outerLocationin classCommonInnerViewContainer
-
transformOrigin
@NotNull public @NotNull Coordinate<LengthValue> transformOrigin()
-
defaultOverflow
@NotNull protected @NotNull Overflow defaultOverflow()
- Specified by:
defaultOverflowin classBaseInnerViewContainer
-
sizeForTopLevel
@NotNull public @NotNull FloatSize sizeForTopLevel(float em, float ex)
-
shouldEstablishChildContext
public boolean shouldEstablishChildContext()
-
renderWithCurrentViewBox
protected void renderWithCurrentViewBox(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)- Overrides:
renderWithCurrentViewBoxin classBaseInnerViewContainer
-
render
public void render(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)- Specified by:
renderin interfaceRenderable- Overrides:
renderin classBaseInnerViewContainer
-
-