Interface IAtLineProcessStrategy


public interface IAtLineProcessStrategy
Main interface for all line process algorithms.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tells if strategy can process this AtLineInfo element.
    process(org.eclipse.swt.custom.StyledText textWidget, AtLineInfo info)
    Gets StyledText and AtLineInfo, then uses algorithm to return text, which needs to be shown.
  • Method Details

    • process

      String process(org.eclipse.swt.custom.StyledText textWidget, AtLineInfo info)
      Gets StyledText and AtLineInfo, then uses algorithm to return text, which needs to be shown.
      Parameters:
      textWidget - - StyledText widget, can't be null.
      info - - number of line, can't be null.
      Returns:
      processed String, can't return null.
      Throws:
      IllegalArgumentException - if any of arguments are null
    • canProcess

      boolean canProcess(AtLineInfo info)
      Tells if strategy can process this AtLineInfo element.
      Parameters:
      info - - element to process. Can be null
      Returns:
      true if can process.