Package cz.vutbr.fit.layout.cssbox.impl
Class ContentImageImpl
- java.lang.Object
-
- cz.vutbr.fit.layout.cssbox.impl.ContentImageImpl
-
- All Implemented Interfaces:
ContentImage,ContentObject
public class ContentImageImpl extends Object implements ContentImage
- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description ContentImageImpl(org.fit.cssbox.layout.ReplacedImage image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.fit.cssbox.layout.ReplacedImagegetImage()byte[]getPngData()Gets the PNG data of the image if available.URLgetUrl()Obtains the image URL.voidsetImage(org.fit.cssbox.layout.ReplacedImage image)
-
-
-
Method Detail
-
getImage
public org.fit.cssbox.layout.ReplacedImage getImage()
-
setImage
public void setImage(org.fit.cssbox.layout.ReplacedImage image)
-
getUrl
public URL getUrl()
Description copied from interface:ContentImageObtains the image URL.- Specified by:
getUrlin interfaceContentImage- Returns:
- The URL of the image or
nullwhen the image has no URL.
-
getPngData
public byte[] getPngData()
Description copied from interface:ContentImageGets the PNG data of the image if available.- Specified by:
getPngDatain interfaceContentImage- Returns:
- The PNG data or
nullwhen the data is not available.
-
-