Package com.github.weisj.jsvg.attributes
Enum VectorEffect
- java.lang.Object
-
- java.lang.Enum<VectorEffect>
-
- com.github.weisj.jsvg.attributes.VectorEffect
-
- All Implemented Interfaces:
HasMatchName
,java.io.Serializable
,java.lang.Comparable<VectorEffect>
public enum VectorEffect extends java.lang.Enum<VectorEffect> implements HasMatchName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
VectorEffect.Flags
-
Enum Constant Summary
Enum Constants Enum Constant Description FixedPosition
None
NonRotation
NonScalingSize
NonScalingStroke
-
Constructor Summary
Constructors Modifier Constructor Description private
VectorEffect(int flag)
private
VectorEffect(@NotNull java.lang.String matchName, int flag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
applyEffects(@NotNull java.util.Set<VectorEffect> effects, @NotNull Output output, @NotNull RenderContext context, @Nullable java.awt.geom.AffineTransform elementTransform)
static @NotNull java.awt.Shape
applyNonScalingStroke(@NotNull Output output, @NotNull RenderContext context, @NotNull java.awt.Shape shape)
private static int
flags(@NotNull java.util.Set<VectorEffect> effects)
@NotNull java.lang.String
matchName()
static @NotNull java.util.Set<VectorEffect>
parse(@NotNull AttributeNode attributeNode)
private static void
updateTransformForFlags(int flags, @NotNull java.awt.geom.AffineTransform transform, double x0, double y0)
static VectorEffect
valueOf(java.lang.String name)
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 Detail
-
None
public static final VectorEffect None
-
NonScalingStroke
public static final VectorEffect NonScalingStroke
-
NonScalingSize
public static final VectorEffect NonScalingSize
-
NonRotation
public static final VectorEffect NonRotation
-
FixedPosition
public static final VectorEffect FixedPosition
-
-
Method Detail
-
values
public static VectorEffect[] 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 (VectorEffect c : VectorEffect.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VectorEffect 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
-
parse
@NotNull public static @NotNull java.util.Set<VectorEffect> parse(@NotNull @NotNull AttributeNode attributeNode)
-
matchName
@NotNull public @NotNull java.lang.String matchName()
- Specified by:
matchName
in interfaceHasMatchName
-
flags
private static int flags(@NotNull @NotNull java.util.Set<VectorEffect> effects)
-
applyEffects
public static void applyEffects(@NotNull @NotNull java.util.Set<VectorEffect> effects, @NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @Nullable @Nullable java.awt.geom.AffineTransform elementTransform)
-
applyNonScalingStroke
@NotNull public static @NotNull java.awt.Shape applyNonScalingStroke(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull java.awt.Shape shape)
-
updateTransformForFlags
private static void updateTransformForFlags(int flags, @NotNull @NotNull java.awt.geom.AffineTransform transform, double x0, double y0)
-
-