Class SVGLengthContext


  • public class SVGLengthContext
    extends java.lang.Object
    • Field Detail

      • _width

        @Internal
        public final float _width
      • _height

        @Internal
        public final float _height
      • _dpi

        @Internal
        public final float _dpi
    • Constructor Detail

      • SVGLengthContext

        public SVGLengthContext​(float width,
                                float height)
      • SVGLengthContext

        public SVGLengthContext​(@NotNull
                                @NotNull io.github.humbleui.types.Point size)
      • SVGLengthContext

        public SVGLengthContext​(float width,
                                float height,
                                float dpi)
    • Method Detail

      • resolve

        public float resolve​(@NotNull
                             @NotNull SVGLength length,
                             @NotNull
                             @NotNull SVGLengthType type)
      • resolveRect

        @NotNull
        public @NotNull io.github.humbleui.types.Rect resolveRect​(@NotNull
                                                                  @NotNull SVGLength x,
                                                                  @NotNull
                                                                  @NotNull SVGLength y,
                                                                  @NotNull
                                                                  @NotNull SVGLength width,
                                                                  @NotNull
                                                                  @NotNull SVGLength height)
      • getWidth

        public float getWidth()
      • getHeight

        public float getHeight()
      • getDpi

        public float getDpi()
      • equals

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

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withWidth

        public SVGLengthContext withWidth​(float _width)
        Returns:
        this.
      • withHeight

        public SVGLengthContext withHeight​(float _height)
        Returns:
        this.