|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IImageProvider
Image provider is used as "context" to manage dynamic images in the document source (odt, docx...).
| Method Summary | |
|---|---|
NullImageBehaviour |
getBehaviour()
Returns the behaviour to use when the stream of the image is null. |
Float |
getHeight()
Returns the height image with pixel unit. |
ImageFormat |
getImageFormat()
Returns the image format. |
Float |
getWidth()
Returns the width image with pixel unit. |
boolean |
isResize()
Returns true if call of setWidth(Float) must compute image height with ratio or if call of
setHeight(Float) must compute image with with ratio and false otherwise. |
boolean |
isUseImageSize()
Returns true if image size comes from the image and false otherwise. |
boolean |
isValid()
Returns true if the image provider is valid (ex : input stream not null) and false otherwise. |
void |
setBehaviour(NullImageBehaviour behaviour)
Set the behaviour to use when the stream of the image is null. |
void |
setHeight(Float height)
Set the height image with pixel unit. |
void |
setResize(boolean resize)
Set true if call of setWidth(Float) must compute image height with ratio or if call of
setHeight(Float) must compute image with with ratio and false otherwise. |
void |
setSize(Float width,
Float height)
Set the width and height image with pixel unit. |
void |
setUseImageSize(boolean useImageSize)
Set true if image size comes from the image and false otherwise. |
void |
setWidth(Float width)
Set the width image with pixel unit. |
void |
write(OutputStream outputStream)
Write the binary data of the image in the given output stream. |
| Method Detail |
|---|
void write(OutputStream outputStream)
throws IOException
outputStream -
IOExceptionImageFormat getImageFormat()
Float getWidth()
throws IOException
IOExceptionvoid setWidth(Float width)
width -
Float getHeight()
throws IOException
IOExceptionvoid setHeight(Float height)
height -
void setSize(Float width,
Float height)
width - height - boolean isUseImageSize()
void setUseImageSize(boolean useImageSize)
useImageSize - void setResize(boolean resize)
setWidth(Float) must compute image height with ratio or if call of
setHeight(Float) must compute image with with ratio and false otherwise.
resize - boolean isResize()
setWidth(Float) must compute image height with ratio or if call of
setHeight(Float) must compute image with with ratio and false otherwise.
NullImageBehaviour getBehaviour()
void setBehaviour(NullImageBehaviour behaviour)
behaviour - boolean isValid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||