Package com.github.weisj.jsvg.nodes
Class Image
- 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 Length
height
private UIFuture<RenderableResource>
imgResource
private static java.util.logging.Logger
LOGGER
private Overflow
overflow
private PreserveAspectRatio
preserveAspectRatio
static java.lang.String
TAG
private Length
width
private Length
x
private Length
y
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(@NotNull AttributeNode attributeNode)
private @Nullable RenderableResource
fetchImage(@NotNull RenderContext context)
boolean
isVisible(@NotNull RenderContext context)
void
render(@NotNull RenderContext context, @NotNull Output output)
@NotNull java.lang.String
tagName()
-
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, 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, 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 UIFuture<RenderableResource> imgResource
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
isVisible
public boolean isVisible(@NotNull @NotNull RenderContext context)
- Specified by:
isVisible
in interfaceRenderable
- Overrides:
isVisible
in classRenderableSVGNode
-
build
public void build(@NotNull @NotNull AttributeNode attributeNode)
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classRenderableSVGNode
-
fetchImage
@Nullable private @Nullable RenderableResource fetchImage(@NotNull @NotNull RenderContext context)
-
render
public void render(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)
-
-