de.flaxen.jdvdslideshow.commands
Class Photo
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.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.Command |
name |
|
Constructor Summary |
Photo()
|
Photo(java.lang.String file)
|
| 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 |
extentions
public static java.lang.String[] extentions
Photo
public Photo()
Photo
public Photo(java.lang.String file)
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