Package com.github.weisj.jsvg.nodes
Class Use
- java.lang.Object
-
- com.github.weisj.jsvg.nodes.AbstractSVGNode
-
- com.github.weisj.jsvg.nodes.RenderableSVGNode
-
- com.github.weisj.jsvg.nodes.Use
-
- All Implemented Interfaces:
HasClip
,HasContext
,HasFillRule
,HasFilter
,HasFontContext
,HasFontRenderContext
,HasGeometryContext
,HasGeometryContext.ByDelegate
,HasPaintContext
,HasShape
,Instantiator
,Renderable
,Transformable
,SVGNode
@ElementCategories({Graphic,GraphicsReferencing,Structural}) @PermittedContent(categories={Animation,Descriptive}) public final class Use extends RenderableSVGNode implements HasContext, HasShape, Instantiator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext
HasContext.ByDelegate
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext
HasGeometryContext.ByDelegate
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
HasShape.Box
-
-
Field Summary
Fields Modifier and Type Field Description private FillRule
fillRule
private FontRenderContext
fontRenderContext
private AttributeFontSpec
fontSpec
private Length
height
private PaintContext
paintContext
private @Nullable SVGNode
referencedNode
static java.lang.String
TAG
private Length
width
private Length
x
private Length
y
-
Constructor Summary
Constructors Constructor Description Use()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(@NotNull AttributeNode attributeNode)
boolean
canInstantiate(@NotNull SVGNode node)
@NotNull FillRule
fillRule()
@NotNull FontRenderContext
fontRenderContext()
@NotNull AttributeFontSpec
fontSpec()
boolean
isVisible(@NotNull RenderContext context)
@NotNull PaintContext
paintContext()
@Nullable SVGNode
referencedNode()
void
render(@NotNull RenderContext context, @NotNull Output output)
@NotNull java.lang.String
tagName()
java.lang.String
toString()
@NotNull java.awt.geom.Rectangle2D
untransformedElementBounds(@NotNull RenderContext context, HasShape.Box box)
@NotNull java.awt.Shape
untransformedElementShape(@NotNull RenderContext context)
-
Methods inherited from class com.github.weisj.jsvg.nodes.RenderableSVGNode
geometryContextDelegate
-
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id
-
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.HasShape
elementBounds, elementShape
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Instantiator
createContextAttributes
-
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
-
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
-
referencedNode
@Nullable private @Nullable SVGNode referencedNode
-
paintContext
private PaintContext paintContext
-
fontRenderContext
private FontRenderContext fontRenderContext
-
fontSpec
private AttributeFontSpec fontSpec
-
fillRule
private FillRule fillRule
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
referencedNode
@Nullable public @Nullable SVGNode referencedNode()
-
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
-
untransformedElementShape
@NotNull public @NotNull java.awt.Shape untransformedElementShape(@NotNull @NotNull RenderContext context)
- Specified by:
untransformedElementShape
in interfaceHasShape
-
untransformedElementBounds
@NotNull public @NotNull java.awt.geom.Rectangle2D untransformedElementBounds(@NotNull @NotNull RenderContext context, HasShape.Box box)
- Specified by:
untransformedElementBounds
in interfaceHasShape
-
paintContext
@NotNull public @NotNull PaintContext paintContext()
- Specified by:
paintContext
in interfaceHasPaintContext
-
fontRenderContext
@NotNull public @NotNull FontRenderContext fontRenderContext()
- Specified by:
fontRenderContext
in interfaceHasFontRenderContext
-
fontSpec
@NotNull public @NotNull AttributeFontSpec fontSpec()
- Specified by:
fontSpec
in interfaceHasFontContext
-
fillRule
@NotNull public @NotNull FillRule fillRule()
- Specified by:
fillRule
in interfaceHasFillRule
-
canInstantiate
public boolean canInstantiate(@NotNull @NotNull SVGNode node)
- Specified by:
canInstantiate
in interfaceInstantiator
-
render
public void render(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)
- Specified by:
render
in interfaceRenderable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractSVGNode
-
-