- 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,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 FillRulefillRuleprivate FontRenderContextfontRenderContextprivate AttributeFontSpecfontSpecprivate Lengthheightprivate PaintContextpaintContextprivate @Nullable SVGNodereferencedNodestatic java.lang.StringTAGprivate Lengthwidthprivate Lengthxprivate Lengthy
-
Constructor Summary
Constructors Constructor Description Use()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(@NotNull AttributeNode attributeNode)booleancanInstantiate(@NotNull SVGNode node)@NotNull FontRenderContextfontRenderContext()@NotNull AttributeFontSpecfontSpec()booleanisVisible(@NotNull RenderContext context)@NotNull PaintContextpaintContext()@Nullable SVGNodereferencedNode()voidrender(@NotNull RenderContext context, @NotNull Output output)@NotNull java.lang.StringtagName()java.lang.StringtoString()@NotNull java.awt.geom.Rectangle2DuntransformedElementBounds(@NotNull RenderContext context, HasShape.Box box)@NotNull java.awt.ShapeuntransformedElementShape(@NotNull RenderContext context, HasShape.Box box)-
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, transformBox, 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.SVGNode
addContent, id
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Transformable
applyTransform, effectiveTransform, 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:
isVisiblein interfaceRenderable- Overrides:
isVisiblein classRenderableSVGNode
-
build
public void build(@NotNull @NotNull AttributeNode attributeNode)- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classRenderableSVGNode
-
untransformedElementShape
@NotNull public @NotNull java.awt.Shape untransformedElementShape(@NotNull @NotNull RenderContext context, HasShape.Box box)- Specified by:
untransformedElementShapein interfaceHasShape
-
untransformedElementBounds
@NotNull public @NotNull java.awt.geom.Rectangle2D untransformedElementBounds(@NotNull @NotNull RenderContext context, HasShape.Box box)- Specified by:
untransformedElementBoundsin interfaceHasShape
-
paintContext
@NotNull public @NotNull PaintContext paintContext()
- Specified by:
paintContextin interfaceHasPaintContext
-
fontRenderContext
@NotNull public @NotNull FontRenderContext fontRenderContext()
- Specified by:
fontRenderContextin interfaceHasFontRenderContext
-
fontSpec
@NotNull public @NotNull AttributeFontSpec fontSpec()
- Specified by:
fontSpecin interfaceHasFontContext
-
canInstantiate
public boolean canInstantiate(@NotNull @NotNull SVGNode node)- Specified by:
canInstantiatein interfaceInstantiator
-
render
public void render(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)- Specified by:
renderin interfaceRenderable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractSVGNode
-
-