public class XMLVideo extends AbstractLink implements Alignment
Modifier and Type | Field and Description |
---|---|
static short |
DAILYMOTION
The dailymotion video type.
|
static float |
FACTOR
The Heiht / Width factor.
|
static short |
MP4
The MP4 video type.
|
static short |
OGG
The OGG video type.
|
static short |
WEBM
The WEBM video type.
|
static short |
YOUTUBE
The youtube video type.
|
isAbsolute, isValid
TYPE_NONE
Constructor and Description |
---|
XMLVideo(short type)
Create an embdeed video link.
|
Modifier and Type | Method and Description |
---|---|
char |
getAlignment()
Return the alignment of the video.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
int |
getHeight()
Return the image height.
|
java.lang.String |
getPath()
Return the link path.
|
java.lang.String |
getText()
Return null.
|
short |
getType()
Return the video type.
|
java.net.URL |
getURL()
Return the link URL.
|
java.lang.String |
getVideoURL()
Return the link to the video.
|
int |
getWidth()
Return the image width.
|
boolean |
hasHeight()
Return true if the image has a specified height.
|
boolean |
hasWidth()
Return true if the image has a specified width.
|
void |
setAlignment(char align)
Set the alignment of the video.
|
void |
setHeight(int height)
Set the video height.
|
void |
setPath(java.lang.String path)
Set the video path
|
void |
setWidth(int width)
Set the video width.
|
getCustomStyles, getLineNumber, isAbsolute, isValid, setCustomStyles, setLineNumber, setValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNotNullURL, getURLAsString, getURLAsString, getURLAsString
getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStyle
hasLineNumber
public static final short YOUTUBE
public static final short DAILYMOTION
public static final short OGG
public static final short MP4
public static final short WEBM
public static final float FACTOR
public XMLVideo(short type)
type
- the video typepublic java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public short getType()
public java.lang.String getVideoURL()
public void setPath(java.lang.String path) throws java.net.MalformedURLException
path
- the video pathjava.net.MalformedURLException
- if the path is an invalid URLpublic void setAlignment(char align)
setAlignment
in interface Alignment
align
- the alignmentAlignment
public char getAlignment()
getAlignment
in interface Alignment
Alignment
public void setWidth(int width)
width
- the video widthpublic void setHeight(int height)
height
- the video heightpublic int getWidth()
public int getHeight()
public boolean hasWidth()
public boolean hasHeight()
public java.net.URL getURL()
getURL
in interface ExternalLink
public java.lang.String getText()
getText
in interface ExternalLink
public java.lang.String getPath()
getPath
in interface ExternalLink
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence