Class JTimelineEditor

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JTimelineEditor extends JPanel
JTimelineEditor visualizes the movie timeline, an insertion point and the start and end position of a movie clip.

The insertion point (playhead) also shows the current time of the movie.

If a movie has n time steps, then there are n+1 insertion points.

Author:
Werner Randelshofer
See Also:
  • Constructor Details

    • JTimelineEditor

      public JTimelineEditor()
      Creates new form JTimelineEditor
  • Method Details

    • getMovie

      public Movie getMovie()
    • setMovie

      public void setMovie(Movie newValue)
    • paintComponent

      protected void paintComponent(Graphics gr)
      Overrides:
      paintComponent in class JComponent
    • paintComponentOld

      protected void paintComponentOld(Graphics gr)
    • timeToPos

      protected int timeToPos(Rational time)
    • posToTime

      protected Rational posToTime(int pos)
    • getSelectionStartBounds

      protected Rectangle getSelectionStartBounds()
    • getSelectionEndBounds

      protected Rectangle getSelectionEndBounds()
    • getInsertionPointBounds

      protected Rectangle getInsertionPointBounds()
    • getTrackBounds

      protected Rectangle getTrackBounds()
    • getBackgroundBorder

      protected Border getBackgroundBorder()
    • getTrackBorder

      protected Border getTrackBorder(boolean isOnActiveWindow)
    • getThumbBorder

      protected Border getThumbBorder(boolean isOnActiveWindow)
    • getInsertionPointIcon

      protected Icon getInsertionPointIcon(boolean isFocused)
    • getSelectionStartIcon

      protected Icon getSelectionStartIcon(boolean isFocused)
    • getSelectionEndIcon

      protected Icon getSelectionEndIcon(boolean isFocused)
    • readBorders

      protected Border[] readBorders(String resource, int count, boolean isHorizontal, Insets insets)
    • readIcons

      protected Icon[] readIcons(String resource, int count, boolean isHorizontal, Point offset)
    • getStyleSuffix

      protected String getStyleSuffix()
    • getTimeTrack

      public int getTimeTrack()
      Returns the track number used as a time base. If this value is -1, then no track is used as a time base.
      Returns:
      The track number or -1.
    • setTimeTrack

      public void setTimeTrack(int timeTrack)
      Sets the track number used as a time base.
      Parameters:
      timeTrack - Track number or -1.