Home » openjdk-7 » javax » swing » text » [javadoc | source]
class: DefaultHighlighter.SafeDamager [javadoc | source]

All Implemented Interfaces:

This class invokes mapper.damageRange in EventDispatchThread. The only one instance per Highlighter is cretaed. When a number of ranges should be damaged it collects them into queue and damages them in consecutive order in run call.
Method from javax.swing.text.DefaultHighlighter$SafeDamager Summary:
damageRange,   run
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.DefaultHighlighter$SafeDamager Detail:
 public synchronized  void damageRange(Position pos0,
    Position pos1) 
    Adds the range to be damaged into the range queue. If the range queue is empty (the first call or run() was already invoked) then adds this class instance into EventDispatch queue. The method also tracks if the current document changed or component is null. In this case it removes all ranges added before from range queue.
 public synchronized  void run() 
    Executes range(s) damage and cleans range queue.