Package com.scroogexhtml.pictures
Interface PictureAdapter
-
public interface PictureAdapter
Picture interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPicture()
For internal use only.void
beforeConvert()
For internal use only.void
finalizePicture()
For internal use only.EmbeddedPicture
getCurrentPicture()
For internal use only.Map<String,EmbeddedPicture>
getPictures()
Return the map of the pictures in the current document.void
setBase(String base)
Set the base URL of the image link.
-
-
-
Method Detail
-
beforeConvert
void beforeConvert()
For internal use only. The converter will call this method before it starts to convert the RTF. code. It can be used for initialization of the PictureAdapter implementation.
-
addPicture
void addPicture()
For internal use only. The converter will call this method every time when it encounters an embedded picture in the RTF code.
-
getCurrentPicture
EmbeddedPicture getCurrentPicture()
For internal use only.- Returns:
- current picture during conversion.
-
finalizePicture
void finalizePicture()
For internal use only. The converter will call this method every time when it reaches the end of an embedded picture.
-
getPictures
Map<String,EmbeddedPicture> getPictures()
Return the map of the pictures in the current document.- Returns:
- map of the pictures in the current document.
-
setBase
void setBase(String base)
Set the base URL of the image link. Implementing classes can use this image base if they construct the link URL, which will be provided by getPictureHTML().- Parameters:
base
- root path of the image
-
-