Class SVGResource
- java.lang.Object
-
- com.github.weisj.jsvg.parser.resources.SVGResource
-
- All Implemented Interfaces:
RenderableResource
public class SVGResource extends java.lang.Object implements RenderableResource
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull SVGDocument
document
-
Constructor Summary
Constructors Constructor Description SVGResource(@NotNull SVGDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull FloatSize
intrinsicSize(@NotNull RenderContext context)
void
render(@NotNull Output output, @NotNull RenderContext context, @NotNull java.awt.geom.AffineTransform imgTransform)
-
-
-
Field Detail
-
document
@NotNull private final @NotNull SVGDocument document
-
-
Constructor Detail
-
SVGResource
public SVGResource(@NotNull @NotNull SVGDocument document)
-
-
Method Detail
-
intrinsicSize
@NotNull public @NotNull FloatSize intrinsicSize(@NotNull @NotNull RenderContext context)
- Specified by:
intrinsicSize
in interfaceRenderableResource
-
render
public void render(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull java.awt.geom.AffineTransform imgTransform)
- Specified by:
render
in interfaceRenderableResource
-
-