public class HighlightCodeAreaPainter
extends org.exbin.deltahex.swing.DefaultCodeAreaPainter
Modifier and Type | Class and Description |
---|---|
static class |
HighlightCodeAreaPainter.SearchMatch
Simple POJO class for search match.
|
Constructor and Description |
---|
HighlightCodeAreaPainter(org.exbin.deltahex.swing.CodeArea codeArea) |
Modifier and Type | Method and Description |
---|---|
void |
clearMatches() |
HighlightCodeAreaPainter.SearchMatch |
getCurrentMatch() |
java.awt.Color |
getCurrentMatchBackgroundColor() |
int |
getCurrentMatchIndex() |
java.awt.Color |
getFoundMatchesBackgroundColor() |
java.util.List<HighlightCodeAreaPainter.SearchMatch> |
getMatches() |
java.awt.Color |
getPositionColor(int byteOnLine,
int charOnLine,
org.exbin.deltahex.Section section,
org.exbin.deltahex.swing.ColorsGroup.ColorType colorType,
org.exbin.deltahex.swing.DefaultCodeAreaPainter.PaintData paintData) |
void |
paintMainArea(java.awt.Graphics g) |
void |
setCurrentMatchBackgroundColor(java.awt.Color currentMatchBackgroundColor) |
void |
setCurrentMatchIndex(int currentMatchIndex) |
void |
setFoundMatchesBackgroundColor(java.awt.Color foundMatchesBackgroundColor) |
void |
setMatches(java.util.List<HighlightCodeAreaPainter.SearchMatch> matches) |
public HighlightCodeAreaPainter(org.exbin.deltahex.swing.CodeArea codeArea)
public void paintMainArea(java.awt.Graphics g)
paintMainArea
in interface org.exbin.deltahex.swing.CodeAreaPainter
paintMainArea
in class org.exbin.deltahex.swing.DefaultCodeAreaPainter
public java.awt.Color getPositionColor(int byteOnLine, int charOnLine, org.exbin.deltahex.Section section, org.exbin.deltahex.swing.ColorsGroup.ColorType colorType, org.exbin.deltahex.swing.DefaultCodeAreaPainter.PaintData paintData)
getPositionColor
in class org.exbin.deltahex.swing.DefaultCodeAreaPainter
public java.util.List<HighlightCodeAreaPainter.SearchMatch> getMatches()
public void setMatches(java.util.List<HighlightCodeAreaPainter.SearchMatch> matches)
public void clearMatches()
public HighlightCodeAreaPainter.SearchMatch getCurrentMatch()
public int getCurrentMatchIndex()
public void setCurrentMatchIndex(int currentMatchIndex)
public java.awt.Color getFoundMatchesBackgroundColor()
public void setFoundMatchesBackgroundColor(java.awt.Color foundMatchesBackgroundColor)
public java.awt.Color getCurrentMatchBackgroundColor()
public void setCurrentMatchBackgroundColor(java.awt.Color currentMatchBackgroundColor)