public class HtmlHighlightingElementRender extends Object implements HighlightingElementRender
Constructor and Description |
---|
HtmlHighlightingElementRender(HighlightingElement element) |
HtmlHighlightingElementRender(HighlightingElement element,
Color color,
Font font) |
HtmlHighlightingElementRender(HighlightingElement element,
Color color,
Font font,
boolean underLine,
boolean strikeOut) |
HtmlHighlightingElementRender(HighlightingElement element,
Font font) |
Modifier and Type | Method and Description |
---|---|
static String |
color2String(Color color) |
Color |
getBackgroundColor() |
HighlightingElement |
getElement() |
String |
getFontName() |
int |
getFontSize() |
int |
getFontStyle() |
Color |
getForegroundColor() |
boolean |
isStrikeOut() |
boolean |
isUnderLine() |
String |
render(String tokenText) |
void |
setBackgroundColor(Color backgroundColor) |
void |
setFontName(String fontName) |
void |
setFontSize(int fontSize) |
void |
setFontStyle(int fontStyle) |
void |
setForegroundColor(Color foregroundColor) |
void |
setStrikeOut(boolean strikeOut) |
void |
setUnderLine(boolean underLine) |
public HtmlHighlightingElementRender(HighlightingElement element)
public HtmlHighlightingElementRender(HighlightingElement element, Font font)
public HtmlHighlightingElementRender(HighlightingElement element, Color color, Font font, boolean underLine, boolean strikeOut)
public HtmlHighlightingElementRender(HighlightingElement element, Color color, Font font)
public Color getBackgroundColor()
public HighlightingElement getElement()
public String getFontName()
public int getFontSize()
public int getFontStyle()
public Color getForegroundColor()
public boolean isStrikeOut()
public boolean isUnderLine()
public void setBackgroundColor(Color backgroundColor)
public void setFontName(String fontName)
public void setFontSize(int fontSize)
public void setFontStyle(int fontStyle)
public void setForegroundColor(Color foregroundColor)
public void setStrikeOut(boolean strikeOut)
public void setUnderLine(boolean underLine)
public String render(String tokenText)
render
in interface HighlightingElementRender
public static String color2String(Color color)