|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.rss.media.Thumbnail
public class Thumbnail
Image to represent the media.
Allows particular images to be used as representative images for the media object.
If multiple thumbnails are included, and time coding is not at play, it is assumed that the images are in order of importance.
It is possible to use an optional "time" attribute to change the image as the media plays.
Example:
<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>
Constructor Summary | |
---|---|
Thumbnail()
|
Method Summary | |
---|---|
Integer |
getHeight()
Returns the integer representing the value in pixels for the height of the thumbnail. |
String |
getTime()
Returns the time offset in relation to the media object. |
URI |
getURL()
Returns the URL of the thumbnail. |
String |
getURLString()
Returns the URL of the thumbnail as a string. |
Integer |
getWidth()
Returns the integer representing the value in pixels for the width of the thumbnail. |
void |
setHeight(int height)
Initializes the integer representing the value in pixels for the height of the thumbnail. |
void |
setHeight(Integer height)
Initializes the integer representing the value in pixels for the height of the thumbnail. |
void |
setTime(String time)
Initializes the time offset in relation to the media object. |
void |
setURL(URI url)
Initializes the URL of the thumbnail. |
void |
setURLString(String url)
Initializes the URL of the thumbnail as a string. |
void |
setWidth(int width)
Initializes the integer representing the value in pixels for the width of the thumbnail. |
void |
setWidth(Integer width)
Initializes the integer representing the value in pixels for the width of the thumbnail. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Thumbnail()
Method Detail |
---|
public void setURLString(String url) throws URISyntaxException
url
- an URL as a string. Shall not be null
.
NullPointerException
- if url
is null
.
URISyntaxException
- if the given string violates RFC 2396, as augmented by the URI
deviations.getURLString()
,
setURL(java.net.URI)
public String getURLString()
null
.
NullPointerException
- if no URL is defined in this thumbnail.setURLString(java.lang.String)
,
getURL()
public void setURL(URI url)
url
- an URL. Shall not be null
.
NullPointerException
- if url
is null
.getURL()
,
setURLString(java.lang.String)
public URI getURL()
null
if not yet initialized.setURL(java.net.URI)
,
getURLString()
public void setWidth(int width)
width
- a thumbnail width.getWidth()
,
setWidth(Integer)
public void setWidth(Integer width)
width
- a thumbnail width. May be null
.getWidth()
,
setWidth(int)
public Integer getWidth()
null
.setWidth(int)
public void setHeight(int height)
height
- a thumbnail height.setHeight(Integer)
,
getHeight()
public void setHeight(Integer height)
height
- a thumbnail height. May be null
.getHeight()
,
setHeight(int)
public Integer getHeight()
null
.setHeight(int)
public String getTime()
null
.setTime(java.lang.String)
public void setTime(String time)
time
- a time offset. May be null
.getTime()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |