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 java.lang.Object implements ValidatableLine
-
-
Field Summary
-
Fields inherited from interface ghidra.app.util.html.ValidatableLine
INVALID_COLOR
-
-
Constructor Summary
Constructors Constructor Description TextLine(java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatableLine
copy()
boolean
equals(java.lang.Object obj)
java.lang.String
getText()
java.awt.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(java.awt.Color color)
void
setValidationLine(ValidatableLine line)
Sets the other line that this line is validated against.java.lang.String
toString()
void
updateColor(ValidatableLine otherLine, java.awt.Color invalidColor)
-
-
-
Method Detail
-
copy
public ValidatableLine copy()
- Specified by:
copy
in interfaceValidatableLine
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceValidatableLine
-
isDiffColored
public boolean isDiffColored()
- Specified by:
isDiffColored
in interfaceValidatableLine
-
getTextColor
public java.awt.Color getTextColor()
-
setTextColor
public void setTextColor(java.awt.Color color)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.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 interfaceValidatableLine
- Returns:
- true if this line has been matched against another line
-
matches
public boolean matches(ValidatableLine otherLine)
- Specified by:
matches
in interfaceValidatableLine
-
updateColor
public void updateColor(ValidatableLine otherLine, java.awt.Color invalidColor)
- Specified by:
updateColor
in interfaceValidatableLine
-
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 interfaceValidatableLine
- Parameters:
line
- the line against which this line is validated
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-