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.ReplacedImage
getImage()
byte[]
getPngData()
Gets the PNG data of the image if available.URL
getUrl()
Obtains the image URL.void
setImage(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:ContentImage
Obtains the image URL.- Specified by:
getUrl
in interfaceContentImage
- Returns:
- The URL of the image or
null
when the image has no URL.
-
getPngData
public byte[] getPngData()
Description copied from interface:ContentImage
Gets the PNG data of the image if available.- Specified by:
getPngData
in interfaceContentImage
- Returns:
- The PNG data or
null
when the data is not available.
-
-