PDBorderStyleDictionary.java (pdfbox-2.0.23-src) | : | PDBorderStyleDictionary.java (pdfbox-2.0.24-src) | ||
---|---|---|---|---|
skipping to change at line 162 | skipping to change at line 162 | |||
return getCOSObject().getNameAsString(COSName.S, STYLE_SOLID); | return getCOSObject().getNameAsString(COSName.S, STYLE_SOLID); | |||
} | } | |||
/** | /** | |||
* This will set the dash style used for drawing the border. | * This will set the dash style used for drawing the border. | |||
* | * | |||
* @param dashArray the dash style to use | * @param dashArray the dash style to use | |||
*/ | */ | |||
public void setDashStyle(COSArray dashArray) | public void setDashStyle(COSArray dashArray) | |||
{ | { | |||
COSArray array = null; | getCOSObject().setItem(COSName.D, dashArray); | |||
if (dashArray != null) | ||||
{ | ||||
array = dashArray; | ||||
} | ||||
getCOSObject().setItem(COSName.D, array); | ||||
} | } | |||
/** | /** | |||
* This will retrieve the dash style used for drawing the border. | * This will retrieve the dash style used for drawing the border. | |||
* | * | |||
* @return the dash style of the border | * @return the dash style of the border | |||
*/ | */ | |||
public PDLineDashPattern getDashStyle() | public PDLineDashPattern getDashStyle() | |||
{ | { | |||
COSArray d = (COSArray) getCOSObject().getDictionaryObject(COSName.D); | COSArray d = (COSArray) getCOSObject().getDictionaryObject(COSName.D); | |||
End of changes. 1 change blocks. | ||||
6 lines changed or deleted | 1 lines changed or added |