- java.lang.Object
-
- com.github.weisj.jsvg.nodes.AbstractSVGNode
-
- com.github.weisj.jsvg.nodes.RenderableSVGNode
-
- com.github.weisj.jsvg.nodes.Image
-
- All Implemented Interfaces:
HasClip,HasFilter,HasGeometryContext,HasGeometryContext.ByDelegate,Renderable,Transformable,SVGNode
@ElementCategories({Graphic,GraphicsReferencing}) @PermittedContent(categories={Animation,Descriptive}) public final class Image extends RenderableSVGNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext
HasGeometryContext.ByDelegate
-
-
Field Summary
Fields Modifier and Type Field Description private Lengthheightprivate ResourceSupplier<RenderableResource>imgResourceprivate static java.util.logging.LoggerLOGGERprivate Overflowoverflowprivate PreserveAspectRatiopreserveAspectRatiostatic java.lang.StringTAGprivate Lengthwidthprivate Lengthxprivate Lengthy
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(@NotNull AttributeNode attributeNode)private @Nullable RenderableResourcefetchImage(@NotNull RenderContext context)booleanisVisible(@NotNull RenderContext context)voidrender(@NotNull RenderContext context, @NotNull Output output)@NotNull java.lang.StringtagName()-
Methods inherited from class com.github.weisj.jsvg.nodes.RenderableSVGNode
geometryContextDelegate
-
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.HasGeometryContext.ByDelegate
clipPath, filter, mask, transform, transformBox, transformOrigin
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Renderable
parseIsVisible, requiresInstantiation, shouldEstablishChildContext
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Transformable
applyTransform, effectiveTransform, shouldTransform, transformShape
-
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
x
private Length x
-
y
private Length y
-
width
private Length width
-
height
private Length height
-
preserveAspectRatio
private PreserveAspectRatio preserveAspectRatio
-
overflow
private Overflow overflow
-
imgResource
private ResourceSupplier<RenderableResource> imgResource
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
isVisible
public boolean isVisible(@NotNull @NotNull RenderContext context)- Specified by:
isVisiblein interfaceRenderable- Overrides:
isVisiblein classRenderableSVGNode
-
build
public void build(@NotNull @NotNull AttributeNode attributeNode)- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classRenderableSVGNode
-
fetchImage
@Nullable private @Nullable RenderableResource fetchImage(@NotNull @NotNull RenderContext context)
-
render
public void render(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)
-
-