Package ghidra.app.util
Class ColorAndStyle
- java.lang.Object
-
- ghidra.app.util.ColorAndStyle
-
public class ColorAndStyle extends java.lang.Object
A container class to hold a color and a style value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getColor()
int
getStyle()
boolean
isBold()
boolean
isItalic()
java.lang.String
toHtml(java.lang.String text)
Wraps the given text with HTML markup for each attribute and color defined by this class.
-
-
-
Method Detail
-
getColor
public java.awt.Color getColor()
-
getStyle
public int getStyle()
-
isBold
public boolean isBold()
-
isItalic
public boolean isItalic()
-
toHtml
public java.lang.String toHtml(java.lang.String text)
Wraps the given text with HTML markup for each attribute and color defined by this class. The returned result will not be prepended with<HTML>
.- Parameters:
text
- the text to wrap- Returns:
- the wrapped text
-
-