public abstract class AbstractImageProvider extends java.lang.Object implements IImageProvider
| Constructor and Description |
|---|
AbstractImageProvider(boolean useImageSize) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
doIsValid() |
NullImageBehaviour |
getBehaviour()
Returns the behaviour to use when the stream of the image is null.
|
java.lang.Float |
getHeight(java.lang.Float defaultHeight)
Returns the height image with pixel unit.
|
IImageInfo |
getImageInfo()
Returns image info of the current image content.
|
java.lang.Float |
getWidth(java.lang.Float defaultWidth)
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 IImageInfo |
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(java.lang.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(java.lang.Float width,
java.lang.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(java.lang.Float width)
Set the width image with pixel unit.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetImageFormat, writepublic boolean isUseImageSize()
IImageProviderisUseImageSize in interface IImageProviderpublic void setUseImageSize(boolean useImageSize)
IImageProvidersetUseImageSize in interface IImageProviderpublic java.lang.Float getWidth(java.lang.Float defaultWidth)
throws java.io.IOException
IImageProvidergetWidth in interface IImageProviderdefaultWidth - as pixeljava.io.IOExceptionpublic java.lang.Float getHeight(java.lang.Float defaultHeight)
throws java.io.IOException
IImageProvidergetHeight in interface IImageProviderdefaultHeight - as pixeljava.io.IOExceptionpublic void setWidth(java.lang.Float width)
IImageProvidersetWidth in interface IImageProviderpublic void setHeight(java.lang.Float height)
IImageProvidersetHeight in interface IImageProviderpublic void setSize(java.lang.Float width,
java.lang.Float height)
IImageProvidersetSize in interface IImageProviderpublic IImageInfo getImageInfo() throws java.io.IOException
java.io.IOExceptionpublic void resetImageInfo()
public void setResize(boolean resize)
IImageProviderIImageProvider.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 IImageProviderpublic boolean isResize()
IImageProviderIImageProvider.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 IImageProviderprotected abstract IImageInfo loadImageInfo() throws java.io.IOException
java.io.IOExceptionpublic NullImageBehaviour getBehaviour()
IImageProvidergetBehaviour in interface IImageProviderpublic void setBehaviour(NullImageBehaviour behaviour)
IImageProvidersetBehaviour in interface IImageProviderpublic boolean isValid()
IImageProviderisValid in interface IImageProviderprotected abstract boolean doIsValid()
Copyright © 2024. All Rights Reserved.