1 19 package org.netbeans.modules.editor.highlights.spi; 20 21 import javax.swing.text.Position ; 22 import org.netbeans.editor.Coloring; 23 24 28 public final class DefaultHighlight implements Highlight { 29 30 private Coloring coloring; 31 private Position start; 32 private Position end; 33 34 35 public DefaultHighlight(Coloring coloring, Position start, Position end) { 36 this.coloring = coloring; 37 this.start = start; 38 this.end = end; 39 } 40 41 public int getStart() { 42 return start.getOffset(); 43 } 44 45 public int getEnd() { 46 return end.getOffset(); 47 } 48 49 public Coloring getColoring() { 50 return coloring; 51 } 52 53 } 54 | Popular Tags |