Class MeasureContext
- java.lang.Object
-
- com.github.weisj.jsvg.geometry.size.MeasureContext
-
@Immutable public final class MeasureContext extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MeasureContext(float vw, float vh, float em, float ex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull MeasureContext
createInitial(@NotNull FloatSize viewBoxSize, float em, float ex)
@NotNull MeasureContext
derive(float viewWidth, float viewHeight)
@NotNull MeasureContext
derive(@Nullable ViewBox viewBox, float em, float ex)
float
em()
boolean
equals(java.lang.Object o)
float
ex()
int
hashCode()
float
normedDiagonalLength()
float
rem()
java.lang.String
toString()
float
viewHeight()
float
viewWidth()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-