- java.lang.Object
-
- com.github.weisj.jsvg.renderer.impl.NodeRenderer
-
public final class NodeRenderer extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNodeRenderer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidapplyTransform(@NotNull Renderable renderable, @NotNull Output childOutput, @NotNull RenderContext childContext, @NotNull ElementBounds elementBounds)private static booleancheckInstantiation(@NotNull SVGNode node, @Nullable Instantiator instantiator, @NotNull Renderable renderable)static @NotNull RenderContextcreateChildContext(@NotNull Renderable node, @NotNull RenderContext context, @Nullable Instantiator instantiator)private static @Nullable InfocreateRenderInfo(@NotNull SVGNode node, @NotNull RenderContext context, @NotNull Output output, @Nullable Instantiator instantiator)static voidrenderNode(@NotNull SVGNode node, @NotNull RenderContext context, @NotNull Output output)static voidrenderNode(@NotNull SVGNode node, @NotNull RenderContext context, @NotNull Output output, @Nullable Instantiator instantiator)static voidrenderWithSize(@NotNull BaseInnerViewContainer node, @NotNull FloatSize size, @NotNull RenderContext context, @NotNull Output output, @Nullable Instantiator instantiator)private static @Nullable ClipPathsetupClip(@NotNull HasClip renderable, @NotNull ElementBounds elementBounds, @NotNull RenderContext childContext, @NotNull Output childOutput)private static @Nullable FiltersetupFilter(@NotNull HasFilter hasFilter, @NotNull Output childOutput)static @NotNull RenderContextsetupInnerViewRenderContext(@NotNull ViewBox viewBox, @NotNull RenderContext context, boolean inheritAttributes)private static @Nullable MasksetupMask(HasClip renderable, ElementBounds elementBounds, Output childOutput, RenderContext childContext)static @NotNull RenderContextsetupRenderContext(@NotNull java.lang.Object node, @NotNull RenderContext context)private static @NotNull RenderContextsetupRenderContext(@Nullable Instantiator instantiator, @NotNull java.lang.Object node, @NotNull RenderContext context)private static booleanuseAccurateMasking(@NotNull Output output)
-
-
-
Method Detail
-
renderNode
public static void renderNode(@NotNull @NotNull SVGNode node, @NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)
-
renderNode
public static void renderNode(@NotNull @NotNull SVGNode node, @NotNull @NotNull RenderContext context, @NotNull @NotNull Output output, @Nullable @Nullable Instantiator instantiator)
-
renderWithSize
public static void renderWithSize(@NotNull @NotNull BaseInnerViewContainer node, @NotNull @NotNull FloatSize size, @NotNull @NotNull RenderContext context, @NotNull @NotNull Output output, @Nullable @Nullable Instantiator instantiator)
-
createChildContext
@NotNull public static @NotNull RenderContext createChildContext(@NotNull @NotNull Renderable node, @NotNull @NotNull RenderContext context, @Nullable @Nullable Instantiator instantiator)
-
createRenderInfo
@Nullable private static @Nullable Info createRenderInfo(@NotNull @NotNull SVGNode node, @NotNull @NotNull RenderContext context, @NotNull @NotNull Output output, @Nullable @Nullable Instantiator instantiator)
-
applyTransform
private static void applyTransform(@NotNull @NotNull Renderable renderable, @NotNull @NotNull Output childOutput, @NotNull @NotNull RenderContext childContext, @NotNull @NotNull ElementBounds elementBounds)
-
checkInstantiation
private static boolean checkInstantiation(@NotNull @NotNull SVGNode node, @Nullable @Nullable Instantiator instantiator, @NotNull @NotNull Renderable renderable)
-
setupClip
@Nullable private static @Nullable ClipPath setupClip(@NotNull @NotNull HasClip renderable, @NotNull @NotNull ElementBounds elementBounds, @NotNull @NotNull RenderContext childContext, @NotNull @NotNull Output childOutput)
-
setupMask
@Nullable private static @Nullable Mask setupMask(HasClip renderable, ElementBounds elementBounds, Output childOutput, RenderContext childContext)
-
setupFilter
@Nullable private static @Nullable Filter setupFilter(@NotNull @NotNull HasFilter hasFilter, @NotNull @NotNull Output childOutput)
-
useAccurateMasking
private static boolean useAccurateMasking(@NotNull @NotNull Output output)
-
setupRenderContext
@NotNull public static @NotNull RenderContext setupRenderContext(@NotNull @NotNull java.lang.Object node, @NotNull @NotNull RenderContext context)
-
setupRenderContext
@NotNull private static @NotNull RenderContext setupRenderContext(@Nullable @Nullable Instantiator instantiator, @NotNull @NotNull java.lang.Object node, @NotNull @NotNull RenderContext context)
-
setupInnerViewRenderContext
@NotNull public static @NotNull RenderContext setupInnerViewRenderContext(@NotNull @NotNull ViewBox viewBox, @NotNull @NotNull RenderContext context, boolean inheritAttributes)
-
-