Class Fraction
java.lang.Object
com.independentsoft.office.word.math.Fraction
- All Implemented Interfaces:
IContentElement,IRunTrackChangeContent,IMathElement,IMathMathElement
The Class Fraction.
-
Constructor Summary
ConstructorsConstructorDescriptionFraction()Instantiates a new fraction.Fraction(InternalXMLStreamReader reader)Instantiates a new fraction.Fraction(Numerator numerator, Denominator denominator)Instantiates a new fraction. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the control properties.Gets the denominator.Gets the numerator.getType()Gets the type.voidsetDenominator(Denominator denominator)Sets the denominator.voidsetNumerator(Numerator numerator)Sets the numerator.voidsetType(FractionType type)Sets the type.toString()
-
Constructor Details
-
Fraction
public Fraction()Instantiates a new fraction. -
Fraction
Instantiates a new fraction.- Parameters:
numerator- the numeratordenominator- the denominator
-
Fraction
Instantiates a new fraction.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIMathElement- Specified by:
clonein interfaceIMathMathElement- Specified by:
clonein interfaceIRunTrackChangeContent- Overrides:
clonein classObject
-
toString
-
getNumerator
Gets the numerator.- Returns:
- the numerator
-
setNumerator
Sets the numerator.- Parameters:
numerator- the new numerator
-
getDenominator
Gets the denominator.- Returns:
- the denominator
-
setDenominator
Sets the denominator.- Parameters:
denominator- the new denominator
-
getType
Gets the type.- Returns:
- the type
-
setType
Sets the type.- Parameters:
type- the new type
-
getControlProperties
Gets the control properties.- Returns:
- the control properties
-