ucar.unidata.idv.ui
Class ImageSequenceGrabber

java.lang.Object
  extended by ucar.unidata.idv.ui.ImageSequenceGrabber
All Implemented Interfaces:
ActionListener, Runnable, EventListener

public class ImageSequenceGrabber
extends Object
implements Runnable, ActionListener

Class ImageSequenceGrabber. Manages the movie capture dialog, capturing a series of jpegs from a ViewManager, writing them out to disk, previewing them and generating quicktime movies.

Author:
IDV Development Team

Field Summary
static String ATTR_ANIS_HEIGHT
          xml tag or attr name
static String ATTR_ANIS_POSTHTML
          xml tag or attr name
static String ATTR_ANIS_PREHTML
          xml tag or attr name
static String ATTR_ANIS_WIDTH
          xml tag or attr name
static String ATTR_APPENDTIME
          igml xml attributes
static String ATTR_FILENAME
          igml xml attributes
static String ATTR_IMAGEDIR
          igml xml attributes
static String ATTR_IMAGEPREFIX
          igml xml attributes
static String ATTR_IMAGESUFFIX
          igml xml attributes
static String ATTR_IMAGETEMPLATE
          xml tag or attr name
static String ATTR_KML_DESC
          xml tag or attr name
static String ATTR_KML_NAME
          xml tag or attr name
static String ATTR_KML_OPEN
          xml tag or attr name
static String ATTR_KML_VISIBILITY
          xml tag or attr name
static String ATTR_STEPS
          igml xml attributes
static String ATTR_VIEWPOINTFILE
           
static String CMD_CLEAR
          Action commands for gui buttons
static String CMD_GRAB
          Action commands for gui buttons
static String CMD_GRAB_ANIMATION
          Action commands for gui buttons
static String CMD_PREVIEW_CLOSE
          Action commands for gui buttons
static String CMD_PREVIEW_DELETE
          Action commands for gui buttons
static String CMD_PREVIEW_NEXT
          Action commands for gui buttons
static String CMD_PREVIEW_PLAY
          Action commands for gui buttons
static String CMD_PREVIEW_PREV
          Action commands for gui buttons
static String CMD_PREVIEW_SHOW
          Action commands for gui buttons
static String CMD_PUBLISH
          Action commands for gui buttons
static PatternFileFilter FILTER_ANIS
          Filter for HTML files
static String PROP_IMAGEALTDIR
          Property for the image file template
static String PROP_IMAGETEMPLATE
          Property for the image file template
static String TAG_DESCRIPTION
          xml tag or attr name
static String TAG_VISIBILITY
          xml tag or attr name
 
Constructor Summary
ImageSequenceGrabber(String filename, IntegratedDataViewer idv, ImageGenerator imageGenerator, Element scriptingNode, List imageFiles, Dimension size, double displayRate)
          This gets called when we automatically create a movie.
ImageSequenceGrabber(ViewManager viewManager)
          Create me with the given ViewManager
ImageSequenceGrabber(ViewManager viewManager, JComponent alternateComponent)
          Create me with the given ViewManager
ImageSequenceGrabber(ViewManager viewManager, JComponent alternateComponent, boolean justCaptureAnimation)
          Create a new ImageSequenceGrabber
ImageSequenceGrabber(ViewManager viewManager, String filename, IntegratedDataViewer idv)
          This gets called when we automatically create a movie.
ImageSequenceGrabber(ViewManager viewManager, String filename, IntegratedDataViewer idv, ImageGenerator imageGenerator, Element scriptingNode)
          This gets called when we automatically create a movie.
 
Method Summary
 void actionPerformed(ActionEvent ae)
          Handle gui actions
protected  String getFileSuffix()
          What file suffix should we use for the images.
static void main(String[] args)
          main
 void run()
          Run in a thread.
 void show()
          Show the main window
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILTER_ANIS

public static final PatternFileFilter FILTER_ANIS
Filter for HTML files


TAG_VISIBILITY

public static final String TAG_VISIBILITY
xml tag or attr name

See Also:
Constant Field Values

TAG_DESCRIPTION

public static final String TAG_DESCRIPTION
xml tag or attr name

See Also:
Constant Field Values

ATTR_KML_NAME

public static final String ATTR_KML_NAME
xml tag or attr name

See Also:
Constant Field Values

ATTR_KML_OPEN

public static final String ATTR_KML_OPEN
xml tag or attr name

See Also:
Constant Field Values

ATTR_KML_VISIBILITY

public static final String ATTR_KML_VISIBILITY
xml tag or attr name

See Also:
Constant Field Values

ATTR_KML_DESC

public static final String ATTR_KML_DESC
xml tag or attr name

See Also:
Constant Field Values

ATTR_ANIS_WIDTH

public static final String ATTR_ANIS_WIDTH
xml tag or attr name

See Also:
Constant Field Values

ATTR_ANIS_HEIGHT

public static final String ATTR_ANIS_HEIGHT
xml tag or attr name

See Also:
Constant Field Values

ATTR_ANIS_PREHTML

public static final String ATTR_ANIS_PREHTML
xml tag or attr name

See Also:
Constant Field Values

ATTR_ANIS_POSTHTML

public static final String ATTR_ANIS_POSTHTML
xml tag or attr name

See Also:
Constant Field Values

ATTR_FILENAME

