net.sourceforge.plantuml.api
Class ImageDataComplex

java.lang.Object
  extended by net.sourceforge.plantuml.api.ImageDataComplex
All Implemented Interfaces:
ImageData

public class ImageDataComplex
extends Object
implements ImageData


Constructor Summary
ImageDataComplex(Dimension2D info, CMapData cmap)
           
ImageDataComplex(Dimension2D info, CMapData cmap, String warningOrError)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageDataComplex

public ImageDataComplex(Dimension2D info,
                        CMapData cmap)

ImageDataComplex

public ImageDataComplex(Dimension2D info,
                        CMapData cmap,
                        String warningOrError)
Method Detail

getWidth

public int getWidth()
Description copied from interface: ImageData
Width in pixel of the image.

Specified by:
getWidth in interface ImageData
Returns:

getHeight

public int getHeight()
Description copied from interface: ImageData
Height in pixel of the image.

Specified by:
getHeight in interface ImageData
Returns:

containsCMapData

public boolean containsCMapData()
Description copied from interface: ImageData
Indicates if the image has some position information.

Specified by:
containsCMapData in interface ImageData
Returns:
true if the image has position information.

getCMapData

public String getCMapData(String nameId)
Description copied from interface: ImageData
Return position information as a CMap formated string. For example, if you call this method with 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>
 

Specified by:
getCMapData in interface ImageData
Parameters:
nameId - thie id to be used in the cmap data string.
Returns:

getWarningOrError

public String getWarningOrError()
Specified by:
getWarningOrError in interface ImageData


Copyright © 2013. All Rights Reserved.