Enum Class SvgElement.PreserveAspectRatio
java.lang.Object
java.lang.Enum<SvgElement.PreserveAspectRatio>
org.vaadin.firitin.element.svg.SvgElement.PreserveAspectRatio
- All Implemented Interfaces:
Serializable, Comparable<SvgElement.PreserveAspectRatio>, Constable
- Enclosing class:
SvgElement
Preserve aspect ratio options for the SVG element.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo not force uniform scalingScale to fit, aligned to bottom-rightScale to fit, aligned to middle-rightScale to fit, aligned to top-rightScale to fit, aligned to bottom-centerScale to fit, centered, preserve aspect ratio (default)Scale to fill, centered, preserve aspect ratio (may crop)Scale to fit, aligned to top-centerScale to fit, aligned to bottom-leftScale to fit, aligned to middle-leftScale to fit, aligned to top-leftScale to fill, aligned to top-left (may crop) -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns the enum constant of this class with the specified name.static SvgElement.PreserveAspectRatio[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Do not force uniform scaling -
XMID_YMID_MEET
Scale to fit, centered, preserve aspect ratio (default) -
XMID_YMID_SLICE
Scale to fill, centered, preserve aspect ratio (may crop) -
XMIN_YMIN_MEET
Scale to fit, aligned to top-left -
XMIN_YMIN_SLICE
Scale to fill, aligned to top-left (may crop) -
XMID_YMIN_MEET
Scale to fit, aligned to top-center -
XMAX_YMIN_MEET
Scale to fit, aligned to top-right -
XMIN_YMID_MEET
Scale to fit, aligned to middle-left -
XMAX_YMID_MEET
Scale to fit, aligned to middle-right -
XMIN_YMAX_MEET
Scale to fit, aligned to bottom-left -
XMID_YMAX_MEET
Scale to fit, aligned to bottom-center -
XMAX_YMAX_MEET
Scale to fit, aligned to bottom-right
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<SvgElement.PreserveAspectRatio>
-