public class LineHighlight extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Set<LineHighlight> |
allHighlights |
protected JavaEditor |
editor |
protected LineID |
lineID |
protected String |
marker |
protected int |
priority |
| Constructor and Description |
|---|
LineHighlight(int lineIdx,
JavaEditor editor)
Create a
LineHighlight on the current tab. |
LineHighlight(LineID lineID,
JavaEditor editor)
Create a
LineHighlight. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear this line highlight.
|
void |
dispose()
Notify this line highlight that it is no longer used.
|
LineID |
getLineID()
Retrieve the line id of this
LineHighlight. |
protected static boolean |
isHighestPriority(LineHighlight hl) |
boolean |
isOnLine(LineID testLine)
Test if this highlight is on a certain line.
|
void |
lineChanged(LineID line,
int oldLineIdx,
int newLineIdx)
Event handler for line number changes (due to editing).
|
void |
paint()
(Re-)paint this line highlight.
|
int |
priority() |
void |
setMarker(String marker)
Set a text based marker displayed in the left hand gutter area of this
highlighted line.
|
void |
setPriority(int p) |
protected final JavaEditor editor
protected final LineID lineID
protected String marker
protected int priority
protected static final Set<LineHighlight> allHighlights
public LineHighlight(LineID lineID, JavaEditor editor)
LineHighlight.public LineHighlight(int lineIdx,
JavaEditor editor)
LineHighlight on the current tab.lineIdx - the line index on the current tab to highlighteditor - the JavaEditorprotected static boolean isHighestPriority(LineHighlight hl)
public void setPriority(int p)
public int priority()
public void setMarker(String marker)
marker - the marker textpublic LineID getLineID()
LineHighlight.public boolean isOnLine(LineID testLine)
testLine - the line to testpublic void lineChanged(LineID line, int oldLineIdx, int newLineIdx)
line - the line that has changedoldLineIdx - the old line index (0-based)newLineIdx - the new line index (0-based)public void dispose()
LineHighlight is discarded.public void paint()
public void clear()
Copyright © 2001–2017 Processing Foundation. All rights reserved.