@ParametersAreNonnullByDefault
public class HighlightCodeAreaPainter
extends org.exbin.bined.swing.basic.DefaultCodeAreaPainter
| Modifier and Type | Class and Description |
|---|---|
static class |
HighlightCodeAreaPainter.SearchMatch
Simple POJO class for search match.
|
| Constructor and Description |
|---|
HighlightCodeAreaPainter(org.exbin.bined.swing.CodeAreaCore 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 |
getPositionBackgroundColor(long rowDataPosition,
int byteOnRow,
int charOnRow,
org.exbin.bined.CodeAreaSection section) |
java.awt.Color |
getPositionTextColor(long rowDataPosition,
int byteOnRow,
int charOnRow,
org.exbin.bined.CodeAreaSection section) |
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) |
attach, computeCenterOnScrollPosition, computeMovePosition, computePositionScrollVisibility, computeRevealScrollPosition, computeScrolling, detach, drawCenteredChars, drawShiftedChars, fontChanged, getBasicColors, getBytesPerRow, getCursorPositionRect, getCharactersPerRow, getMouseCursorShape, getPositionPoint, getPositionZone, getRowHeight, isInitialized, mousePositionToClosestCaretPosition, paintBackground, paintComponent, paintCursor, paintHeader, paintOutsideArea, paintRowBackground, paintRowPosition, paintRows, paintRowText, rebuildColors, recomputeCharPositions, reset, resetCaret, resetColors, resetFont, resetLayout, scrollPositionChanged, scrollPositionModified, setBasicColors, updateCache, updateRectToCursorPosition, updateScrollBarspublic HighlightCodeAreaPainter(org.exbin.bined.swing.CodeAreaCore codeArea)
public void paintMainArea(java.awt.Graphics g)
paintMainArea in interface org.exbin.bined.swing.CodeAreaPainterpaintMainArea in class org.exbin.bined.swing.basic.DefaultCodeAreaPainter@Nullable
public java.awt.Color getPositionTextColor(long rowDataPosition,
int byteOnRow,
int charOnRow,
org.exbin.bined.CodeAreaSection section)
getPositionTextColor in class org.exbin.bined.swing.basic.DefaultCodeAreaPainter@Nullable
public java.awt.Color getPositionBackgroundColor(long rowDataPosition,
int byteOnRow,
int charOnRow,
org.exbin.bined.CodeAreaSection section)
getPositionBackgroundColor in class org.exbin.bined.swing.basic.DefaultCodeAreaPainter@Nonnull public java.util.List<HighlightCodeAreaPainter.SearchMatch> getMatches()
public void setMatches(java.util.List<HighlightCodeAreaPainter.SearchMatch> matches)
public void clearMatches()
@Nullable public HighlightCodeAreaPainter.SearchMatch getCurrentMatch()
public int getCurrentMatchIndex()
public void setCurrentMatchIndex(int currentMatchIndex)
@Nonnull public java.awt.Color getFoundMatchesBackgroundColor()
public void setFoundMatchesBackgroundColor(java.awt.Color foundMatchesBackgroundColor)
@Nonnull public java.awt.Color getCurrentMatchBackgroundColor()
public void setCurrentMatchBackgroundColor(java.awt.Color currentMatchBackgroundColor)