Class AnnotationPanel

    • Field Detail

      • BORDER_THICKNESS

        public static final int BORDER_THICKNESS
        The thickness of the border around the button
        See Also:
        Constant Field Values
      • OFF_COLOUR

        public static final Color OFF_COLOUR
        the off colour for a togglable button's boarder
      • ON_COLOUR

        public static final Color ON_COLOUR
        the on colour for a togglable button's boarder
      • m_Listeners

        protected List<AnnotationListener> m_Listeners
        The list of listeners registered with this panel
      • m_Binding

        protected Binding m_Binding
        The binding this panel manages
      • m_Action

        protected adams.gui.action.AbstractBaseAction m_Action
        the action to perform when the binding is activate
      • m_Interval

        protected long m_Interval
        The Interval which this toggle runs at
      • m_IsToggleable

        protected boolean m_IsToggleable
        a bool to say if this is a toggleable binding or not
      • m_IsToggled

        protected boolean m_IsToggled
        a bool to say if this binding is currently toggled on
      • m_Button

        protected adams.gui.core.BaseButton m_Button
        a button to indicate when a binding is pressed or toggled on
    • Constructor Detail

      • AnnotationPanel

        public AnnotationPanel()
    • Method Detail

      • configureAnnotationPanel

        public void configureAnnotationPanel​(Binding binding,
                                             VLCjDirectRenderPanel videoPlayer)
        Constructs a AnnotationPanel
        Parameters:
        binding - the binding this panel manages
      • makeStep

        protected void makeStep​(Date timestamp)
        Creates a step for a given timestamp and alerts the listeners
        Parameters:
        timestamp - the timestamp for the step
      • initialize

        protected void initialize()
        Overrides:
        initialize in class adams.gui.core.BasePanel
      • initGUI

        protected void initGUI()
        Overrides:
        initGUI in class adams.gui.core.BasePanel
      • finishInit

        protected void finishInit()
        Overrides:
        finishInit in class adams.gui.core.BasePanel
      • addListener

        public void addListener​(AnnotationListener listener)
        Adds a listener to this panel
        Parameters:
        listener - the listener to add
      • addKeyBinding

        protected adams.gui.action.AbstractBaseAction addKeyBinding​(Binding binding)
        Adds a binding to the panel
        Parameters:
        binding - : binding to add
        Returns:
      • notifyListeners

        protected void notifyListeners​(Step step)
        Notifies all listeners
        Parameters:
        step - the step to send in the notification
      • tickHappened

        public void tickHappened​(TickEvent e)
        Description copied from interface: TickListener
        Called by the object the listener is registered with to aleart the Ticklistener that a tick has happened
        Specified by:
        tickHappened in interface TickListener
        Parameters:
        e - an event that contains information about the tick