Package org.fife.ui.rsyntaxtextarea
Class RSyntaxTextArea.MatchedBracketPopupTimer
- java.lang.Object
-
- javax.swing.Timer
-
- org.fife.ui.rsyntaxtextarea.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.CaretListenerRenders the text on the line containing the "matched bracket" after a delay.
-
-
Field Summary
Fields Modifier and Type Field Description private intmatchedBracketOffsprivate intorigDotprivate MatchedBracketPopuppopup
-
Constructor Summary
Constructors Modifier Constructor Description privateMatchedBracketPopupTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidcaretUpdate(javax.swing.event.CaretEvent e)voidrestart(int matchedBracketOffs)Restarts this timer, and stores a new offset to paint.voidstart()-
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
-
-
-
-
Field Detail
-
popup
private MatchedBracketPopup popup
-
origDot
private int origDot
-
matchedBracketOffs
private int matchedBracketOffs
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
caretUpdate
public void caretUpdate(javax.swing.event.CaretEvent e)
- Specified by:
caretUpdatein interfacejavax.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:
startin classjavax.swing.Timer
-
-