Module video

Class PreviewPanel

All Implemented Interfaces:
InteractionPanel, ImageObserver, MenuContainer, Serializable, Observer, Accessible

public class PreviewPanel extends JPanel implements Observer, InteractionPanel
The PreviewPanel displays all collected images. It is possible to navigate through the images and delete them by one or all together. An animation showing the resulting video can be started.
Author:
Dominick Leppich
See Also:
  • Constructor Details

  • Method Details

    • getPreviewFps

      public int getPreviewFps()
      Get the current preview speed (as fps).
      Returns:
      Preview speed in frames per second
    • onControl

      public void onControl(de.grogra.video.ui.PreviewPanel.ControlCommand cmd)
      Reaction to user interface control events.
      Parameters:
      cmd - - PreviewPanel.ControlCommand
    • update

      public void update(Observable observable, Object obj)
      Show the newest image, if the newest image was shown before and a new image is added to the ImageSequence. Update the control buttons as well.
      Specified by:
      update in interface Observer
    • setInteractionEnabled

      public void setInteractionEnabled(boolean enabled)
      Description copied from interface: InteractionPanel
      Enable or disable the interaction with this panel.
      Specified by:
      setInteractionEnabled in interface InteractionPanel
      Parameters:
      enabled - - New status