Enum Class VectorEffect

java.lang.Object
java.lang.Enum<VectorEffect>
com.github.weisj.jsvg.attributes.VectorEffect
All Implemented Interfaces:
HasMatchName, Serializable, Comparable<VectorEffect>, Constable

public enum VectorEffect extends Enum<VectorEffect> implements HasMatchName
  • Enum Constant Details

    • 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
  • Field Details

    • matchName

      @NotNull private final @NotNull String matchName
    • flag

      private final int flag
  • Constructor Details

    • VectorEffect

      private VectorEffect(int flag)
    • VectorEffect

      private VectorEffect(@NotNull @NotNull String matchName, int flag)
  • Method Details

    • values

      public static VectorEffect[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VectorEffect valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      @NotNull public static @NotNull Set<VectorEffect> parse(@NotNull @NotNull AttributeNode attributeNode)
    • matchName

      @NotNull public @NotNull String matchName()
      Specified by:
      matchName in interface HasMatchName
    • flags

      private static int flags(@NotNull @NotNull Set<VectorEffect> effects)
    • 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)