java.lang.Object
com.github.weisj.jsvg.geometry.size.MeasureContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MeasureContext
createInitial
(@NotNull FloatSize viewBoxSize, float em, float ex) @NotNull MeasureContext
derive
(float viewWidth, float viewHeight) @NotNull MeasureContext
float
em()
boolean
float
ex()
int
hashCode()
float
float
rem()
toString()
float
float
-
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
-
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
-
equals
-
hashCode
public int hashCode()
-