|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jempbox.xmp.Thumbnail
This class represents a thumbnail datatype.
Field Summary | |
static String |
FORMAT_JPEG
A supported thumnail format. |
protected Element |
parent
The DOM representation of this object. |
Constructor Summary | |
Thumbnail(Element parentElement)
Create a thumnail based on a parent property set. |
|
Thumbnail(XMPMetadata metadata)
Create a new thumbnail element. |
Method Summary | |
Element |
getElement()
Get the underlying XML element. |
String |
getFormat()
Get the format of the thumbnail. |
Integer |
getHeight()
Get the height of the image in pixels. |
String |
getImage()
Get the image data in base 64 encoding. |
Integer |
getWidth()
Get the width of the image in pixels. |
void |
setFormat(String format)
Set the format of the thumbnail, currently only JPEG is supported. |
void |
setHeight(Integer height)
Set the height of the element. |
void |
setImage(String image)
Set the image data in base 64 encoding. |
void |
setWidth(Integer width)
Set the width of the element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String FORMAT_JPEG
protected Element parent
Constructor Detail |
public Thumbnail(XMPMetadata metadata)
metadata
- The metadata document that his thumbnail will be part of.public Thumbnail(Element parentElement)
parentElement
- The parent element that will store the thumbnail properties.Method Detail |
public Element getElement()
public Integer getHeight()
NumberFormatException
- If there is an error creating the Integer.public void setHeight(Integer height)
height
- The updated height of the element.public Integer getWidth()
NumberFormatException
- If there is an error creating the Integer.public void setWidth(Integer width)
width
- The updated width of the element.public void setFormat(String format)
format
- The image format.public String getFormat()
public void setImage(String image)
image
- The image.public String getImage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |