Class MediaPlayerEditorView

All Implemented Interfaces:
IExtendable, ImageObserver, MenuContainer, Serializable, Accessible

public class MediaPlayerEditorView extends EditorView
Panel for media player in the session editor. The media player may be embedded or external. If embedded, the media player canvas is placed in the glass pane of the session editor window. If external, the media player canvas is placed in an accessory window of the session editor window.
See Also:
  • Field Details

  • Constructor Details

    • MediaPlayerEditorView

      public MediaPlayerEditorView(SessionEditor editor)
  • Method Details

    • onSessionChanged

      public void onSessionChanged(EditorEvent<Session> ee)
    • isEmbedded

      public boolean isEmbedded()
    • setEmbedded

      public void setEmbedded(boolean embedded)
    • getMediaCanvasX

      public int getMediaCanvasX()
    • setMediaCanvasX

      public void setMediaCanvasX(int mediaCanvasX)
    • getMediaCanvasY

      public int getMediaCanvasY()
    • setMediaCanvasY

      public void setMediaCanvasY(int mediaCanvasY)
    • getMediaCanvasPosition

      public Point getMediaCanvasPosition()
    • getMediaCanvasWidth

      public int getMediaCanvasWidth()
    • setMediaCanvasWidth

      public void setMediaCanvasWidth(int mediaCanvasWidth)
    • getMediaCanvasHeight

      public int getMediaCanvasHeight()
    • setMediaCanvasHeight

      public void setMediaCanvasHeight(int mediaCanvasHeight)
    • setMediaCanvasPosition

      public void setMediaCanvasPosition(Point p)
    • getMediaCanvasSize

      public Dimension getMediaCanvasSize()
    • setMediaCanvasSize

      public void setMediaCanvasSize(Dimension size)
    • isAdjustVideo

      public boolean isAdjustVideo()
      Should the media position move with the current record.
    • getName

      public String getName()
      Description copied from class: EditorView
      View name
      Specified by:
      getName in class EditorView
      Returns:
      the view name
    • getIcon

      public ImageIcon getIcon()
      Description copied from class: EditorView
      View icon
      Specified by:
      getIcon in class EditorView
      Returns:
      view icon
    • getMenu

      public JMenu getMenu()
      Description copied from class: EditorView
      Get the menu for the view (if any)
      Specified by:
      getMenu in class EditorView
      Returns:
      menu for the view or null if this view does not have a menu
    • hideMediaPlayerCanvas

      public void hideMediaPlayerCanvas()
    • showVideoInWindowGlassPane

      public void showVideoInWindowGlassPane()
    • setupMediaCanvasBounds

      public void setupMediaCanvasBounds()
    • setupMediaCanvasBounds

      public void setupMediaCanvasBounds(boolean allowSnap)
    • getPreferredDockPosition

      public DockPosition getPreferredDockPosition()
      Description copied from class: EditorView
      Gets the preferred dock position for the view
      Overrides:
      getPreferredDockPosition in class EditorView
      Returns:
      preferred dock position
    • getPlayer

      public PhonMediaPlayer getPlayer()
    • onLoadMedia

      public void onLoadMedia(PhonActionEvent pae)
      Called when we need to refresh the media player. Media players need to be refreshed when the PlayerCanvas they are listening to becomes invalid.
      Parameters:
      pae -
    • onLoadMedia

      public void onLoadMedia(EditorEvent ee)
    • reloadMedia

      public void reloadMedia()
    • onMenuSelectGoto

      public void onMenuSelectGoto(PhonActionEvent pae) throws ParseException
      Throws:
      ParseException
    • onMenuGoto

      public void onMenuGoto(PhonActionEvent pae)
    • onToggleAdjustVideo

      public void onToggleAdjustVideo()
      Toggle the option to trun on/off moving video with the current record (while paused.)
    • getStateProperties

      public Properties getStateProperties()
      Description copied from class: EditorView
      Return state information for the view. This is information which will be saved with the editor perspective and loaded when the view is opened again.
      Overrides:
      getStateProperties in class EditorView
    • loadStateProperties

      public void loadStateProperties(Properties props)
      Description copied from class: EditorView
      Load state information for the view. This is information which was saved with the editor perspective and loaded when the view is opened again.
      Overrides:
      loadStateProperties in class EditorView
      Parameters:
      props - state properties
    • toggleEmbeddedExternal

      public void toggleEmbeddedExternal()
      Toggle between embedded and external video player. This action is undoable.
    • moveToExternalWindow

      public void moveToExternalWindow()