- All Implemented Interfaces:
Container<SVGNode>,HasClip,HasContext,HasContext.ByDelegate,HasFilter,HasFontContext,HasFontRenderContext,HasGeometryContext,HasGeometryContext.ByDelegate,HasPaintContext,HasShape,Instantiator,Renderable,ShapedContainer<SVGNode>,Transformable,SVGNode,SVGPaint
@ElementCategories(Container)
@PermittedContent(categories={Animation,Descriptive,Shape,Structural,Gradient},
anyOf={Anchor.class,ClipPath.class,Filter.class,Image.class,Mask.class,Marker.class,Pattern.class,Style.class,Text.class,View.class})
public final class Pattern
extends BaseInnerViewContainer
implements SVGPaint, ShapedContainer<SVGNode>, Instantiator
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext
HasContext.ByDelegateNested 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Lengthprivate UnitTypeprivate TransformValueprivate UnitTypestatic final Stringprivate Lengthprivate Lengthprivate LengthFields inherited from class com.github.weisj.jsvg.nodes.container.BaseInnerViewContainer
preserveAspectRatio, viewBox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable Point2DanchorLocation(@NotNull MeasureContext context) voidbuild(@NotNull AttributeNode attributeNode) booleancanInstantiate(@NotNull SVGNode node) protected @NotNull OverflowvoiddrawShape(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape, @Nullable Rectangle2D bounds) voidfillShape(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape, @Nullable Rectangle2D bounds) booleanisVisible(@NotNull RenderContext context) protected @NotNull Point2DouterLocation(@NotNull MeasureContext context) private @NotNull PaintpaintForBounds(@NotNull Output output, @NotNull RenderContext context, @NotNull Rectangle2D bounds) private @Nullable PatternparseTemplate(@NotNull AttributeNode attributeNode) booleanIndicated whether the element can only be rendered through means of instantiation e.g.@NotNull FloatSizesize(@NotNull RenderContext context) @NotNull StringtagName()Methods inherited from class com.github.weisj.jsvg.nodes.container.BaseInnerViewContainer
createInnerContext, render, renderWithCurrentViewBox, renderWithSize, renderWithSize, staticViewBox, viewBoxMethods inherited from class com.github.weisj.jsvg.nodes.container.CommonRenderableContainerNode
children, contextDelegate, doAdd, geometryContextDelegateMethods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
acceptChild, addChild, isAcceptableTypeMethods 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.Container
addChild, children, childrenOfTypeMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext.ByDelegate
fontRenderContext, fontSpec, paintContextMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
clipPath, filter, mask, transform, transformBox, 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, shouldEstablishChildContextMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.ShapedContainer
untransformedElementBounds, untransformedElementShapeMethods inherited from interface com.github.weisj.jsvg.nodes.SVGNode
addContent, idMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Transformable
applyTransform, effectiveTransform, shouldTransform, transformShape
-
Field Details
-
TAG
- See Also:
-
x
-
y
-
width
-
height
-
patternUnits
-
patternContentUnits
-
patternTransform
-
-
Constructor Details
-
Pattern
public Pattern()
-
-
Method Details
-
tagName
-
outerLocation
- Specified by:
outerLocationin classBaseInnerViewContainer
-
anchorLocation
- Specified by:
anchorLocationin classBaseInnerViewContainer
-
defaultOverflow
- Specified by:
defaultOverflowin classBaseInnerViewContainer
-
size
- Specified by:
sizein classBaseInnerViewContainer
-
build
- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classBaseInnerViewContainer
-
parseTemplate
-
isVisible
- Specified by:
isVisiblein interfaceRenderable- Specified by:
isVisiblein interfaceSVGPaint- Overrides:
isVisiblein classCommonRenderableContainerNode
-
fillShape
public void fillShape(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Shape shape, @Nullable @Nullable Rectangle2D bounds) -
drawShape
public void drawShape(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Shape shape, @Nullable @Nullable Rectangle2D bounds) -
paintForBounds
@NotNull private @NotNull Paint paintForBounds(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Rectangle2D bounds) -
requiresInstantiation
public boolean requiresInstantiation()Description copied from interface:RenderableIndicated whether the element can only be rendered through means of instantiation e.g. being referenced in a use tag. Instantiation doesn't create a new element it only controls, when an element can be rendered.- Specified by:
requiresInstantiationin interfaceRenderable- Returns:
- true if only rendered is instantiated.
-
canInstantiate
- Specified by:
canInstantiatein interfaceInstantiator
-