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.CaretListener
Renders the text on the line containing the "matched bracket" after a delay.
-
-
Field Summary
Fields Modifier and Type Field Description private int
matchedBracketOffs
private int
origDot
private MatchedBracketPopup
popup
-
Constructor Summary
Constructors Modifier Constructor Description private
MatchedBracketPopupTimer()
-
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
-
-
-
-
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:
actionPerformed
in interfacejava.awt.event.ActionListener
-
caretUpdate
public void caretUpdate(javax.swing.event.CaretEvent e)
- Specified by:
caretUpdate
in 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:
start
in classjavax.swing.Timer
-
-