public abstract class AbstractImageProvider extends 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.
|
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.
|
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 Float getWidth() throws IOException
IImageProvidergetWidth in interface IImageProviderIOExceptionpublic Float getHeight() throws IOException
IImageProvidergetHeight in interface IImageProviderIOExceptionpublic void setWidth(Float width)
IImageProvidersetWidth in interface IImageProviderpublic void setHeight(Float height)
IImageProvidersetHeight in interface IImageProviderpublic void setSize(Float width, Float height)
IImageProvidersetSize in interface IImageProviderpublic SimpleImageInfo getImageInfo() throws IOException
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 SimpleImageInfo loadImageInfo() throws IOException
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 © 2015. All Rights Reserved.