Package cz.vutbr.fit.layout.impl
Class DefaultContentImage
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.DefaultContentImage
-
- All Implemented Interfaces:
ContentImage,ContentObject
public class DefaultContentImage extends Object implements ContentImage
- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description DefaultContentImage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getPngData()Gets the PNG data of the image if available.URLgetUrl()Obtains the image URL.voidsetPngData(byte[] pngData)voidsetUrl(URL url)StringtoString()
-
-
-
Method Detail
-
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.
-
setUrl
public void setUrl(URL 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.
-
setPngData
public void setPngData(byte[] pngData)
-
-