Package de.sebastianbenz.task.tagging

Examples of de.sebastianbenz.task.tagging.Region


    public Boolean caseNote(Note content) {
      return applyHighlighting(content, NOTE_DONE_ID, HighlightingConfiguration.NOTE_URL_ID);
    }
   
    private void markAsDone(Content content, Iterable<Tag> allTags, String doneStyle) {
      Region region = Contents.region(content);
      int begin = 0;
      int lastTagEnd = region.getOffset();
      int taskOffset = lastTagEnd;
      for (Tag tag : allTags) {
        int length = tag.getOffset() - begin - whiteSpaces(content, tag.getOffset());
        if(length > 0){
          int offset = taskOffset + begin;
View Full Code Here


      String id = project.isDone() ? done : normal;
      highlight(project, id);
    }

    protected void highlight(Content content, String id) {
      Region region = region(content);
       acceptor.addPosition(region.getOffset(), region.getLength(), id);
    }
View Full Code Here

    this.key = key;
  }

  private String style(String string) {
    int begin = input.indexOf(string);
    return highlightedRegions.get(new Region(begin, string.length()));
  }
View Full Code Here

TOP

Related Classes of de.sebastianbenz.task.tagging.Region

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.