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
FieldsModifier and TypeFieldDescriptionprivate FillRule
private FontRenderContext
private AttributeFontSpec
private Length
private PaintContext
private @Nullable SVGNode
static final String
private Length
private Length
private Length
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(@NotNull AttributeNode attributeNode) boolean
canInstantiate
(@NotNull SVGNode node) @NotNull FillRule
fillRule()
@NotNull FontRenderContext
@NotNull AttributeFontSpec
fontSpec()
boolean
isVisible
(@NotNull RenderContext context) @NotNull PaintContext
@Nullable SVGNode
void
render
(@NotNull RenderContext context, @NotNull Output output) @NotNull String
tagName()
toString()
@NotNull Rectangle2D
untransformedElementBounds
(@NotNull RenderContext context, HasShape.Box box) @NotNull 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 Details
-
TAG
- See Also:
-
x
-
y
-
width
-
height
-
referencedNode
-
paintContext
-
fontRenderContext
-
fontSpec
-
fillRule
-
-
Constructor Details
-
Use
public Use()
-
-
Method Details
-
tagName
-
referencedNode
-
isVisible
- Specified by:
isVisible
in interfaceRenderable
- Overrides:
isVisible
in classRenderableSVGNode
-
build
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classRenderableSVGNode
-
untransformedElementShape
- Specified by:
untransformedElementShape
in interfaceHasShape
-
untransformedElementBounds
@NotNull public @NotNull Rectangle2D untransformedElementBounds(@NotNull @NotNull RenderContext context, HasShape.Box box) - Specified by:
untransformedElementBounds
in interfaceHasShape
-
paintContext
- Specified by:
paintContext
in interfaceHasPaintContext
-
fontRenderContext
- Specified by:
fontRenderContext
in interfaceHasFontRenderContext
-
fontSpec
- Specified by:
fontSpec
in interfaceHasFontContext
-
fillRule
- Specified by:
fillRule
in interfaceHasFillRule
-
canInstantiate
- Specified by:
canInstantiate
in interfaceInstantiator
-
render
- Specified by:
render
in interfaceRenderable
-
toString
- Overrides:
toString
in classAbstractSVGNode
-