Interface FractionNumberFormatSpecifier
- All Superinterfaces:
org.eclipse.emf.ecore.EObject
,FormatSpecifier
,IChartObject
,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
FractionNumberFormatSpecifierImpl
A representation of the model object 'Fraction
Number Format Specifier'.
FractionNumberFormatSpecifier extends type
FormatSpecifier and is specialized for displaying nummeric value as fraction
number.
The following features are supported:
-
Method Summary
Modifier and TypeMethodDescriptionformat
(double dValue, com.ibm.icu.util.ULocale lo) Formats a value using the internally defined format specifier rulesDeprecated.Returns the value of the 'Delimiter' attribute.int
Returns the value of the 'Fraction Digits' attribute.double
Returns the value of the 'Numerator' attribute.Returns the value of the 'Prefix' attribute.Returns the value of the 'Suffix' attribute.boolean
Returns the value of the 'Precise' attribute.boolean
Returns whether the value of the 'Delimiter
' attribute is set.boolean
Returns whether the value of the 'Fraction Digits
' attribute is set.boolean
Returns whether the value of the 'Numerator
' attribute is set.boolean
Returns whether the value of the 'Precise
' attribute is set.void
setDelimiter
(String value) Sets the value of the 'Delimiter
' attribute.void
setFractionDigits
(int value) Sets the value of the 'Fraction Digits
' attribute.void
setNumerator
(double value) Sets the value of the 'Numerator
' attribute.void
setPrecise
(boolean value) Sets the value of the 'Precise
' attribute.void
Sets the value of the 'Prefix
' attribute.void
Sets the value of the 'Suffix
' attribute.void
Unsets the value of the 'Delimiter
' attribute.void
Unsets the value of the 'Fraction Digits
' attribute.void
Unsets the value of the 'Numerator
' attribute.void
Unsets the value of the 'Precise
' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
isPrecise
boolean isPrecise()Returns the value of the 'Precise' attribute. Attribute "Precies" specifies if the fraction result is precise with the decimal.- Returns:
- the value of the 'Precise' attribute.
- See Also:
-
setPrecise
void setPrecise(boolean value) Sets the value of the 'Precise
' attribute.- Parameters:
value
- the new value of the 'Precise' attribute.- See Also:
-
unsetPrecise
void unsetPrecise()Unsets the value of the 'Precise
' attribute.- See Also:
-
isSetPrecise
boolean isSetPrecise()Returns whether the value of the 'Precise
' attribute is set.- Returns:
- whether the value of the 'Precise' attribute is set.
- See Also:
-
getFractionDigits
int getFractionDigits()Returns the value of the 'Fraction Digits' attribute. Attribute "FractionDigits" specifies the fixed length of the denominator when in imprecise mode.- Returns:
- the value of the 'Fraction Digits' attribute.
- See Also:
-
setFractionDigits
void setFractionDigits(int value) Sets the value of the 'Fraction Digits
' attribute.- Parameters:
value
- the new value of the 'Fraction Digits' attribute.- See Also:
-
unsetFractionDigits
void unsetFractionDigits()Unsets the value of the 'Fraction Digits
' attribute. -
isSetFractionDigits
boolean isSetFractionDigits()Returns whether the value of the 'Fraction Digits
' attribute is set.- Returns:
- whether the value of the 'Fraction Digits' attribute is set.
- See Also:
-
getNumerator
double getNumerator()Returns the value of the 'Numerator' attribute. Attribute "Numerator" specifies a fixed numerator for the fraction result when in imprecise mode. Zero means no effect. This setting will take the precedence than the FractionDigits setting.- Returns:
- the value of the 'Numerator' attribute.
- See Also:
-
setNumerator
void setNumerator(double value) Sets the value of the 'Numerator
' attribute.- Parameters:
value
- the new value of the 'Numerator' attribute.- See Also:
-
unsetNumerator
void unsetNumerator()Unsets the value of the 'Numerator
' attribute. -
isSetNumerator
boolean isSetNumerator()Returns whether the value of the 'Numerator
' attribute is set.- Returns:
- whether the value of the 'Numerator' attribute is set.
- See Also:
-
getPrefix
String getPrefix()Returns the value of the 'Prefix' attribute. Attribute "Prefix" specifies the prefix of the result.- Returns:
- the value of the 'Prefix' attribute.
- See Also:
-
setPrefix
Sets the value of the 'Prefix
' attribute.- Parameters:
value
- the new value of the 'Prefix' attribute.- See Also:
-
getSuffix
String getSuffix()Returns the value of the 'Suffix' attribute. Attribute "Suffix" specifies the suffix of the result.- Returns:
- the value of the 'Suffix' attribute.
- See Also:
-
setSuffix
Sets the value of the 'Suffix
' attribute.- Parameters:
value
- the new value of the 'Suffix' attribute.- See Also:
-
getDelimiter
String getDelimiter()Returns the value of the 'Delimiter' attribute. The default value is"/"
. Attribute "Delimiter" specifies the string as the fraction stroke, by default it'is "/".- Returns:
- the value of the 'Delimiter' attribute.
- See Also:
-
setDelimiter
Sets the value of the 'Delimiter
' attribute.- Parameters:
value
- the new value of the 'Delimiter' attribute.- See Also:
-
unsetDelimiter
void unsetDelimiter()Unsets the value of the 'Delimiter
' attribute. -
isSetDelimiter
boolean isSetDelimiter()Returns whether the value of the 'Delimiter
' attribute is set.- Returns:
- whether the value of the 'Delimiter' attribute is set.
- See Also:
-
format
Deprecated.Formats a value using the internally defined format specifier rules- Parameters:
dValue
-- Returns:
- A formatted string representation of the numerical value provided
-
format
Formats a value using the internally defined format specifier rules- Parameters:
dValue
-- Returns:
- A formatted string representation of the numerical value provided
- Since:
- 2.1
-
copyInstance
FractionNumberFormatSpecifier copyInstance()- Specified by:
copyInstance
in interfaceFormatSpecifier
- Specified by:
copyInstance
in interfaceIChartObject
-