1 19 20 package org.netbeans.modules.editor.errorstripe.caret; 21 22 import java.awt.Color ; 23 import org.netbeans.modules.editor.errorstripe.AnnotationView; 24 import org.netbeans.modules.editor.errorstripe.privatespi.Mark; 25 import org.netbeans.modules.editor.errorstripe.privatespi.Status; 26 import org.openide.util.NbBundle; 27 28 29 33 public class CaretMark implements Mark { 34 35 private static final Color COLOR = new Color ( 110, 110, 110 ); 37 private int line; 38 39 public CaretMark(int line) { 40 this.line = line; 41 } 42 43 public String getShortDescription() { 44 return NbBundle.getMessage(AnnotationView.class, "TP_Current_Line"); 45 } 46 47 public int[] getAssignedLines() { 48 return new int[] {line, line}; 49 } 50 51 public Color getEnhancedColor() { 52 return COLOR; 53 } 54 55 public int getPriority() { 56 return PRIORITY_DEFAULT; 57 } 58 59 public Status getStatus() { 60 return Status.STATUS_OK; 61 } 62 63 public int getType() { 64 return TYPE_CARET; 65 } 66 67 public static Color getCaretMarkColor() { 68 return COLOR; 69 } 70 71 } 72 | Popular Tags |