Package com.github.weisj.jsvg
Class SVGDocument
- java.lang.Object
-
- com.github.weisj.jsvg.SVGDocument
-
public final class SVGDocument extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SVGDocument(@NotNull SVG root)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private float
computePlatformFontSize(@NotNull PlatformSupport platformSupport, @NotNull Output output)
@NotNull java.awt.Shape
computeShape()
@NotNull java.awt.Shape
computeShape(@Nullable ViewBox viewBox)
private @NotNull RenderContext
prepareRenderContext(@NotNull PlatformSupport platformSupport, @NotNull Output output, @Nullable ViewBox bounds)
void
render(@Nullable java.awt.Component component, @NotNull java.awt.Graphics2D graphics2D, @Nullable ViewBox bounds)
void
render(@Nullable javax.swing.JComponent component, @NotNull java.awt.Graphics2D g)
void
render(@Nullable javax.swing.JComponent component, @NotNull java.awt.Graphics2D graphics2D, @Nullable ViewBox bounds)
Deprecated.void
renderWithPlatform(@NotNull PlatformSupport platformSupport, @NotNull Output output, @Nullable ViewBox bounds)
void
renderWithPlatform(@NotNull PlatformSupport platformSupport, @NotNull java.awt.Graphics2D graphics2D, @Nullable ViewBox bounds)
private void
setSVGRenderingHint(@NotNull java.awt.Graphics2D g, java.awt.RenderingHints.Key key, @NotNull java.lang.Object o)
private void
setupSVGRenderingHints(@NotNull java.awt.Graphics2D g)
@NotNull FloatSize
size()
@NotNull ViewBox
viewBox()
-
-
-
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
public 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)
-
render
public void render(@Nullable @Nullable javax.swing.JComponent component, @NotNull @NotNull java.awt.Graphics2D g)
-
render
@Deprecated public void render(@Nullable @Nullable javax.swing.JComponent component, @NotNull @NotNull java.awt.Graphics2D graphics2D, @Nullable @Nullable ViewBox bounds)
Deprecated.
-
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)
-
prepareRenderContext
@NotNull private @NotNull RenderContext prepareRenderContext(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Output output, @Nullable @Nullable ViewBox bounds)
-
setupSVGRenderingHints
private void setupSVGRenderingHints(@NotNull @NotNull java.awt.Graphics2D g)
-
setSVGRenderingHint
private void setSVGRenderingHint(@NotNull @NotNull java.awt.Graphics2D g, @NotNull java.awt.RenderingHints.Key key, @NotNull @NotNull java.lang.Object o)
-
-