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.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
FieldsModifier and TypeFieldDescriptionprivate static final float
private static final float
private boolean
private boolean
static final String
private static final @NotNull Length
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(@NotNull AttributeNode attributeNode) @Nullable ClipPath
clipPath()
protected @NotNull Overflow
@Nullable Filter
filter()
boolean
@Nullable Mask
mask()
protected @NotNull Point2D
outerLocation
(@NotNull MeasureContext context) void
render
(@NotNull RenderContext context, @NotNull Output output) protected void
renderWithCurrentViewBox
(@NotNull RenderContext context, @NotNull Output output) boolean
boolean
@NotNull FloatSize
sizeForTopLevel
(float em, float ex) @NotNull String
tagName()
@NotNull Point2D
transformOrigin
(@NotNull MeasureContext context) 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
fillRule, fontRenderContext, fontSpec, paintContext
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
transform
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.prototype.Transformable
applyTransform, 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
-
-
Constructor Details
-
SVG
public SVG()
-
-
Method Details
-
tagName
-
isTopLevel
public boolean isTopLevel() -
shouldTransform
public boolean shouldTransform() -
clipPath
-
mask
-
filter
-
build
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classCommonInnerViewContainer
-
outerLocation
- Overrides:
outerLocation
in classCommonInnerViewContainer
-
transformOrigin
-
defaultOverflow
- Specified by:
defaultOverflow
in classBaseInnerViewContainer
-
sizeForTopLevel
-
shouldEstablishChildContext
public boolean shouldEstablishChildContext() -
renderWithCurrentViewBox
protected void renderWithCurrentViewBox(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output) - Overrides:
renderWithCurrentViewBox
in classBaseInnerViewContainer
-
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classBaseInnerViewContainer
-