de.flaxen.jdvdslideshow.commands
Class Photo

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.Photo
All Implemented Interfaces:
java.lang.Cloneable

public class Photo
extends SubtitleCommand

Author:
develop

Field Summary
static java.lang.String[] extentions
           
 
Fields inherited from class de.flaxen.jdvdslideshow.commands.FileCommand
activeFileDisplayName
 
Fields inherited from class de.flaxen.jdvdslideshow.commands.Command
name
 
Constructor Summary
Photo()
           
Photo(java.lang.String file)
           
 
Method Summary
 void copyTo(Command command)
           
protected  void generate(java.lang.StringBuilder builder)
           
 boolean getAudio()
           
 CommandEditorJPanel getCommandPanel()
           
 Effect getEffect()
           
 java.awt.Image getImage(int thumbWidth, int thumbHeight)
           
 java.awt.Dimension getImageSize()
           
 javax.swing.ImageIcon getThumbnail()
           
 boolean hasThumbLoaded()
           
static int indexOfPhotoExtention(java.lang.String file)
           
static boolean isPhotoCommand(java.lang.String lineLowerCase)
           
protected  void parse(java.lang.String[] elements)
           
 void resetThumbnail()
           
 void setAudio(boolean audio)
           
 void setEffect(Effect effect)
           
 void setName(java.lang.String name)
           
 
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, getInfo, getListIndex, getName, getTimeIndex, hasAudio, hasExtention, hasExtention, parse, setAudioCommand, setListIndex, setTimeIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extentions

public static java.lang.String[] extentions
Constructor Detail

Photo

public Photo()

Photo

public Photo(java.lang.String file)
Method Detail

isPhotoCommand

public static boolean isPhotoCommand(java.lang.String lineLowerCase)

indexOfPhotoExtention

public static int indexOfPhotoExtention(java.lang.String file)

setName

public void setName(java.lang.String name)
Overrides:
setName in class Command

getAudio

public boolean getAudio()

setAudio

public void setAudio(boolean audio)

getEffect

public Effect getEffect()

setEffect

public void setEffect(Effect effect)

getCommandPanel

public CommandEditorJPanel getCommandPanel()
Overrides:
getCommandPanel in class Command

parse

protected void parse(java.lang.String[] elements)
Overrides:
parse in class Command
Parameters:
elements -

generate

protected void generate(java.lang.StringBuilder builder)
Overrides:
generate in class Command

hasThumbLoaded

public boolean hasThumbLoaded()

resetThumbnail

public void resetThumbnail()

getThumbnail

public javax.swing.ImageIcon getThumbnail()

getImage

public java.awt.Image getImage(int thumbWidth,
                               int thumbHeight)
                        throws java.io.FileNotFoundException,
                               java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

getImageSize

public java.awt.Dimension getImageSize()

copyTo

public void copyTo(Command command)
Overrides:
copyTo in class SubtitleCommand