Package com.github.weisj.jsvg.attributes
Enum VectorEffect
- All Implemented Interfaces:
HasMatchName
,Serializable
,Comparable<VectorEffect>
,java.lang.constant.Constable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
VectorEffect
(int flag) private
VectorEffect
(@NotNull String matchName, int flag) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyEffects
(@NotNull Set<VectorEffect> effects, @NotNull Output output, @NotNull RenderContext context, @Nullable AffineTransform elementTransform) static @NotNull Shape
applyNonScalingStroke
(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape) private static int
flags
(@NotNull Set<VectorEffect> effects) @NotNull String
static @NotNull Set
<VectorEffect> parse
(@NotNull AttributeNode attributeNode) private static void
updateTransformForFlags
(int flags, @NotNull AffineTransform transform, double x0, double y0) static VectorEffect
Returns the enum constant of this type with the specified name.static VectorEffect[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
None
-
NonScalingStroke
-
NonScalingSize
-
NonRotation
-
FixedPosition
-
-
Field Details
-
matchName
-
flag
private final int flag
-
-
Constructor Details
-
VectorEffect
private VectorEffect(int flag) -
VectorEffect
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
parse
@NotNull public static @NotNull Set<VectorEffect> parse(@NotNull @NotNull AttributeNode attributeNode) -
matchName
- Specified by:
matchName
in interfaceHasMatchName
-
flags
-
applyEffects
public static void applyEffects(@NotNull @NotNull Set<VectorEffect> effects, @NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @Nullable @Nullable AffineTransform elementTransform) -
applyNonScalingStroke
@NotNull public static @NotNull Shape applyNonScalingStroke(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Shape shape) -
updateTransformForFlags
private static void updateTransformForFlags(int flags, @NotNull @NotNull AffineTransform transform, double x0, double y0)
-