Package ghidra.trace.database.bookmark
Class DBTraceBookmarkType
java.lang.Object
ghidra.trace.database.bookmark.DBTraceBookmarkType
- All Implemented Interfaces:
BookmarkType,TraceBookmarkType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<TraceBookmark> protected Colorprotected Iconprotected final intprotected final DBTraceBookmarkManagerprotected final Stringprotected int -
Constructor Summary
ConstructorsConstructorDescriptionDBTraceBookmarkType(DBTraceBookmarkManager manager, String name) DBTraceBookmarkType(DBTraceBookmarkManager manager, String name, Icon icon, Color color, int priority) -
Method Summary
Modifier and TypeMethodDescriptionintgetIcon()Returns Icon associated with this type or null if one has not been set by a plugin.Returns marker color associated with this type or null if one has not been set by a plugin.intReturns marker priority associated with this type or -1 if one has not been set by a plugin.intReturns the id associated with this bookmark type.Returns the type as a string.booleanReturns true if there is at least one bookmark defined for this type.voidvoidsetMarkerColor(Color color) voidsetMarkerPriority(int priority)
-
Field Details
-
manager
-
name
-
icon
-
color
-
priority
protected int priority -
id
protected final int id -
bookmarkView
-
-
Constructor Details
-
DBTraceBookmarkType
public DBTraceBookmarkType(DBTraceBookmarkManager manager, String name, Icon icon, Color color, int priority) -
DBTraceBookmarkType
-
-
Method Details
-
getTypeString
Description copied from interface:BookmarkTypeReturns the type as a string.- Specified by:
getTypeStringin interfaceBookmarkType- Returns:
- the type as a string.
-
getIcon
Description copied from interface:BookmarkTypeReturns Icon associated with this type or null if one has not been set by a plugin.- Specified by:
getIconin interfaceBookmarkType- Returns:
- the icon.
-
getMarkerColor
Description copied from interface:BookmarkTypeReturns marker color associated with this type or null if one has not been set by a plugin.- Specified by:
getMarkerColorin interfaceBookmarkType- Returns:
- the color.
-
getMarkerPriority
public int getMarkerPriority()Description copied from interface:BookmarkTypeReturns marker priority associated with this type or -1 if one has not been set by a plugin.- Specified by:
getMarkerPriorityin interfaceBookmarkType- Returns:
- the priority.
-
getTypeId
public int getTypeId()Description copied from interface:BookmarkTypeReturns the id associated with this bookmark type.- Specified by:
getTypeIdin interfaceBookmarkType- Returns:
- the id associated with this bookmark type.
-
setIcon
- Specified by:
setIconin interfaceTraceBookmarkType
-
setMarkerColor
- Specified by:
setMarkerColorin interfaceTraceBookmarkType
-
setMarkerPriority
public void setMarkerPriority(int priority) - Specified by:
setMarkerPriorityin interfaceTraceBookmarkType
-
getCategories
- Specified by:
getCategoriesin interfaceTraceBookmarkType
-
hasBookmarks
public boolean hasBookmarks()Description copied from interface:BookmarkTypeReturns true if there is at least one bookmark defined for this type.- Specified by:
hasBookmarksin interfaceBookmarkType- Returns:
- true if there is at least one bookmark defined for this type.
-
countBookmarks
public int countBookmarks()- Specified by:
countBookmarksin interfaceTraceBookmarkType
-
getBookmarks
- Specified by:
getBookmarksin interfaceTraceBookmarkType
-