|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gstreamer.Fraction
public class Fraction
Represents a fraction value.
Field Summary | |
---|---|
int |
denominator
|
int |
numerator
|
Constructor Summary | |
---|---|
Fraction(int numerator,
int denominator)
Creates a new Fraction . |
Method Summary | |
---|---|
int |
getDenominator()
Gets the denominator of the Fraction |
int |
getNumerator()
Gets the numerator of the Fraction |
static Fraction |
objectFor(GValueAPI.GValue value)
|
double |
toDouble()
Returns the fraction as a floating point value (numerator divided by the denominator). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int numerator
public final int denominator
Constructor Detail |
---|
public Fraction(int numerator, int denominator)
Fraction
.
numerator
- the numerator value.denominator
- the denominator value.Method Detail |
---|
public int getNumerator()
Fraction
public int getDenominator()
Fraction
public double toDouble()
double
, or Double.NaN
if the denominator is 0public static Fraction objectFor(GValueAPI.GValue value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |