- java.lang.Object
-
- java.lang.Enum<TransformBox>
-
- com.github.weisj.jsvg.attributes.transform.TransformBox
-
- All Implemented Interfaces:
HasMatchName
,java.io.Serializable
,java.lang.Comparable<TransformBox>
public enum TransformBox extends java.lang.Enum<TransformBox> implements HasMatchName
Represents possible values of the transform-box rule. It determines the box relative to which a transform-origin is computed.
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.lang.String
matchName
-
Constructor Summary
Constructors Modifier Constructor Description private
TransformBox(@NotNull java.lang.String matchName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
matchName()
static TransformBox
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TransformBox[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FillBox
public static final TransformBox FillBox
-
StrokeBox
public static final TransformBox StrokeBox
-
ViewBox
public static final TransformBox ViewBox
-
-
Method Detail
-
values
public static TransformBox[] 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 (TransformBox c : TransformBox.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransformBox 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
-
matchName
@NotNull public @NotNull java.lang.String matchName()
- Specified by:
matchName
in interfaceHasMatchName
-
-