Package ghidra.app.util.html

# Class TextLine

java.lang.Object
ghidra.app.util.html.TextLine

All Implemented Interfaces:
  `ValidatableLine`

Direct Known Subclasses:
  `EmptyTextLine`

public class TextLine extends Object implements ValidatableLine

- ## Field Summary

  ### Fields inherited from interface ghidra.app.util.html.ValidatableLine

  `INVALID_COLOR`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TextLine(String text)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ValidatableLine`
  `copy()`
  `boolean`
  `equals(Object obj)`
  `String`
  `getText()`
  `Color`
  `getTextColor()`
  `int`
  `hashCode()`
  `boolean`
  `isDiffColored()`
  `boolean`
  `isValidated()`
  True means that this line has been matched against another line, regardless of whether the two lines are the same or not.
  `boolean`
  `matches(ValidatableLine otherLine)`
  `void`
  `setTextColor(Color color)`
  Set color for all text.
  `void`
  `setValidationLine(ValidatableLine line)`
  Sets the other line that this line is validated against.
  `String`
  `toString()`
  `void`
  `updateColor(ValidatableLine otherLine, Color invalidColor)`

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

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### TextLine

    public TextLine(String text)

- ## Method Details

  - ### copy

    public ValidatableLine copy()
    Specified by:
      `copy` in interface `ValidatableLine`

  - ### getText

    public String getText()
    Specified by:
      `getText` in interface `ValidatableLine`

  - ### isDiffColored

    public boolean isDiffColored()
    Specified by:
      `isDiffColored` in interface `ValidatableLine`

  - ### getTextColor

    public Color getTextColor()

  - ### setTextColor

    public void setTextColor(Color color)
    Description copied from interface: `ValidatableLine`
    Set color for all text.
    Specified by:
      `setTextColor` in interface `ValidatableLine`
    Parameters:
      `color` - text color

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### isValidated

    public boolean isValidated()
    Description copied from interface: `ValidatableLine`
    True means that this line has been matched against another line, regardless of whether the two lines are the same or not.
    Specified by:
      `isValidated` in interface `ValidatableLine`
    Returns:
      true if this line has been matched against another line

  - ### matches

    public boolean matches(ValidatableLine otherLine)
    Specified by:
      `matches` in interface `ValidatableLine`

  - ### updateColor

    public void updateColor(ValidatableLine otherLine, Color invalidColor)
    Specified by:
      `updateColor` in interface `ValidatableLine`

  - ### setValidationLine

    public void setValidationLine(ValidatableLine line)
    Description copied from interface: `ValidatableLine`
    Sets the other line that this line is validated against. The other line may be a full, partial, or no match at all.
    Specified by:
      `setValidationLine` in interface `ValidatableLine`
    Parameters:
      `line` - the line against which this line is validated

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`