net.sourceforge.plantuml.api
Class ImageDataSimple

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

public class ImageDataSimple
extends Object
implements ImageData


Constructor Summary
ImageDataSimple()
           
ImageDataSimple(Dimension2D dim)
           
ImageDataSimple(int width, int height)
           
 
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

ImageDataSimple

public ImageDataSimple(int width,
                       int height)

ImageDataSimple

public ImageDataSimple()

ImageDataSimple

public ImageDataSimple(Dimension2D dim)
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 © 2014. All Rights Reserved.