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 TypeMethodDescriptionvoidMethod called when a change is made to the domain object.getBackgroundColor(BigInteger index) voidmodelDataChanged(ListingPanel listingPanel) Called when theAddressIndexMapor theProgramchanges.voidvoidsetEnabled(boolean b)
-
Field Details
-
COLOR_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
PropertyBasedBackgroundColorModel
public PropertyBasedBackgroundColorModel()
-
-
Method Details
-
modelDataChanged
Description copied from interface:ListingBackgroundColorModelCalled when theAddressIndexMapor theProgramchanges.- Specified by:
modelDataChangedin interfaceListingBackgroundColorModel- Parameters:
listingPanel- theListingPanelthat changed and where the newAddressIndexMapandProgramcan be retrieved.
-
getBackgroundColor
- Specified by:
getBackgroundColorin interfaceBackgroundColorModel
-
getDefaultBackgroundColor
- Specified by:
getDefaultBackgroundColorin interfaceBackgroundColorModel
-
setDefaultBackgroundColor
- Specified by:
setDefaultBackgroundColorin interfaceBackgroundColorModel
-
domainObjectChanged
Description copied from interface:DomainObjectListenerMethod called when a change is made to the domain object.- Specified by:
domainObjectChangedin interfaceDomainObjectListener- Parameters:
ev- event containing the change record and type of change that was made
-
setEnabled
public void setEnabled(boolean b)
-