Class PropertyBasedBackgroundColorModel
java.lang.Object
ghidra.app.util.viewer.listingpanel.PropertyBasedBackgroundColorModel
- All Implemented Interfaces:
BackgroundColorModel
,ListingBackgroundColorModel
,DomainObjectListener
,EventListener
public class PropertyBasedBackgroundColorModel
extends Object
implements ListingBackgroundColorModel, DomainObjectListener
Default
BackgroundColorModel
for the ListingPanel where the color returned
for an index is based on that corresponding address having a color set in the
program's database. (You can "paint" colors over address ranges).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method called when a change is made to the domain object.getBackgroundColor
(BigInteger index) void
modelDataChanged
(ListingPanel listingPanel) Called when theAddressIndexMap
or theProgram
changes.void
void
setEnabled
(boolean b)
-
Field Details
-
COLOR_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
PropertyBasedBackgroundColorModel
public PropertyBasedBackgroundColorModel()
-
-
Method Details
-
modelDataChanged
Description copied from interface:ListingBackgroundColorModel
Called when theAddressIndexMap
or theProgram
changes.- Specified by:
modelDataChanged
in interfaceListingBackgroundColorModel
- Parameters:
listingPanel
- theListingPanel
that changed and where the newAddressIndexMap
andProgram
can be retrieved.
-
getBackgroundColor
- Specified by:
getBackgroundColor
in interfaceBackgroundColorModel
-
getDefaultBackgroundColor
- Specified by:
getDefaultBackgroundColor
in interfaceBackgroundColorModel
-
setDefaultBackgroundColor
- Specified by:
setDefaultBackgroundColor
in interfaceBackgroundColorModel
-
domainObjectChanged
Description copied from interface:DomainObjectListener
Method called when a change is made to the domain object.- Specified by:
domainObjectChanged
in interfaceDomainObjectListener
- Parameters:
ev
- event containing the change record and type of change that was made
-
setEnabled
public void setEnabled(boolean b)
-