Class RSyntaxTextArea.MatchedBracketPopupTimer

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.event.CaretListener
    Enclosing class:
    RSyntaxTextArea

    private final class RSyntaxTextArea.MatchedBracketPopupTimer
    extends javax.swing.Timer
    implements java.awt.event.ActionListener, javax.swing.event.CaretListener
    Renders the text on the line containing the "matched bracket" after a delay.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      void caretUpdate​(javax.swing.event.CaretEvent e)  
      void restart​(int matchedBracketOffs)
      Restarts this timer, and stores a new offset to paint.
      void start()  
      • Methods inherited from class javax.swing.Timer

        addActionListener, fireActionPerformed, getActionCommand, getActionListeners, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setActionCommand, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • origDot

        private int origDot
      • matchedBracketOffs

        private int matchedBracketOffs
    • Constructor Detail

      • MatchedBracketPopupTimer

        private MatchedBracketPopupTimer()
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • caretUpdate

        public void caretUpdate​(javax.swing.event.CaretEvent e)
        Specified by:
        caretUpdate in interface javax.swing.event.CaretListener
      • restart

        public void restart​(int matchedBracketOffs)
        Restarts this timer, and stores a new offset to paint.
        Parameters:
        matchedBracketOffs - The offset of the new matched bracket.
      • start

        public void start()
        Overrides:
        start in class javax.swing.Timer