Package xal.tools.text
Class FortranNumberFormat
java.lang.Object
java.text.Format
java.text.NumberFormat
java.text.DecimalFormat
xal.tools.text.FortranNumberFormat
- All Implemented Interfaces:
Serializable
,Cloneable
Deprecated.
- Version:
- 1.0
- Author:
- shishlo
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.NumberFormat
NumberFormat.Field, NumberFormat.Style
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static DecimalFormat[]
Deprecated.The scientific formatsprotected static DecimalFormat[]
Deprecated.The simple formatsFields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor with a default format pattern G10.3FortranNumberFormat
(boolean fixedLength) Deprecated.Constructor for the FortranNumberFormat object with G10.3 formatting pattern and the fixed length property as parameterFortranNumberFormat
(String pattern) Deprecated.Constructor for the FortranNumberFormat object with a formatting pattern as parameterFortranNumberFormat
(String pattern, boolean fixedLength) Deprecated.Constructor for the FortranNumberFormat object with a formatting pattern and the fixed length property as parameters -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyLocalizedPattern
(String pattern) Deprecated.Applies the format patternvoid
applyPattern
(String pattern) Deprecated.Applies the format patternformat
(double val, StringBuffer toAppendTo, FieldPosition pos) Deprecated.The overridden method of the DecimalFormat that delegates formatting to the specific inner formatterformat
(long val, StringBuffer toAppendTo, FieldPosition pos) Deprecated.The overridden method of the DecimalFormat that delegates formatting to the specific inner formatterint
Deprecated.Returns the number of significant digits for this formatint
Deprecated.Returns the maximal length of the formatted numberstatic void
Deprecated.The main method of the class.void
setFixedLength
(boolean fixedLength) Deprecated.Sets the fixedLength attribute of the FortranNumberFormat object.Deprecated.Returns the formatting patternDeprecated.Returns the formatting patternMethods inherited from class java.text.DecimalFormat
clone, equals, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode
Methods inherited from class java.text.NumberFormat
format, format, getAvailableLocales, getCompactNumberInstance, getCompactNumberInstance, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setParseIntegerOnly
Methods inherited from class java.text.Format
format, parseObject
-
Field Details
-
simpleFormats
Deprecated.The simple formats -
scientificFormats
Deprecated.The scientific formats
-
-
Constructor Details
-
FortranNumberFormat
public FortranNumberFormat()Deprecated.Constructor with a default format pattern G10.3 -
FortranNumberFormat
Deprecated.Constructor for the FortranNumberFormat object with a formatting pattern as parameter- Parameters:
pattern
- The formatting pattern
-
FortranNumberFormat
Deprecated.Constructor for the FortranNumberFormat object with a formatting pattern and the fixed length property as parameters- Parameters:
pattern
- The formatting patternfixedLength
- The fixed length property
-
FortranNumberFormat
public FortranNumberFormat(boolean fixedLength) Deprecated.Constructor for the FortranNumberFormat object with G10.3 formatting pattern and the fixed length property as parameter- Parameters:
fixedLength
- The fixed length property
-
-
Method Details
-
toPattern
Deprecated.Returns the formatting pattern- Overrides:
toPattern
in classDecimalFormat
- Returns:
- The formatting pattern
-
toLocalizedPattern
Deprecated.Returns the formatting pattern- Overrides:
toLocalizedPattern
in classDecimalFormat
- Returns:
- The formatting pattern
-
applyPattern
Deprecated.Applies the format pattern- Overrides:
applyPattern
in classDecimalFormat
- Parameters:
pattern
- The format pattern
-
setFixedLength
public void setFixedLength(boolean fixedLength) Deprecated.Sets the fixedLength attribute of the FortranNumberFormat object. If it is true the resulting string will be filled out with right spaces- Parameters:
fixedLength
- True or false
-
applyLocalizedPattern
Deprecated.Applies the format pattern- Overrides:
applyLocalizedPattern
in classDecimalFormat
- Parameters:
pattern
- The format pattern
-
getSignificantN
public int getSignificantN()Deprecated.Returns the number of significant digits for this format- Returns:
- The number of significant digits for this format
-
getStringLength
public int getStringLength()Deprecated.Returns the maximal length of the formatted number- Returns:
- The maximal length of the formatted number
-
format
Deprecated.The overridden method of the DecimalFormat that delegates formatting to the specific inner formatter- Overrides:
format
in classDecimalFormat
- Parameters:
val
- The double value to be formattedtoAppendTo
- Where the text is to be appendedpos
- On input: an alignment field, if desired. On output: the offsets of the alignment field- Returns:
- The text that will be displayed
-
format
Deprecated.The overridden method of the DecimalFormat that delegates formatting to the specific inner formatter- Overrides:
format
in classDecimalFormat
- Parameters:
val
- The integer value to be formattedtoAppendTo
- Where the text is to be appendedpos
- On input: an alignment field, if desired. On output: the offsets of the alignment field- Returns:
- The text that will be displayed
-
main
Deprecated.The main method of the class. It is used for testing- Parameters:
args
- The command line arguments
-
setFixedLength
method or by using a proper constructor