public void init(DrawContext ctx) { JTextComponent c = ctx.getEditorUI().getComponent(); // initialize reference to annotations annos = ctx.getEditorUI().getDocument().getAnnotations(); drawTextLimitLine = ctx.getEditorUI().textLimitLineVisible; textLimitWidth = ctx.getEditorUI().textLimitWidth; defaultSpaceWidth = ctx.getEditorUI().defaultSpaceWidth; textLimitLineColor = ctx.getEditorUI().textLimitLineColor; absoluteX = ctx.getEditorUI().getTextMargin().left; maxWidth = ctx.getEditorUI().getExtentBounds().width; }
protected Coloring getColoring(DrawContext ctx) { return ctx.getEditorUI().getColoring(SettingsNames.GUARDED_COLORING); }
protected Coloring getColoring(DrawContext ctx) { return ctx.getEditorUI().getColoring(SettingsNames.GUARDED_COLORING); }
protected Coloring getColoring(DrawContext ctx) { return ctx.getEditorUI().getColoring(SettingsNames.BOOKMARK_COLORING); }
protected Coloring getColoring(DrawContext ctx) { return ctx.getEditorUI().getColoring(SettingsNames.BOOKMARK_COLORING); }
public void init(DrawContext ctx) { JTextComponent c = ctx.getEditorUI().getComponent(); gColor = graphics.getColor(); gFont = graphics.getFont(); // initialize reference to annotations annos = ctx.getEditorUI().getDocument().getAnnotations(); }
public void updateContext(DrawContext ctx) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.INC_SEARCH_COLORING); } if (coloring != null) { coloring.apply(ctx); } }
public void updateContext(DrawContext ctx) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.SELECTION_COLORING); } if (coloring != null) { coloring.apply(ctx); } }
public void updateContext(DrawContext ctx) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.INC_SEARCH_COLORING); } if (coloring != null) { coloring.apply(ctx); } }
public void init(DrawContext ctx) { super.init(ctx); doc = (GuardedDocument)ctx.getEditorUI().getDocument(); }
public void updateContext(DrawContext ctx) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.SELECTION_COLORING); } if (coloring != null) { coloring.apply(ctx); } }
public void init(DrawContext ctx) { super.init(ctx); doc = (GuardedDocument) ctx.getEditorUI().getDocument(); }
public void updateContext(DrawContext ctx) { int pos = ctx.getFragmentOffset(); if (pos >= blocks[curInd] && pos < blocks[curInd + 1]) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.HIGHLIGHT_SEARCH_COLORING); } if (coloring != null) { coloring.apply(ctx); } } }
public void updateContext(DrawContext ctx) { int pos = ctx.getFragmentOffset(); if (pos >= blocks[curInd] && pos < blocks[curInd + 1]) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.HIGHLIGHT_SEARCH_COLORING); } if (coloring != null) { coloring.apply(ctx); } } }
protected Coloring getMethodColoring(DrawContext ctx) { TokenContextPath path = ctx.getTokenContextPath().replaceStart( JavaLayerTokenContext.contextPath); return ctx.getEditorUI().getColoring( path.getFullTokenName(JavaLayerTokenContext.METHOD)); }
protected Coloring getMethodColoring(DrawContext ctx) { TokenContextPath path = ctx.getTokenContextPath().replaceStart(JavaLayerTokenContext.contextPath); return ctx.getEditorUI().getColoring(path.getFullTokenName(JavaLayerTokenContext.METHOD)); }
public void init(DrawContext ctx) { if (enabled) { try { BaseDocument doc = ctx.getEditorUI().getDocument(); blocks = FindSupport.getFindSupport().getBlocks(blocks, doc, ctx.getStartOffset(), ctx.getEndOffset()); } catch (BadLocationException e) { blocks = new int[] { -1, -1 }; } coloring = null; // reset so it will be re-read curInd = 0; } }
public void init(DrawContext ctx) { if (enabled) { try { BaseDocument doc = ctx.getEditorUI().getDocument(); blocks = FindSupport.getFindSupport().getBlocks(blocks, doc, ctx.getStartOffset(), ctx.getEndOffset()); } catch (BadLocationException e) { blocks = new int[] { -1, -1 }; } coloring = null; // reset so it will be re-read curInd = 0; } }
public boolean isActive(DrawContext ctx, MarkFactory.DrawMark mark) { boolean active; if (mark != null) { active = mark.activateLayer; } else { JTextComponent c = ctx.getEditorUI().getComponent(); active = (c != null) && c.getCaret().isSelectionVisible() && ctx.getFragmentOffset() >= c.getSelectionStart() && ctx.getFragmentOffset() < c.getSelectionEnd(); } return active; }
public boolean isActive(DrawContext ctx, MarkFactory.DrawMark mark) { boolean active; if (mark != null) { active = mark.activateLayer; } else { JTextComponent c = ctx.getEditorUI().getComponent(); active = (c != null) && c.getCaret().isSelectionVisible() && ctx.getFragmentOffset() >= c.getSelectionStart() && ctx.getFragmentOffset() < c.getSelectionEnd(); } return active; }