- 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 Classes Modifier and Type Class Description static classFilter.FilterBoundsstatic classFilter.FilterInfoprivate static classFilter.SourceAlphaChannel
-
Field Summary
Fields Modifier and Type Field Description private ColorInterpolationcolorInterpolationprivate static LengthDEFAULT_FILTER_COORDINATE_Xprivate static LengthDEFAULT_FILTER_COORDINATE_Yprivate static LengthDEFAULT_FILTER_HEIGHTprivate static LengthDEFAULT_FILTER_WIDTHprivate UnitTypefilterPrimitiveUnitsprivate UnitTypefilterUnitsprivate Lengthheightprivate booleanisValidprivate static java.util.logging.LoggerLOGGERprivate static java.awt.geom.Rectangle2D.DoubleNO_CLIP_BOUNDSstatic java.lang.StringTAGprivate Lengthwidthprivate Lengthxprivate Lengthy
-
Constructor Summary
Constructors Constructor Description Filter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanacceptChild(@Nullable java.lang.String id, @NotNull SVGNode node)Determine whether the container accepts thisSVGNodeas a child.@NotNull java.awt.image.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)booleanhasEffect()@NotNull java.lang.StringtagName()-
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 Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
DEFAULT_FILTER_COORDINATE_X
private static final Length DEFAULT_FILTER_COORDINATE_X
-
DEFAULT_FILTER_COORDINATE_Y
private static final Length DEFAULT_FILTER_COORDINATE_Y
-
DEFAULT_FILTER_WIDTH
private static final Length DEFAULT_FILTER_WIDTH
-
DEFAULT_FILTER_HEIGHT
private static final Length DEFAULT_FILTER_HEIGHT
-
NO_CLIP_BOUNDS
private static final java.awt.geom.Rectangle2D.Double NO_CLIP_BOUNDS
-
x
private Length x
-
y
private Length y
-
width
private Length width
-
height
private Length height
-
filterUnits
private UnitType filterUnits
-
filterPrimitiveUnits
private UnitType filterPrimitiveUnits
-
colorInterpolation
private ColorInterpolation colorInterpolation
-
isValid
private boolean isValid
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
hasEffect
public boolean hasEffect()
-
build
public void build(@NotNull @NotNull AttributeNode attributeNode)- 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 java.awt.image.BufferedImage applyFilter(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Filter.FilterInfo filterInfo)
-
acceptChild
protected boolean acceptChild(@Nullable @Nullable java.lang.String id, @NotNull @NotNull SVGNode node)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.
-
-