Package ghidra.app.util

# Class ColorAndStyle

java.lang.Object
ghidra.app.util.ColorAndStyle

public class ColorAndStyle extends Object
A container class to hold a color and a style value.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Color`
  `getColor()`
  `int`
  `getStyle()`
  `boolean`
  `isBold()`
  `boolean`
  `isItalic()`
  `String`
  `toHtml(String text)`
  Wraps the given text with HTML markup for each attribute and color defined by this class.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getColor

    public Color getColor()

  - ### getStyle

    public int getStyle()

  - ### isBold

    public boolean isBold()

  - ### isItalic

    public boolean isItalic()

  - ### toHtml

    public String toHtml(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