Class SegmentLabel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
ca.phon.app.session.editor.view.timeline.SegmentLabel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class SegmentLabel extends JComponent
Simple component which displays two labels for the start/end time of a segment. Start time can be locked/unlocked as necessary for segmentation.
See Also:
  • Constructor Details

    • SegmentLabel

      public SegmentLabel()
  • Method Details

    • setSegmentWindow

      public void setSegmentWindow(int window)
    • lockSegmentStartTime

      public void lockSegmentStartTime(long time)
      Lock segment start time to the given value. If time invalid input: '<' 0, start time lock is disabled.
      Parameters:
      time -
    • setCurrentTime

      public void setCurrentTime(long time)
      Seg current time
    • getCurrentTime

      public long getCurrentTime()
    • getStartTime

      public long getStartTime()
    • getStartLockTime

      public long getStartLockTime()
    • refreshLabels

      public void refreshLabels()