Class MeasureContext

java.lang.Object
com.github.weisj.jsvg.geometry.size.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
    • ex

      private final float ex
  • Constructor Details

    • MeasureContext

      public MeasureContext(float vw, float vh, float em, float ex)
  • Method Details

    • createInitial

      @NotNull public static @NotNull MeasureContext createInitial(@NotNull @NotNull FloatSize viewBoxSize, float em, float ex)
    • 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()
    • 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