Package net.sourceforge.plantuml.api
Class ImageDataSimple
- java.lang.Object
-
- net.sourceforge.plantuml.api.ImageDataAbstract
-
- net.sourceforge.plantuml.api.ImageDataSimple
-
- All Implemented Interfaces:
ImageData
public class ImageDataSimple extends ImageDataAbstract
-
-
Constructor Summary
Constructors Constructor Description ImageDataSimple(int width, int height)ImageDataSimple(XDimension2D dim)ImageDataSimple(XDimension2D dim, int status)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsCMapData()Indicates if the image has some position information.static ImageDataerror()StringgetCMapData(String nameId)Return position information as a CMap formated string.StringgetWarningOrError()static ImageDataok()-
Methods inherited from class net.sourceforge.plantuml.api.ImageDataAbstract
getHeight, getStatus, getWidth, setStatus
-
-
-
-
Constructor Detail
-
ImageDataSimple
public ImageDataSimple(int width, int height)
-
ImageDataSimple
public ImageDataSimple(XDimension2D dim)
-
ImageDataSimple
public ImageDataSimple(XDimension2D dim, int status)
-
-
Method Detail
-
containsCMapData
public boolean containsCMapData()
Description copied from interface:ImageDataIndicates if the image has some position information.- Returns:
trueif the image has position information.
-
getCMapData
public String getCMapData(String nameId)
Description copied from interface:ImageDataReturn position information as a CMap formated string. For example, if you call this method withnameIdset 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>
- Parameters:
nameId- the id to be used in the cmap data string.
-
getWarningOrError
public String getWarningOrError()
-
error
public static ImageData error()
-
ok
public static ImageData ok()
-
-