|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jempbox.xmp.Thumbnail
public class Thumbnail
This class represents a thumbnail datatype.
Field Summary | |
---|---|
static java.lang.String |
FORMAT_JPEG
A supported thumnail format. |
protected org.w3c.dom.Element |
parent
The DOM representation of this object. |
Constructor Summary | |
---|---|
Thumbnail(org.w3c.dom.Element parentElement)
Create a thumnail based on a parent property set. |
|
Thumbnail(XMPMetadata metadata)
Create a new thumbnail element. |
Method Summary | |
---|---|
org.w3c.dom.Element |
getElement()
Get the underlying XML element. |
java.lang.String |
getFormat()
Get the format of the thumbnail. |
java.lang.Integer |
getHeight()
Get the height of the image in pixels. |
java.lang.String |
getImage()
Get the image data in base 64 encoding. |
java.lang.Integer |
getWidth()
Get the width of the image in pixels. |
void |
setFormat(java.lang.String format)
Set the format of the thumbnail, currently only JPEG is supported. |
void |
setHeight(java.lang.Integer height)
Set the height of the element. |
void |
setImage(java.lang.String image)
Set the image data in base 64 encoding. |
void |
setWidth(java.lang.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 java.lang.String FORMAT_JPEG
protected org.w3c.dom.Element parent
Constructor Detail |
---|
public Thumbnail(XMPMetadata metadata)
metadata
- The metadata document that his thumbnail will be part of.public Thumbnail(org.w3c.dom.Element parentElement)
parentElement
- The parent element that will store the thumbnail properties.Method Detail |
---|
public org.w3c.dom.Element getElement()
public java.lang.Integer getHeight()
public void setHeight(java.lang.Integer height)
height
- The updated height of the element.public java.lang.Integer getWidth()
public void setWidth(java.lang.Integer width)
width
- The updated width of the element.public void setFormat(java.lang.String format)
format
- The image format.public java.lang.String getFormat()
public void setImage(java.lang.String image)
image
- The image.public java.lang.String getImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |