de.flaxen.jdvdslideshow.commands
Class Background

java.lang.Object
  extended by de.flaxen.jdvdslideshow.commands.Command
      extended by de.flaxen.jdvdslideshow.commands.FileCommand
          extended by de.flaxen.jdvdslideshow.commands.DurationCommand
              extended by de.flaxen.jdvdslideshow.commands.SubtitleCommand
                  extended by 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

Field Summary
static java.lang.String BackgroundName
           
 
Fields inherited from class de.flaxen.jdvdslideshow.commands.FileCommand
activeFileDisplayName
 
Fields inherited from class de.flaxen.jdvdslideshow.commands.Command
name
 
Constructor Summary
Background()
          Creates a new instance of Background
 
Method Summary
 void copyTo(Command command)
           
protected  void generate(java.lang.StringBuilder builder)
           
 java.io.File getImage()
           
static boolean isBackgroundCommand(java.lang.String lineLowerCase)
           
protected  void parse(java.lang.String[] elements)
           
 void setImage(java.io.File image)
           
 
Methods inherited from class de.flaxen.jdvdslideshow.commands.SubtitleCommand
getSubtitle, setSubtitle
 
Methods inherited from class de.flaxen.jdvdslideshow.commands.DurationCommand
generateDuration, getDuration, parseDuration, setDuration
 
Methods inherited from class de.flaxen.jdvdslideshow.commands.FileCommand
getDisplayName
 
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
 

Field Detail

BackgroundName

public static final java.lang.String BackgroundName
See Also:
Constant Field Values
Constructor Detail

Background

public Background()
Creates a new instance of Background

Method Detail

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