public class ImageDataSimple extends ImageDataAbstract
| Constructor and Description |
|---|
ImageDataSimple(int width,
int height) |
ImageDataSimple(XDimension2D dim) |
ImageDataSimple(XDimension2D dim,
int status) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCMapData()
Indicates if the image has some position information.
|
static ImageData |
error() |
static ImageData |
error(java.lang.Throwable e) |
java.lang.String |
getCMapData(java.lang.String nameId)
Return position information as a CMap formated string.
|
java.lang.Throwable |
getRootCause() |
java.lang.String |
getWarningOrError() |
static ImageData |
ok() |
getHeight, getStatus, getWidth, setStatuspublic ImageDataSimple(int width,
int height)
public ImageDataSimple(XDimension2D dim)
public ImageDataSimple(XDimension2D dim, int status)
public boolean containsCMapData()
ImageDatatrue if the image has position information.public java.lang.String getCMapData(java.lang.String nameId)
ImageDatanameId set to "foo_map", you will get
something like:
<map id="foo_map" name="foo_map"> <area shape="rect" id="..." href="..." title="..." alt="" coords="64,68,93,148"/> </map>
nameId - the id to be used in the cmap data string.public java.lang.String getWarningOrError()
public static ImageData error()
public static ImageData ok()
public static ImageData error(java.lang.Throwable e)
public java.lang.Throwable getRootCause()