Enum Class UnitType

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

public enum UnitType extends Enum<UnitType>
  • Enum Constant Details

    • UserSpaceOnUse

      public static final UnitType UserSpaceOnUse
    • ObjectBoundingBox

      public static final UnitType ObjectBoundingBox
  • Constructor Details

    • UnitType

      private UnitType()
  • Method Details

    • values

      public static UnitType[] 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 UnitType 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
    • deriveMeasure

      @NotNull public @NotNull MeasureContext deriveMeasure(@NotNull @NotNull MeasureContext measure)
    • deriveMeasure

      @NotNull public @NotNull MeasureContext deriveMeasure(@NotNull @NotNull MeasureContext measure, double objectWidth, double objectHeight)
    • viewTransform

      @NotNull public @NotNull AffineTransform viewTransform(@NotNull @NotNull Rectangle2D bounds)
    • computeViewBounds

      @NotNull public Rectangle2D.Double computeViewBounds(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Rectangle2D elementBounds, @NotNull @NotNull Length x, @NotNull @NotNull Length y, @NotNull @NotNull Length width, @NotNull @NotNull Length height)