public class ProductImage extends Object implements Image
| Constructor and Description |
|---|
ProductImage(ProductBean bean)
Creates a ProductImage.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getDescription()
Retrieves some text that describes the image, for example the document filename or title.
|
String |
getMimeType()
Retrieves the mime type of the image - "image/jpeg", "image/gif" etc.
|
Dimension |
getSize()
Retrieves the natural size of the image.
|
void |
setDescription(String description)
Sets some text that describes the image, for example the document filename or title.
|
void |
setMimeType(String mimeType)
Sets the mime type of the image.
|
void |
setSize(Dimension size)
Sets the natural size of the image.
|
public ProductImage(ProductBean bean)
bean - the bean to retrieve the image for.public String getMimeType()
getMimeType in interface ContentAccesspublic void setMimeType(String mimeType)
mimeType - the image mime type - "image/jpeg", "image/gif" etc.public Dimension getSize()
public void setSize(Dimension size)
size - the image size.public byte[] getBytes()
getBytes in interface ContentAccesspublic String getDescription()
getDescription in interface ContentAccesspublic void setDescription(String description)
description - the short document description.Copyright © 2016. All rights reserved.