Class Filter
java.lang.Object
com.github.weisj.jsvg.nodes.AbstractSVGNode
com.github.weisj.jsvg.nodes.container.BaseContainerNode<SVGNode>
com.github.weisj.jsvg.nodes.container.ContainerNode
com.github.weisj.jsvg.nodes.filter.Filter
@ElementCategories({})
@PermittedContent(categories={Descriptive,FilterPrimitive},
anyOf={Animate.class,Set.class})
public final class Filter
extends ContainerNode
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ColorInterpolationprivate static final Lengthprivate static final Lengthprivate static final Lengthprivate static final Lengthprivate UnitTypeprivate UnitTypeprivate Lengthprivate booleanprivate static final Loggerprivate static final Rectangle2D.Doublestatic final Stringprivate Lengthprivate Lengthprivate Length -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptChild(@Nullable String id, @NotNull SVGNode node) Determine whether the container accepts thisSVGNodeas a child.@NotNull BufferedImageapplyFilter(@NotNull Output output, @NotNull RenderContext context, @NotNull Filter.FilterInfo filterInfo) voidbuild(@NotNull AttributeNode attributeNode) @Nullable Filter.FilterBoundscreateFilterBounds(@Nullable Output output, @NotNull RenderContext context, @NotNull ElementBounds elementBounds) boolean@NotNull StringtagName()Methods inherited from class ContainerNode
children, doAddMethods inherited from class BaseContainerNode
addChild, isAcceptableTypeMethods inherited from class AbstractSVGNode
addContent, id, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
childrenOfType
-
Field Details
-
LOGGER
-
TAG
- See Also:
-
DEFAULT_FILTER_COORDINATE_X
-
DEFAULT_FILTER_COORDINATE_Y
-
DEFAULT_FILTER_WIDTH
-
DEFAULT_FILTER_HEIGHT
-
NO_CLIP_BOUNDS
-
x
-
y
-
width
-
height
-
filterUnits
-
filterPrimitiveUnits
-
colorInterpolation
-
isValid
private boolean isValid
-
-
Constructor Details
-
Filter
public Filter()
-
-
Method Details
-
tagName
-
hasEffect
public boolean hasEffect() -
build
- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classAbstractSVGNode
-
createFilterBounds
@Nullable public @Nullable Filter.FilterBounds createFilterBounds(@Nullable @Nullable Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull ElementBounds elementBounds) -
applyFilter
@NotNull public @NotNull BufferedImage applyFilter(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Filter.FilterInfo filterInfo) -
acceptChild
Description copied from class:BaseContainerNodeDetermine whether the container accepts thisSVGNodeas a child. By default, this will always report true but subclasses may choose to reject certain types of nodes.- Overrides:
acceptChildin classBaseContainerNode<SVGNode>- Parameters:
id- the id of the nodenode- the node itself- Returns:
- whether the node can be inserted as a child.
-