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() |
java.lang.String |
getCMapData(java.lang.String nameId)
Return position information as a CMap formated string.
|
java.lang.String |
getWarningOrError() |
static ImageData |
ok() |
getHeight, getStatus, getWidth, setStatus
public ImageDataSimple(int width, int height)
public ImageDataSimple(XDimension2D dim)
public ImageDataSimple(XDimension2D dim, int status)
public boolean containsCMapData()
ImageData
true
if the image has position information.public java.lang.String getCMapData(java.lang.String nameId)
ImageData
nameId
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()