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 HasGeometryContext
HasGeometryContext.ByDelegateNested classes/interfaces inherited from interface HasShape
HasShape.Box -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FontSizeprivate Lengthprivate Markerprivate Markerprivate Markerprivate PaintContextprivate Lengthprivate SVGShapeprivate Set<VectorEffect> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidbuild(@NotNull AttributeNode attributeNode) protected abstract @NotNull SVGShapebuildShape(@NotNull AttributeNode attributeNode) booleancanInstantiate(@NotNull SVGNode node) private @NotNull StrokecomputeEffectiveStroke(@NotNull RenderContext context) @NotNull Mutator<MeasurableFontSpec> fontSpec()@NotNull PaintContextfinal voidrender(@NotNull RenderContext context, @NotNull Output output) @NotNull SVGShapeshape()protected boolean@NotNull Rectangle2DuntransformedElementBounds(@NotNull RenderContext context, HasShape.Box box) @NotNull ShapeuntransformedElementShape(@NotNull RenderContext context, HasShape.Box box) @NotNull Set<VectorEffect> Methods inherited from class RenderableSVGNode
geometryContextDelegate, isVisibleMethods inherited from class AbstractSVGNode
addContent, id, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HasGeometryContext.ByDelegate
clipPath, filter, mask, transform, transformBox, transformOriginMethods inherited from interface HasShape
elementBounds, elementShapeMethods inherited from interface Instantiator
createContextAttributesMethods inherited from interface Renderable
parseIsVisible, requiresInstantiation, shouldEstablishChildContextMethods inherited from interface SVGNode
addContent, id, tagNameMethods inherited from interface Transformable
applyTransform, effectiveTransform, shouldTransform, transformShape
-
Field Details
-
paintContext
-
fontSize
-
fontSizeAdjust
-
pathLength
-
shape
-
markerStart
-
markerMid
-
markerEnd
-
vectorEffects
-
-
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 SVGShape buildShape(@NotNull @NotNull AttributeNode attributeNode) -
untransformedElementShape
@NotNull public @NotNull Shape untransformedElementShape(@NotNull @NotNull RenderContext context, HasShape.Box box) - Specified by:
untransformedElementShapein interfaceHasShape
-
untransformedElementBounds
@NotNull public @NotNull Rectangle2D untransformedElementBounds(@NotNull @NotNull RenderContext context, HasShape.Box box) - Specified by:
untransformedElementBoundsin interfaceHasShape
-
canInstantiate
- Specified by:
canInstantiatein interfaceInstantiator
-
computeEffectiveStroke
-
render
- Specified by:
renderin interfaceRenderable
-
shouldPaintStartEndMarkersInMiddle
protected boolean shouldPaintStartEndMarkersInMiddle()
-