Class MeasureContext


  • @Immutable
    public final class MeasureContext
    extends java.lang.Object
    • Field Detail

      • vw

        private final float vw
      • vh

        private final float vh
      • em

        private final float em
      • ex

        private final float ex
    • Constructor Detail

      • MeasureContext

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

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object