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 class
static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ColorInterpolation
private static final Length
private static final Length
private UnitType
private UnitType
private Length
private boolean
private static final Logger
private static final Rectangle2D.Double
static final String
private Length
private Length
private Length
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
acceptChild
(@Nullable String id, @NotNull SVGNode node) Determine whether the container accepts thisSVGNode
as a child.@NotNull BufferedImage
applyFilter
(@NotNull Output output, @NotNull RenderContext context, @NotNull Filter.FilterInfo filterInfo) void
build
(@NotNull AttributeNode attributeNode) @Nullable Filter.FilterBounds
createFilterBounds
(@Nullable Output output, @NotNull RenderContext context, @NotNull ElementBounds elementBounds) boolean
@NotNull String
tagName()
Methods inherited from class com.github.weisj.jsvg.nodes.container.ContainerNode
children, doAdd
Methods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
addChild, isAcceptableType
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toString
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.Container
childrenOfType
-
Field Details
-
LOGGER
-
TAG
- See Also:
-
DEFAULT_FILTER_COORDINATE
-
DEFAULT_FILTER_SIZE
-
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:
build
in interfaceSVGNode
- Overrides:
build
in 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:BaseContainerNode
Determine whether the container accepts thisSVGNode
as a child. By default, this will always report true but subclasses may choose to reject certain types of nodes.- Overrides:
acceptChild
in classBaseContainerNode<SVGNode>
- Parameters:
id
- the id of the nodenode
- the node itself- Returns:
- whether the node can be inserted as a child.
-