- java.lang.Object
-
- com.github.weisj.jsvg.SVGDocument
-
public final class SVGDocument extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSVGDocument(@NotNull SVG root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Animationanimation()private floatcomputePlatformFontSize(@NotNull PlatformSupport platformSupport, @NotNull Output output)@NotNull java.awt.ShapecomputeShape()@NotNull java.awt.ShapecomputeShape(@Nullable ViewBox viewBox)booleanisAnimated()private @NotNull RenderContextprepareRenderContext(@NotNull PlatformSupport platformSupport, @NotNull Output output, @Nullable ViewBox bounds, @Nullable AnimationState animationState)voidrender(@Nullable java.awt.Component component, @NotNull java.awt.Graphics2D graphics2D, @Nullable ViewBox bounds)voidrender(@Nullable javax.swing.JComponent component, @NotNull java.awt.Graphics2D g)voidrenderWithPlatform(@NotNull PlatformSupport platformSupport, @NotNull Output output, @Nullable ViewBox bounds)voidrenderWithPlatform(@NotNull PlatformSupport platformSupport, @NotNull Output output, @Nullable ViewBox bounds, @Nullable AnimationState animationState)voidrenderWithPlatform(@NotNull PlatformSupport platformSupport, @NotNull java.awt.Graphics2D graphics2D, @Nullable ViewBox bounds)@NotNull FloatSizesize()@NotNull ViewBoxviewBox()
-
-
-
Field Detail
-
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
-
root
@NotNull private final @NotNull SVG root
-
size
@NotNull private final @NotNull FloatSize size
-
-
Constructor Detail
-
SVGDocument
private SVGDocument(@NotNull @NotNull SVG root)
-
-
Method Detail
-
size
@NotNull public @NotNull FloatSize size()
-
viewBox
@NotNull public @NotNull ViewBox viewBox()
-
computeShape
@NotNull public @NotNull java.awt.Shape computeShape()
-
computeShape
@NotNull public @NotNull java.awt.Shape computeShape(@Nullable @Nullable ViewBox viewBox)
-
isAnimated
public boolean isAnimated()
-
animation
@NotNull public @NotNull Animation animation()
-
render
public void render(@Nullable @Nullable javax.swing.JComponent component, @NotNull @NotNull java.awt.Graphics2D g)
-
render
public void render(@Nullable @Nullable java.awt.Component component, @NotNull @NotNull java.awt.Graphics2D graphics2D, @Nullable @Nullable ViewBox bounds)
-
computePlatformFontSize
private float computePlatformFontSize(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Output output)
-
renderWithPlatform
public void renderWithPlatform(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull java.awt.Graphics2D graphics2D, @Nullable @Nullable ViewBox bounds)
-
renderWithPlatform
public void renderWithPlatform(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Output output, @Nullable @Nullable ViewBox bounds)
-
renderWithPlatform
public void renderWithPlatform(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Output output, @Nullable @Nullable ViewBox bounds, @Nullable @Nullable AnimationState animationState)
-
prepareRenderContext
@NotNull private @NotNull RenderContext prepareRenderContext(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Output output, @Nullable @Nullable ViewBox bounds, @Nullable @Nullable AnimationState animationState)
-
-