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 ValidatableLinecopy()booleanequals(java.lang.Object obj)java.lang.StringgetText()java.awt.ColorgetTextColor()inthashCode()booleanisDiffColored()booleanisValidated()True means that this line has been matched against another line, regardless of whether the two lines are the same or not.booleanmatches(ValidatableLine otherLine)voidsetTextColor(java.awt.Color color)voidsetValidationLine(ValidatableLine line)Sets the other line that this line is validated against.java.lang.StringtoString()voidupdateColor(ValidatableLine otherLine, java.awt.Color invalidColor)
-
-
-
Method Detail
-
copy
public ValidatableLine copy()
- Specified by:
copyin interfaceValidatableLine
-
getText
public java.lang.String getText()
- Specified by:
getTextin interfaceValidatableLine
-
isDiffColored
public boolean isDiffColored()
- Specified by:
isDiffColoredin interfaceValidatableLine
-
getTextColor
public java.awt.Color getTextColor()
-
setTextColor
public void setTextColor(java.awt.Color color)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isValidated
public boolean isValidated()
Description copied from interface:ValidatableLineTrue means that this line has been matched against another line, regardless of whether the two lines are the same or not.- Specified by:
isValidatedin interfaceValidatableLine- Returns:
- true if this line has been matched against another line
-
matches
public boolean matches(ValidatableLine otherLine)
- Specified by:
matchesin interfaceValidatableLine
-
updateColor
public void updateColor(ValidatableLine otherLine, java.awt.Color invalidColor)
- Specified by:
updateColorin interfaceValidatableLine
-
setValidationLine
public void setValidationLine(ValidatableLine line)
Description copied from interface:ValidatableLineSets the other line that this line is validated against. The other line may be a full, partial, or no match at all.- Specified by:
setValidationLinein interfaceValidatableLine- Parameters:
line- the line against which this line is validated
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-