1 19 20 package org.netbeans.spi.editor.highlighting; 21 22 import javax.swing.text.Document ; 23 import javax.swing.text.JTextComponent ; 24 25 40 public interface HighlightsLayerFactory { 41 42 47 public static final class Context { 48 private Document document; 49 private JTextComponent component; 50 51 59 Context(Document document, JTextComponent component) { 60 this.document = document; 61 this.component = component; 62 } 63 64 67 public Document getDocument() { 68 return document; 69 } 70 71 74 public JTextComponent getComponent() { 75 return component; 76 } 77 } 79 88 HighlightsLayer[] createLayers(Context context); 89 90 } 91 | Popular Tags |