Enum DefaultFilterChannel
- java.lang.Object
-
- java.lang.Enum<DefaultFilterChannel>
-
- com.github.weisj.jsvg.attributes.filter.DefaultFilterChannel
-
- All Implemented Interfaces:
FilterChannelKey
,java.io.Serializable
,java.lang.Comparable<DefaultFilterChannel>
public enum DefaultFilterChannel extends java.lang.Enum<DefaultFilterChannel> implements FilterChannelKey
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.attributes.filter.FilterChannelKey
FilterChannelKey.StringKey
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BackgroundAlpha
Same as BackgroundImage except only the alpha channel is used.BackgroundImage
This keyword represents an image snapshot of the SVG document under the filter region at the time that theelement was invoked. FillPaint
This keyword represents the value of the fill property on the target element for the filter effect.LastResult
Uses the result of the preceding filter or SourceGraphic if this is the first filter.SourceAlpha
This keyword represents the graphics elements that were the original input into theelement. SourceGraphic
This keyword represents the graphics elements that were the original input into theelement. StrokePaint
This keyword represents the value of the stroke property on the target element for the filter effect.
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultFilterChannel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.Object
key()
static DefaultFilterChannel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DefaultFilterChannel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SourceGraphic
public static final DefaultFilterChannel SourceGraphic
This keyword represents the graphics elements that were the original input into theelement.
-
SourceAlpha
public static final DefaultFilterChannel SourceAlpha
This keyword represents the graphics elements that were the original input into theelement. SourceAlpha has all the same rules as SourceGraphic except that only the alpha channel is used.
-
BackgroundImage
public static final DefaultFilterChannel BackgroundImage
This keyword represents an image snapshot of the SVG document under the filter region at the time that theelement was invoked.
-
BackgroundAlpha
public static final DefaultFilterChannel BackgroundAlpha
Same as BackgroundImage except only the alpha channel is used.
-
FillPaint
public static final DefaultFilterChannel FillPaint
This keyword represents the value of the fill property on the target element for the filter effect. In many cases, the FillPaint is opaque everywhere, but that might not be the case if a shape is painted with a gradient or pattern which itself includes transparent or semi-transparent parts.
-
StrokePaint
public static final DefaultFilterChannel StrokePaint
This keyword represents the value of the stroke property on the target element for the filter effect. In many cases, the StrokePaint is opaque everywhere, but that might not be the case if a shape is painted with a gradient or pattern which itself includes transparent or semi-transparent parts.
-
LastResult
public static final DefaultFilterChannel LastResult
Uses the result of the preceding filter or SourceGraphic if this is the first filter.
-
-
Method Detail
-
values
public static DefaultFilterChannel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultFilterChannel c : DefaultFilterChannel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultFilterChannel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
key
@NotNull public @NotNull java.lang.Object key()
- Specified by:
key
in interfaceFilterChannelKey
-
-