1 19 20 package org.netbeans.editor; 21 22 import java.awt.Color ; 23 import java.awt.Font ; 24 25 34 35 36 public interface DrawContext { 37 38 39 public Color getForeColor(); 40 41 42 public void setForeColor(Color foreColor); 43 44 45 public Color getBackColor(); 46 47 48 public void setBackColor(Color backColor); 49 50 51 public Color getUnderlineColor(); 52 53 54 public void setUnderlineColor(Color underlineColor); 55 56 57 public Color getWaveUnderlineColor(); 58 59 60 public void setWaveUnderlineColor(Color waveUnderlineColor); 61 62 63 public Color getStrikeThroughColor(); 64 65 66 public void setStrikeThroughColor(Color strikeThroughColor); 67 68 69 public Font getFont(); 70 71 72 public void setFont(Font font); 73 74 77 public int getStartOffset(); 78 79 82 public int getEndOffset(); 83 84 87 public boolean isBOL(); 88 89 92 public boolean isEOL(); 93 94 95 public EditorUI getEditorUI(); 96 97 99 public TokenID getTokenID(); 100 101 102 public TokenContextPath getTokenContextPath(); 103 104 105 public int getTokenOffset(); 106 107 108 public int getTokenLength(); 109 110 113 public int getFragmentOffset(); 114 115 118 public int getFragmentLength(); 119 120 123 public char[] getBuffer(); 124 125 132 public int getBufferStartOffset(); 133 134 } 135 | Popular Tags |