de.flaxen.jdvdslideshow.commands
Class Background
java.lang.Object
de.flaxen.jdvdslideshow.commands.Command
de.flaxen.jdvdslideshow.commands.FileCommand
de.flaxen.jdvdslideshow.commands.DurationCommand
de.flaxen.jdvdslideshow.commands.SubtitleCommand
de.flaxen.jdvdslideshow.commands.Background
- All Implemented Interfaces:
- java.lang.Cloneable
public class Background
- extends SubtitleCommand
background:duration:subtitle:image.jpg Makes a slide with the current
background image (or black if no image is passed). If a new image name is
passed, the background will be reset to that picture. Examples:
"background:2" will display the current background for 2 seconds.
"background:2::image.jpg" will set the background to image.jpg and also
display it for 2 seconds. "background:0::image.jpg" will set the background
image to image.jpg, but will not use it until the next picture. "black" or
"white" can be used instead of an image name to display a black or white
background.
- Author:
- develop
| Fields inherited from class de.flaxen.jdvdslideshow.commands.Command |
name |
|
Constructor Summary |
Background()
Creates a new instance of Background |
| Methods inherited from class de.flaxen.jdvdslideshow.commands.Command |
clone, createCommand, generate, getAudioCommand, getAudioTimeIndex, getCommandPanel, getInfo, getListIndex, getName, getTimeIndex, hasAudio, hasExtention, hasExtention, parse, setAudioCommand, setListIndex, setName, setTimeIndex |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BackgroundName
public static final java.lang.String BackgroundName
- See Also:
- Constant Field Values
Background
public Background()
- Creates a new instance of Background
isBackgroundCommand
public static boolean isBackgroundCommand(java.lang.String lineLowerCase)
getImage
public java.io.File getImage()
setImage
public void setImage(java.io.File image)
parse
protected void parse(java.lang.String[] elements)
- Overrides:
parse in class Command
generate
protected void generate(java.lang.StringBuilder builder)
- Overrides:
generate in class Command
copyTo
public void copyTo(Command command)
- Overrides:
copyTo in class SubtitleCommand