Class FlatOccurrenceMarker

  • All Implemented Interfaces:
    org.fife.ui.rsyntaxtextarea.OccurrenceMarker

    class FlatOccurrenceMarker
    extends java.lang.Object
    implements org.fife.ui.rsyntaxtextarea.OccurrenceMarker
    Delegating occurrence marker that does not mark token at caret if it does not occur elsewhere.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.fife.ui.rsyntaxtextarea.OccurrenceMarker delegate  
    • Constructor Summary

      Constructors 
      Constructor Description
      FlatOccurrenceMarker​(org.fife.ui.rsyntaxtextarea.OccurrenceMarker delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.fife.ui.rsyntaxtextarea.Token getTokenToMark​(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)  
      boolean isValidType​(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea, org.fife.ui.rsyntaxtextarea.Token t)  
      void markOccurrences​(org.fife.ui.rsyntaxtextarea.RSyntaxDocument doc, org.fife.ui.rsyntaxtextarea.Token t, org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaHighlighter h, org.fife.ui.rtextarea.SmartHighlightPainter p)  
      • Methods inherited from class java.lang.Object

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

      • delegate

        private final org.fife.ui.rsyntaxtextarea.OccurrenceMarker delegate
    • Constructor Detail

      • FlatOccurrenceMarker

        FlatOccurrenceMarker​(org.fife.ui.rsyntaxtextarea.OccurrenceMarker delegate)
    • Method Detail

      • getTokenToMark

        public org.fife.ui.rsyntaxtextarea.Token getTokenToMark​(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)
        Specified by:
        getTokenToMark in interface org.fife.ui.rsyntaxtextarea.OccurrenceMarker
      • isValidType

        public boolean isValidType​(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea,
                                   org.fife.ui.rsyntaxtextarea.Token t)
        Specified by:
        isValidType in interface org.fife.ui.rsyntaxtextarea.OccurrenceMarker
      • markOccurrences

        public void markOccurrences​(org.fife.ui.rsyntaxtextarea.RSyntaxDocument doc,
                                    org.fife.ui.rsyntaxtextarea.Token t,
                                    org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaHighlighter h,
                                    org.fife.ui.rtextarea.SmartHighlightPainter p)
        Specified by:
        markOccurrences in interface org.fife.ui.rsyntaxtextarea.OccurrenceMarker