PDNumberFormatDictionary.java (pdfbox-2.0.23-src) | : | PDNumberFormatDictionary.java (pdfbox-2.0.24-src) | ||
---|---|---|---|---|
skipping to change at line 156 | skipping to change at line 156 | |||
* | * | |||
* @return the manner to display a fractional value | * @return the manner to display a fractional value | |||
*/ | */ | |||
public String getFractionalDisplay() | public String getFractionalDisplay() | |||
{ | { | |||
return this.getCOSObject().getString("F", FRACTIONAL_DISPLAY_DECIMAL); | return this.getCOSObject().getString("F", FRACTIONAL_DISPLAY_DECIMAL); | |||
} | } | |||
/** | /** | |||
* This will set the value for the manner to display a fractional value. | * This will set the value for the manner to display a fractional value. | |||
* Allowed values are "D", "F", "R" and "T" | * Allowed values are "D", "F", "R", "T" and null. | |||
* | ||||
* @param fractionalDisplay the manner to display a fractional value | * @param fractionalDisplay the manner to display a fractional value | |||
*/ | */ | |||
public void setFractionalDisplay(String fractionalDisplay) | public void setFractionalDisplay(String fractionalDisplay) | |||
{ | { | |||
if ((fractionalDisplay == null) | if ((fractionalDisplay == null) | |||
|| FRACTIONAL_DISPLAY_DECIMAL.equals(fractionalDisplay) | || FRACTIONAL_DISPLAY_DECIMAL.equals(fractionalDisplay) | |||
|| FRACTIONAL_DISPLAY_FRACTION.equals(fractionalDisplay) | || FRACTIONAL_DISPLAY_FRACTION.equals(fractionalDisplay) | |||
|| FRACTIONAL_DISPLAY_ROUND.equals(fractionalDisplay) | || FRACTIONAL_DISPLAY_ROUND.equals(fractionalDisplay) | |||
|| FRACTIONAL_DISPLAY_TRUNCATE.equals(fractionalDisplay)) | || FRACTIONAL_DISPLAY_TRUNCATE.equals(fractionalDisplay)) | |||
{ | { | |||
skipping to change at line 304 | skipping to change at line 305 | |||
* This will return a value indicating the ordering of the label specified b y U to the calculated unit value. | * This will return a value indicating the ordering of the label specified b y U to the calculated unit value. | |||
* | * | |||
* @return label position | * @return label position | |||
*/ | */ | |||
public String getLabelPositionToValue() | public String getLabelPositionToValue() | |||
{ | { | |||
return this.getCOSObject().getString("O", LABEL_SUFFIX_TO_VALUE); | return this.getCOSObject().getString("O", LABEL_SUFFIX_TO_VALUE); | |||
} | } | |||
/** | /** | |||
* This will set the value indicating the ordering of the label specified by | * This will set the value indicating the ordering of the label specified by | |||
U to the calculated unit value. | U to the calculated | |||
* Possible values are "S" and "P" | * unit value. Possible values are "S", "P" and null. | |||
* | * | |||
* @param labelPositionToValue label position | * @param labelPositionToValue label position | |||
*/ | */ | |||
public void setLabelPositionToValue(String labelPositionToValue) | public void setLabelPositionToValue(String labelPositionToValue) | |||
{ | { | |||
if ((labelPositionToValue == null) | if ((labelPositionToValue == null) | |||
|| LABEL_PREFIX_TO_VALUE.equals(labelPositionToValue) | || LABEL_PREFIX_TO_VALUE.equals(labelPositionToValue) | |||
|| LABEL_SUFFIX_TO_VALUE.equals(labelPositionToValue)) | || LABEL_SUFFIX_TO_VALUE.equals(labelPositionToValue)) | |||
{ | { | |||
this.getCOSObject().setString("O", labelPositionToValue); | this.getCOSObject().setString("O", labelPositionToValue); | |||
End of changes. 2 change blocks. | ||||
4 lines changed or deleted | 5 lines changed or added |