public class ImageDataSimple extends ImageDataAbstract
Constructor and Description |
---|
ImageDataSimple(java.awt.geom.Dimension2D dim) |
ImageDataSimple(int width,
int height) |
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(java.awt.geom.Dimension2D dim)
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
- thie id to be used in the cmap data string.public java.lang.String getWarningOrError()
public static ImageData error()
public static ImageData ok()
Copyright © 2020. All Rights Reserved.