Package jexer.teditor
Class Highlighter
- java.lang.Object
-
- jexer.teditor.Highlighter
-
public class Highlighter extends java.lang.ObjectHighlighter provides color choices for certain text strings.
-
-
Constructor Summary
Constructors Constructor Description Highlighter()Public constructor sets the theme to the default.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellAttributesgetColor(java.lang.String name)Retrieve the CellAttributes for a named theme color.voidsetEnabled(boolean enabled)Set keyword highlighting.voidsetJavaColors()Sets to defaults that resemble the Borland IDE colors.voidsetTo(Highlighter rhs)Set my field values to that's field.booleanshouldSplit(int ch)See if this is a character that should split a word.
-
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
Set keyword highlighting.- Parameters:
enabled- if true, enable keyword highlighting
-
setTo
public void setTo(Highlighter rhs)
Set my field values to that's field.- Parameters:
rhs- an instance of Highlighter
-
shouldSplit
public boolean shouldSplit(int ch)
See if this is a character that should split a word.- Parameters:
ch- the character- Returns:
- true if the word should be split
-
getColor
public CellAttributes getColor(java.lang.String name)
Retrieve the CellAttributes for a named theme color.- Parameters:
name- theme color name, e.g. "twindow.border"- Returns:
- color associated with name, e.g. bold yellow on blue
-
setJavaColors
public void setJavaColors()
Sets to defaults that resemble the Borland IDE colors.
-
-