|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap fr.opensagres.xdocreport.document.json.JSONObject fr.opensagres.xdocreport.document.json.JSONImage
public class JSONImage
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Field Summary |
---|
Fields inherited from class fr.opensagres.xdocreport.document.json.JSONObject |
---|
DEFAULT_UPPER_CASE, NULL |
Constructor Summary | |
---|---|
JSONImage()
|
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 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. |
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. |
void |
write(OutputStream outputStream)
Write the binary data of the image in the given output stream. |
Methods inherited from class fr.opensagres.xdocreport.document.json.JSONObject |
---|
accumulate, append, doubleToString, get, getBoolean, getDate, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isDate, isImage, isNull, isUpperCaseFirstChar, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, quote, remove, stringToValue, testValidity, toJSONArray, toString, toString, valueToString, wrap, write |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public JSONImage()
Method Detail |
---|
public void write(OutputStream outputStream) throws IOException
IImageProvider
write
in interface IImageProvider
IOException
public ImageFormat getImageFormat()
IImageProvider
getImageFormat
in interface IImageProvider
public Float getWidth() throws IOException
IImageProvider
getWidth
in interface IImageProvider
IOException
public void setWidth(Float width)
IImageProvider
setWidth
in interface IImageProvider
public Float getHeight() throws IOException
IImageProvider
getHeight
in interface IImageProvider
IOException
public void setHeight(Float height)
IImageProvider
setHeight
in interface IImageProvider
public void setSize(Float width, Float height)
IImageProvider
setSize
in interface IImageProvider
public boolean isUseImageSize()
IImageProvider
isUseImageSize
in interface IImageProvider
public void setUseImageSize(boolean useImageSize)
IImageProvider
setUseImageSize
in interface IImageProvider
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
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |