Package org.fit.pdfdom.resource
Class ImageResource
- java.lang.Object
-
- org.fit.pdfdom.resource.HtmlResource
-
- org.fit.pdfdom.resource.ImageResource
-
public class ImageResource extends HtmlResource
-
-
Field Summary
-
Fields inherited from class org.fit.pdfdom.resource.HtmlResource
name
-
-
Constructor Summary
Constructors Constructor Description ImageResource(String name, BufferedImage image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()StringgetFileEnding()floatgetHeight()StringgetMimeType()floatgetWidth()doublegetX()doublegetY()voidsetX(double x)voidsetY(double y)-
Methods inherited from class org.fit.pdfdom.resource.HtmlResource
getName
-
-
-
-
Constructor Detail
-
ImageResource
public ImageResource(String name, BufferedImage image)
-
-
Method Detail
-
getData
public byte[] getData() throws IOException- Specified by:
getDatain classHtmlResource- Throws:
IOException
-
getFileEnding
public String getFileEnding()
- Specified by:
getFileEndingin classHtmlResource
-
getMimeType
public String getMimeType()
- Specified by:
getMimeTypein classHtmlResource
-
setX
public void setX(double x)
-
getX
public double getX()
-
setY
public void setY(double y)
-
getY
public double getY()
-
getHeight
public float getHeight()
-
getWidth
public float getWidth()
-
-