*/
@Override
public void resize(double scale){
- XSSFClientAnchor anchor = getAnchor();
+ XSSFClientAnchor anchor = getClientAnchor();
XSSFClientAnchor pref = getPreferredSize(scale);
* @return XSSFClientAnchor with the preferred size for this image
*/
public XSSFClientAnchor getPreferredSize(double scale){
- XSSFClientAnchor anchor = getAnchor();
+ XSSFClientAnchor anchor = getClientAnchor();
XSSFPictureData data = getPictureData();
Dimension size = getImageDimension(data.getPackagePart(), data.getPictureType());
return (XSSFSheet)_picture.getDrawing().getParent();
}
- private XSSFClientAnchor getAnchor() {
- return (XSSFClientAnchor)_picture.getAnchor();
+ private XSSFAnchor getAnchor() {
+ return _picture.getAnchor();
}
@Override