Class QueryRendererHelper

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.util.List<com.im.commons.Pair<java.lang.Integer,​java.lang.Integer>> findQueryHighlights​(com.im.df.api.dml.DFTermExpression lastExecutedQuery, com.im.df.api.ddl.DFField field, java.lang.String text)
      Finds all occurrences of patterns searched by "contains", "starts with" and "ends with" operators in a given text.
      protected static void findSubstrings​(java.util.List<com.im.commons.Pair<java.lang.Integer,​java.lang.Integer>> result, java.lang.String text, java.lang.String pattern, boolean caseInsensitive)  
      javax.swing.text.Document getDocument()  
      javax.swing.text.EditorKit getEditorKit()  
      static void highlightHits​(com.im.df.api.dml.DFTermExpression lastExecutedQuery, com.im.df.api.ddl.DFField field, java.awt.Color bgColor, javax.swing.text.StyledDocument doc)  
      • Methods inherited from class java.lang.Object

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

      • QueryRendererHelper

        public QueryRendererHelper​(IJCWidgetTextRenderer.TextFormatInfo tfi,
                                   com.im.df.api.dml.DFTermExpression lastExecutedQuery,
                                   com.im.df.api.ddl.DFField field,
                                   boolean multiline)
    • Method Detail

      • highlightHits

        public static void highlightHits​(com.im.df.api.dml.DFTermExpression lastExecutedQuery,
                                         com.im.df.api.ddl.DFField field,
                                         java.awt.Color bgColor,
                                         javax.swing.text.StyledDocument doc)
      • findQueryHighlights

        protected static java.util.List<com.im.commons.Pair<java.lang.Integer,​java.lang.Integer>> findQueryHighlights​(com.im.df.api.dml.DFTermExpression lastExecutedQuery,
                                                                                                                            com.im.df.api.ddl.DFField field,
                                                                                                                            java.lang.String text)
        Finds all occurrences of patterns searched by "contains", "starts with" and "ends with" operators in a given text.
        Parameters:
        lastExecutedQuery - last executed query
        field - evaluated field
        text - text to display
        Returns:
        list of pairs of (offset, length)
      • findSubstrings

        protected static void findSubstrings​(java.util.List<com.im.commons.Pair<java.lang.Integer,​java.lang.Integer>> result,
                                             java.lang.String text,
                                             java.lang.String pattern,
                                             boolean caseInsensitive)