|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.opensagres.xdocreport.document.images.AbstractImageProvider
public abstract class AbstractImageProvider
Base class for image provider.
Constructor Summary | |
---|---|
AbstractImageProvider(boolean useImageSize)
|
Method Summary | |
---|---|
protected abstract boolean |
doIsValid()
|
NullImageBehaviour |
getBehaviour()
Returns the behaviour to use when the stream of the image is null. |
Float |
getHeight()
Returns the height image with pixel unit. |
SimpleImageInfo |
getImageInfo()
Returns image info of the current image content. |
Float |
getWidth()
Returns the width image with pixel unit. |
boolean |
isResize()
Returns true if call of IImageProvider.setWidth(Float) must compute image height with ratio or if call of
IImageProvider.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. |
protected abstract SimpleImageInfo |
loadImageInfo()
Load image info. |
void |
resetImageInfo()
Reset image info. |
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 IImageProvider.setWidth(Float) must compute image height with ratio or if call of
IImageProvider.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.opensagres.xdocreport.document.images.IImageProvider |
---|
getImageFormat, write |
Constructor Detail |
---|
public AbstractImageProvider(boolean useImageSize)
Method Detail |
---|
public boolean isUseImageSize()
IImageProvider
isUseImageSize
in interface IImageProvider
public void setUseImageSize(boolean useImageSize)
IImageProvider
setUseImageSize
in interface IImageProvider
public Float getWidth() throws IOException
IImageProvider
getWidth
in interface IImageProvider
IOException
public Float getHeight() throws IOException
IImageProvider
getHeight
in interface IImageProvider
IOException
public void setWidth(Float width)
IImageProvider
setWidth
in interface IImageProvider
public void setHeight(Float height)
IImageProvider
setHeight
in interface IImageProvider
public void setSize(Float width, Float height)
IImageProvider
setSize
in interface IImageProvider
public SimpleImageInfo getImageInfo() throws IOException
IOException
public void resetImageInfo()
public void setResize(boolean resize)
IImageProvider
IImageProvider.setWidth(Float)
must compute image height with ratio or if call of
IImageProvider.setHeight(Float)
must compute image with with ratio and false otherwise.
setResize
in interface IImageProvider
public boolean isResize()
IImageProvider
IImageProvider.setWidth(Float)
must compute image height with ratio or if call of
IImageProvider.setHeight(Float)
must compute image with with ratio and false otherwise.
isResize
in interface IImageProvider
protected abstract SimpleImageInfo loadImageInfo() throws IOException
IOException
public NullImageBehaviour getBehaviour()
IImageProvider
getBehaviour
in interface IImageProvider
public void setBehaviour(NullImageBehaviour behaviour)
IImageProvider
setBehaviour
in interface IImageProvider
public boolean isValid()
IImageProvider
isValid
in interface IImageProvider
protected abstract boolean doIsValid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |