public static class RatioGauge.Ratio
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
double |
getValue()
Returns the ratio, which is either a
double between 0 and 1 (inclusive) or
NaN. |
static RatioGauge.Ratio |
of(double numerator,
double denominator)
Creates a new ratio with the given numerator and denominator.
|
java.lang.String |
toString() |
public static RatioGauge.Ratio of(double numerator, double denominator)
numerator - the numerator of the ratiodenominator - the denominator of the rationumerator:denominatorpublic double getValue()
double between 0 and 1 (inclusive) or
NaN.public java.lang.String toString()
toString in class java.lang.Object"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"