1 19 20 package org.netbeans.modules.editor.errorstripe; 21 22 import java.awt.Color ; 23 import org.netbeans.modules.editor.errorstripe.privatespi.Mark; 24 import org.netbeans.modules.editor.errorstripe.privatespi.Status; 25 26 30 public class TestMark implements Mark { 31 32 private Status status; 33 private String description; 34 private Color color; 35 private int[] lines; 36 private int priority; 37 38 public TestMark(Status status, String description, Color color, int[] lines) { 39 this(status, description, color, lines, PRIORITY_DEFAULT); 40 } 41 42 public TestMark(Status status, String description, Color color, int[] lines, int priority) { 43 this.status = status; 44 this.description = description; 45 this.color = color; 46 this.lines = lines; 47 this.priority = priority; 48 } 49 50 public Status getStatus() { 51 return status; 52 } 53 54 public String getShortDescription() { 55 return description; 56 } 57 58 public Color getEnhancedColor() { 59 return color; 60 } 61 62 public int[] getAssignedLines() { 63 return lines; 64 } 65 66 public int getType() { 67 return TYPE_ERROR_LIKE; 68 } 69 70 public int getPriority() { 71 return priority; 72 } 73 74 } 75 | Popular Tags |