public static final String ATTR_FILENAME
igml xml attributes

See Also:
Constant Field Values

ATTR_IMAGEDIR

public static final String ATTR_IMAGEDIR
igml xml attributes

See Also:
Constant Field Values

ATTR_IMAGESUFFIX

public static final String ATTR_IMAGESUFFIX
igml xml attributes

See Also:
Constant Field Values

ATTR_IMAGEPREFIX

public static final String ATTR_IMAGEPREFIX
igml xml attributes

See Also:
Constant Field Values

ATTR_IMAGETEMPLATE

public static final String ATTR_IMAGETEMPLATE
xml tag or attr name

See Also:
Constant Field Values

PROP_IMAGETEMPLATE

public static final String PROP_IMAGETEMPLATE
Property for the image file template

See Also:
Constant Field Values

PROP_IMAGEALTDIR

public static final String PROP_IMAGEALTDIR
Property for the image file template

See Also:
Constant Field Values

ATTR_APPENDTIME

public static final String ATTR_APPENDTIME
igml xml attributes

See Also:
Constant Field Values

ATTR_STEPS

public static final String ATTR_STEPS
igml xml attributes

See Also:
Constant Field Values

ATTR_VIEWPOINTFILE

public static final String ATTR_VIEWPOINTFILE
See Also:
Constant Field Values

CMD_GRAB

public static final String CMD_GRAB
Action commands for gui buttons

See Also:
Constant Field Values

CMD_PUBLISH

public static final String CMD_PUBLISH
Action commands for gui buttons

See Also:
Constant Field Values

CMD_GRAB_ANIMATION

public static final String CMD_GRAB_ANIMATION
Action commands for gui buttons

See Also:
Constant Field Values

CMD_CLEAR

public static final String CMD_CLEAR
Action commands for gui buttons

See Also:
Constant Field Values

CMD_PREVIEW_PLAY

public static final String CMD_PREVIEW_PLAY
Action commands for gui buttons

See Also:
Constant Field Values

CMD_PREVIEW_SHOW

public static final String CMD_PREVIEW_SHOW
Action commands for gui buttons

See Also:
Constant Field Values

CMD_PREVIEW_NEXT

public static final String CMD_PREVIEW_NEXT
Action commands for gui buttons

See Also:
Constant Field Values

CMD_PREVIEW_PREV

public static final String CMD_PREVIEW_PREV
Action commands for gui buttons

See Also:
Constant Field Values

CMD_PREVIEW_DELETE

public static final String CMD_PREVIEW_DELETE
Action commands for gui buttons

See Also:
Constant Field Values

CMD_PREVIEW_CLOSE

public static final String CMD_PREVIEW_CLOSE
Action commands for gui buttons

See Also:
Constant Field Values
Constructor Detail

ImageSequenceGrabber

public ImageSequenceGrabber(ViewManager viewManager)
Create me with the given ViewManager

Parameters:
viewManager - The view manager we are capturing images from

ImageSequenceGrabber

public ImageSequenceGrabber(ViewManager viewManager,
                            JComponent alternateComponent)
Create me with the given ViewManager

Parameters:
viewManager - The view manager we are capturing images from
alternateComponent - If non null then use this component as the source of the image

ImageSequenceGrabber

public ImageSequenceGrabber(ViewManager viewManager,
                            JComponent alternateComponent,
                            boolean justCaptureAnimation)
Create a new ImageSequenceGrabber

Parameters:
viewManager - associated ViewManager
alternateComponent - alternate component
justCaptureAnimation - true to just capture the animation

ImageSequenceGrabber

public ImageSequenceGrabber(ViewManager viewManager,
                            String filename,
                            IntegratedDataViewer idv)
This gets called when we automatically create a movie. It will not show the dialog window and will start up the animation capture

Parameters:
viewManager - The view manager we are capturing images from
filename - The file we are writing to
idv - The IDV

ImageSequenceGrabber

public ImageSequenceGrabber(ViewManager viewManager,
                            String filename,
                            IntegratedDataViewer idv,
                            ImageGenerator imageGenerator,
                            Element scriptingNode)
This gets called when we automatically create a movie. It will not show the dialog window and will start up the animation capture

Parameters:
viewManager - The view manager we are capturing images from
filename - The file we are writing to
idv - The IDV
scriptingNode - The igml node
imageGenerator - imageGenerator

ImageSequenceGrabber

public ImageSequenceGrabber(String filename,
                            IntegratedDataViewer idv,
                            ImageGenerator imageGenerator,
                            Element scriptingNode,
                            List imageFiles,
                            Dimension size,
                            double displayRate)
This gets called when we automatically create a movie. It will not show the dialog window and will start up the animation capture

Parameters:
filename - The file we are writing to
idv - The IDV
scriptingNode - The igml node
imageGenerator - imageGenerator
imageFiles - List of files to write
size - Size of image
displayRate - Display rate
Method Detail

show

public void show()
Show the main window


actionPerformed

public void actionPerformed(ActionEvent ae)
Handle gui actions

Specified by:
actionPerformed in interface ActionListener
Parameters:
ae - The ActionEvent

run

public void run()
Run in a thread.

Specified by:
run in interface Runnable

getFileSuffix

protected String getFileSuffix()
What file suffix should we use for the images. For now better by jpg

Returns:
File suffix

main

public static void main(String[] args)
main

Parameters:
args - args