Class MeasureContext

java.lang.Object
com.github.weisj.jsvg.renderer.MeasureContext

@Immutable public final class MeasureContext extends Object
  • Field Details

    • vw

      private final float vw
    • vh

      private final float vh
    • em

      private final float em
    • rem

      private final float rem
    • ex

      private final float ex
    • animationState

      @NotNull private final @NotNull AnimationState animationState
  • Constructor Details

    • MeasureContext

      public MeasureContext(float vw, float vh, float em, float ex, float rem, @NotNull @NotNull AnimationState animationState)
  • Method Details

    • createInitial

      @NotNull public static @NotNull MeasureContext createInitial(@NotNull @NotNull FloatSize viewBoxSize, float em, float ex, @NotNull @NotNull AnimationState animationState)
    • deriveRoot

      @NotNull public @NotNull MeasureContext deriveRoot(float rem)
    • derive

      @NotNull public @NotNull MeasureContext derive(float viewWidth, float viewHeight)
    • derive

      @NotNull public @NotNull MeasureContext derive(@Nullable @Nullable ViewBox viewBox, float em, float ex)
    • viewWidth

      public float viewWidth()
    • viewHeight

      public float viewHeight()
    • normedDiagonalLength

      public float normedDiagonalLength()
    • em

      public float em()
    • rem

      public float rem()
    • ex

      public float ex()
    • timestamp

      public long timestamp()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object