Package io.github.humbleui.skija.svg
Class SVGLengthContext
- java.lang.Object
-
- io.github.humbleui.skija.svg.SVGLengthContext
-
public class SVGLengthContext extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SVGLengthContext(float width, float height)SVGLengthContext(float width, float height, float dpi)SVGLengthContext(@NotNull io.github.humbleui.types.Point size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)floatgetDpi()floatgetHeight()floatgetWidth()inthashCode()floatresolve(@NotNull SVGLength length, @NotNull SVGLengthType type)@NotNull io.github.humbleui.types.RectresolveRect(@NotNull SVGLength x, @NotNull SVGLength y, @NotNull SVGLength width, @NotNull SVGLength height)java.lang.StringtoString()SVGLengthContextwithDpi(float _dpi)SVGLengthContextwithHeight(float _height)SVGLengthContextwithWidth(float _width)
-
-
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withWidth
public SVGLengthContext withWidth(float _width)
- Returns:
this.
-
withHeight
public SVGLengthContext withHeight(float _height)
- Returns:
this.
-
withDpi
public SVGLengthContext withDpi(float _dpi)
- Returns:
this.
-
-