Package com.github.weisj.jsvg.nodes
Class ShapeNode
java.lang.Object
com.github.weisj.jsvg.nodes.AbstractSVGNode
com.github.weisj.jsvg.nodes.RenderableSVGNode
com.github.weisj.jsvg.nodes.ShapeNode
- All Implemented Interfaces:
HasClip,HasFilter,HasFontContext,HasGeometryContext,HasGeometryContext.ByDelegate,HasPaintContext,HasShape,HasVectorEffects,Instantiator,Renderable,Transformable,SVGNode
public abstract class ShapeNode
extends RenderableSVGNode
implements HasShape, HasPaintContext, HasFontContext, HasVectorEffects, Instantiator
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext
HasGeometryContext.ByDelegateNested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
HasShape.Box -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidbuild(@NotNull AttributeNode attributeNode) protected abstract @NotNull MeasurableShapebuildShape(@NotNull AttributeNode attributeNode) booleancanInstantiate(@NotNull SVGNode node) @NotNull Mutator<MeasurableFontSpec>fontSpec()booleanisVisible(@NotNull RenderContext context) @NotNull PaintContextfinal voidrender(@NotNull RenderContext context, @NotNull Output output) @NotNull MeasurableShapeshape()protected boolean@NotNull Rectangle2DuntransformedElementBounds(@NotNull RenderContext context, HasShape.Box box) @NotNull ShapeuntransformedElementShape(@NotNull RenderContext context) @NotNull Set<VectorEffect>Methods inherited from class com.github.weisj.jsvg.nodes.RenderableSVGNode
geometryContextDelegateMethods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
clipPath, filter, mask, transform, transformOriginMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
elementBounds, elementShapeMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Instantiator
createContextAttributesMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Renderable
parseIsVisible, requiresInstantiation, shouldEstablishChildContextMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Transformable
applyTransform, shouldTransform, transformShape
-
Constructor Details
-
ShapeNode
public ShapeNode()
-
-
Method Details
-
paintContext
- Specified by:
paintContextin interfaceHasPaintContext
-
fontSpec
- Specified by:
fontSpecin interfaceHasFontContext
-
shape
-
vectorEffects
- Specified by:
vectorEffectsin interfaceHasVectorEffects
-
build
- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classRenderableSVGNode
-
buildShape
@NotNull protected abstract @NotNull MeasurableShape buildShape(@NotNull @NotNull AttributeNode attributeNode) -
untransformedElementShape
- Specified by:
untransformedElementShapein interfaceHasShape
-
untransformedElementBounds
@NotNull public @NotNull Rectangle2D untransformedElementBounds(@NotNull @NotNull RenderContext context, HasShape.Box box) - Specified by:
untransformedElementBoundsin interfaceHasShape
-
isVisible
- Specified by:
isVisiblein interfaceRenderable- Overrides:
isVisiblein classRenderableSVGNode
-
canInstantiate
- Specified by:
canInstantiatein interfaceInstantiator
-
render
- Specified by:
renderin interfaceRenderable
-
shouldPaintStartEndMarkersInMiddle
protected boolean shouldPaintStartEndMarkersInMiddle()
-