Package ghidra.app.services
Interface MarkerSet
- All Superinterfaces:
Comparable<MarkerSet>
Defines methods for working with a set of addresses that correspond to markers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a marker at the addressvoid
add
(AddressRange range) Add a marker across the address rangevoid
Add the range given the start and end of the rangevoid
add
(AddressSetView addrSet) Add a marker at each address in the given address setvoid
Clear any marker at the addressvoid
clear
(AddressRange range) Clear any marker across the address rangevoid
Remove the given range from the marker setvoid
clear
(AddressSetView addrSet) Clear any marker at each address in the address setvoid
clearAll()
Clear all defined markersboolean
Determine if this marker set contains the specified addressboolean
True if this marker manager displays in the left hand marker barReturn the address set for this marker setGet the color for the markerReturns the maximum Address in this MarkerSet;Returns the minimum Address in this MarkerSet;getName()
Return the name of this MarkerSetint
Get display priorityboolean
intersects
(Address start, Address end) Returns true if any address in this MarkerSet is contained in the range defined by start and end.boolean
isActive()
Returns true if this MarkerSet is active.boolean
Returns true if this MarkerSet is coloring the background in the listing for locations contained in this MarkerSetboolean
True if this marker manager displays in the right hand navigation barboolean
Gets whether this marker is in the preferred group when determining display priority.void
setActive
(boolean state) Return true if this marker set is activevoid
Clears the current set off addresses in this markerSet and adds in the addresses from the given AddressSetvoid
Sets the AddressSetCollection to be used for this this marker set.void
setColoringBackground
(boolean b) Sets whether or not the MarkerSet is coloring the background of areas in the listing contained in this MarkerSet.void
setMarkerColor
(Color color) Set the color for the markervoid
setMarkerDescriptor
(MarkerDescriptor markerDescriptor) Set the marker manager listener to use for user interaction with markers owned by this manager.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
add
Add a marker at the address- Parameters:
addr
- the address
-
add
Add the range given the start and end of the range- Parameters:
start
- the start addressend
- the end address
-
add
Add a marker across the address range- Parameters:
range
- the addresses
-
setAddressSetCollection
Sets the AddressSetCollection to be used for this this marker set.Warning! Using this method will cause this MarkerSet to directly use the given AddressSetCollection. If the given AddressSetCollection is not an instance of ModifiableAddressSetCollection, then the markerSet methods that add and remove addresses will thrown an IllegalArgumentException.
- Parameters:
set
- the addressSetCollection to use as this markerSet's addressSetCollection.
-
setAddressSet
Clears the current set off addresses in this markerSet and adds in the addresses from the given AddressSet- Parameters:
set
- the set of addresses to use in this marker set
-
add
Add a marker at each address in the given address set- Parameters:
addrSet
- the addresses
-
contains
Determine if this marker set contains the specified address- Parameters:
addr
- address- Returns:
- true if marker set contains addr
-
getAddressSet
AddressSet getAddressSet()Return the address set for this marker set- Returns:
- the addresses
-
clear
Clear any marker at the address- Parameters:
addr
- the address
-
clear
Clear any marker across the address range- Parameters:
range
- the addresses
-
clear
Remove the given range from the marker set- Parameters:
start
- the start of the range to removeend
- the end of the range to remove
-
clear
Clear any marker at each address in the address set- Parameters:
addrSet
- the addresses
-
getName
String getName()Return the name of this MarkerSet- Returns:
- the name
-
clearAll
void clearAll()Clear all defined markers -
getPriority
int getPriority()Get display priority- Returns:
- the priority
-
isPreferred
boolean isPreferred()Gets whether this marker is in the preferred group when determining display priority. Typically point markers are in the preferred group and area markers are not.- Returns:
- true if preferred
-
setActive
void setActive(boolean state) Return true if this marker set is active- Parameters:
state
- the state
-
getMarkerColor
Color getMarkerColor()Get the color for the marker- Returns:
- the color
-
setMarkerColor
Set the color for the marker- Parameters:
color
- marker color
-
setMarkerDescriptor
Set the marker manager listener to use for user interaction with markers owned by this manager.- Parameters:
markerDescriptor
- the descriptor
-
displayInMarkerBar
boolean displayInMarkerBar()True if this marker manager displays in the left hand marker bar- Returns:
- true if this marker manager displays in the left hand marker bar
-
isColoringBackground
boolean isColoringBackground()Returns true if this MarkerSet is coloring the background in the listing for locations contained in this MarkerSet- Returns:
- true if coloring background
-
isActive
boolean isActive()Returns true if this MarkerSet is active. Being "active" means that it is displayed in the listing- Returns:
- true if active
-
setColoringBackground
void setColoringBackground(boolean b) Sets whether or not the MarkerSet is coloring the background of areas in the listing contained in this MarkerSet.- Parameters:
b
- true to color the background.
-
getMinAddress
Address getMinAddress()Returns the minimum Address in this MarkerSet;- Returns:
- the minimum Address in this MarkerSet;
-
getMaxAddress
Address getMaxAddress()Returns the maximum Address in this MarkerSet;- Returns:
- the maximum Address in this MarkerSet;
-
intersects
Returns true if any address in this MarkerSet is contained in the range defined by start and end.- Parameters:
start
- the start address of the range to check for intersection.end
- the end address of the range to check for intersection.- Returns:
- true if the set of addresses contained in this MarkerSet intersects the given range.
-