| Constructor and Description |
|---|
ImageDataSimple() |
ImageDataSimple(Dimension2D dim) |
ImageDataSimple(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCMapData()
Indicates if the image has some position information.
|
String |
getCMapData(String nameId)
Return position information as a CMap formated string.
|
int |
getHeight()
Height in pixel of the image.
|
String |
getWarningOrError() |
int |
getWidth()
Width in pixel of the image.
|
public ImageDataSimple(int width,
int height)
public ImageDataSimple()
public ImageDataSimple(Dimension2D dim)
public int getWidth()
ImageDatapublic int getHeight()
ImageDatapublic boolean containsCMapData()
ImageDatacontainsCMapData in interface ImageDatatrue if the image has position information.public String getCMapData(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>
getCMapData in interface ImageDatanameId - thie id to be used in the cmap data string.public String getWarningOrError()
getWarningOrError in interface ImageDataCopyright © 2015. All Rights Reserved.